Repository Analysis

hahwul/dalfox

🌙🦊 Dalfox is a powerful open-source XSS scanner and utility focused on automation.

6.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of hahwul/dalfox, a Rust project with 5,262 GitHub stars. SynthScan v2.0 examined 136,090 lines of code across 397 source files, recording 600 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 6.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

6.5
Adjusted Score
6.5
Raw Score
100%
Time Factor
2026-08-28
Last Push
5.3K
Stars
Rust
Language
136.1K
Lines of Code
397
Files
600
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 149LOW 451

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 600 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators144 hits · 440 pts
SeverityFileLineSnippetContext
MEDIUMtests/functional/analyze_external_js_test.rs19// ── server handlers ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/functional/analyze_external_js_test.rs104// ── server bootstrap ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/functional/analyze_external_js_test.rs129// ── scan helper ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/functional/analyze_external_js_test.rs241// ── tests ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/config.toml1# =============================================================================COMMENT
MEDIUMdocs/config.toml3# =============================================================================COMMENT
MEDIUMdocs/config.toml9# =============================================================================COMMENT
MEDIUMdocs/config.toml11# =============================================================================COMMENT
MEDIUMdocs/config.toml29# =============================================================================COMMENT
MEDIUMdocs/config.toml31# =============================================================================COMMENT
MEDIUMdocs/config.toml37# =============================================================================COMMENT
MEDIUMdocs/config.toml39# =============================================================================COMMENT
MEDIUMdocs/config.toml48# =============================================================================COMMENT
MEDIUMdocs/config.toml50# =============================================================================COMMENT
MEDIUMdocs/config.toml58# =============================================================================COMMENT
MEDIUMdocs/config.toml60# =============================================================================COMMENT
MEDIUMdocs/config.toml72# =============================================================================COMMENT
MEDIUMdocs/config.toml74# =============================================================================COMMENT
MEDIUMdocs/config.toml84# =============================================================================COMMENT
MEDIUMdocs/config.toml86# =============================================================================COMMENT
MEDIUMdocs/config.toml98# =============================================================================COMMENT
MEDIUMdocs/config.toml100# =============================================================================COMMENT
MEDIUMdocs/config.toml108# =============================================================================COMMENT
MEDIUMdocs/config.toml110# =============================================================================COMMENT
MEDIUMdocs/config.toml118# =============================================================================COMMENT
MEDIUMdocs/config.toml120# =============================================================================COMMENT
MEDIUMdocs/config.toml135# =============================================================================COMMENT
MEDIUMdocs/config.toml137# =============================================================================COMMENT
MEDIUMdocs/config.toml147# =============================================================================COMMENT
MEDIUMdocs/config.toml149# =============================================================================COMMENT
MEDIUMdocs/config.toml191# =============================================================================COMMENT
MEDIUMdocs/config.toml193# =============================================================================COMMENT
MEDIUMdocs/config.toml201# =============================================================================COMMENT
MEDIUMdocs/config.toml203# =============================================================================COMMENT
MEDIUMdocs/config.toml212# =============================================================================COMMENT
MEDIUMdocs/config.toml214# =============================================================================COMMENT
MEDIUMdocs/config.toml233# =============================================================================COMMENT
MEDIUMdocs/config.toml235# =============================================================================COMMENT
MEDIUMdocs/config.toml243# =============================================================================COMMENT
MEDIUMdocs/config.toml245# =============================================================================COMMENT
MEDIUMdocs/config.toml265# =============================================================================COMMENT
MEDIUMdocs/config.toml267# =============================================================================COMMENT
MEDIUMdocs/config.toml274# =============================================================================COMMENT
MEDIUMdocs/config.toml276# =============================================================================COMMENT
MEDIUMdocs/config.toml291# =============================================================================COMMENT
MEDIUMdocs/config.toml293# =============================================================================COMMENT
MEDIUMdocs/config.toml301# =============================================================================COMMENT
MEDIUMdocs/config.toml303# =============================================================================COMMENT
MEDIUMdocs/config.toml162# =============================================================================COMMENT
MEDIUMdocs/config.toml164# =============================================================================COMMENT
MEDIUMdocs/config.toml175# =============================================================================COMMENT
MEDIUMdocs/config.toml177# =============================================================================COMMENT
MEDIUMdocs/config.toml323# =============================================================================COMMENT
MEDIUMdocs/config.toml325# =============================================================================COMMENT
MEDIUMsrc/lib.rs22//! ┌─────────────────────────────────────────────────────────────────────┐COMMENT
MEDIUMsrc/lib.rs24//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs28//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs33//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs39//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs45//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
84 more matches not shown…
Over-Commented Block450 hits · 428 pts
SeverityFileLineSnippetContext
LOWCargo.toml21# etc. — see #1061), whereas ring's prebuilt assembly is portable. reqwest'sCOMMENT
LOWbuild.rs1//! Give the `dalfox` binary a larger main-thread stack on Windows.COMMENT
LOWtests/observed_js_breakout_test.rs1//! End-to-end coverage for the issue #1073 follow-up: the *observed-prefix* JSCOMMENT
LOWtests/error_page_recall_test.rs1//! End-to-end recall guards for the *interaction* between a real sink and theCOMMENT
LOWtests/error_page_recall_test.rs41fn escape(s: &str) -> String {COMMENT
LOWtests/error_page_recall_test.rs221}COMMENT
LOWtests/state_file_resume_test.rs1//! End-to-end coverage for `--state-file` resume (issue #1275).COMMENT
LOWtests/integration/scan_verification.rs1//! Integration tests: spin up a local vulnerable server, run dalfox scans,COMMENT
LOWtests/integration/scan_verification.rs1181//COMMENT
LOWtests/functional/deep_scan_preflight_test.rs1//! Regression tests for the `--deep-scan` preflight gate.COMMENT
LOWtests/functional/mod.rs1//! Functional tests for DalfoxCOMMENT
LOWtests/functional/xss_mock_server.rs2501/// Reports per-case detection and HTTP request count, and asserts that theCOMMENT
LOWtests/functional/mock_case_loader.rs21 pub header_name: Option<String>,COMMENT
LOW…functional/mock_cases/realworld/synthesis_filters.toml1# Filter-constrained synthesis benchmark (issue #1075).COMMENT
LOW…/functional/mock_cases/realworld/owasp_crs_bypass.toml1# OWASP CRS bypass test casesCOMMENT
LOWdocs/config.toml1# =============================================================================COMMENT
LOWdocs/config.toml81filename = "search.json"COMMENT
LOWdocs/config.toml201# =============================================================================COMMENT
LOWdocs/config.toml221# fingerprint = trueCOMMENT
LOWdocs/config.toml241emoji = false # If true, convert emoji shortcodes (e.g. :smile:) to emoji charactersCOMMENT
LOWdocs/config.toml261# enabled = trueCOMMENT
LOWdocs/config.toml281# name = "My Site"COMMENT
LOWdocs/config.toml321format = "png" # PNG so social platforms actually render og:image (SVG is unsupported)COMMENT
LOWdocs/config.toml341# maxDeletes = 256 # safety limit (-1 disables)COMMENT
LOW.cargo/audit.toml1# Local cargo-audit configuration for dalfox.COMMENT
LOWexamples/config.toml1# Dalfox sample configuration (TOML)COMMENT
LOWexamples/config.toml21# Include HTTP request/response content in output (JSON/plain detail sections)COMMENT
LOWexamples/config.toml41# Cookies ("name=value")COMMENT
LOWexamples/config.toml61# Remote parameter wordlists providers (burp, assetnote)COMMENT
LOWexamples/config.toml81# Worker count for analysis/miningCOMMENT
LOWexamples/config.toml101# blind_callback_url = "https://collab.example/x/callback"COMMENT
LOW.github/workflows/ci-extended.yml41 - name: Run normally-ignored testsCOMMENT
LOWsrc/config.rs161/// [`ExplicitArgs`](crate::cmd::scan::ExplicitArgs); the others read a value theCOMMENT
LOWsrc/config.rs221COMMENT
LOWsrc/config.rs421COMMENT
LOWsrc/config.rs581 // NOTE: the `only_custom_payload` / `custom_payload` pairing isCOMMENT
LOWsrc/config.rs701# state_file = "scan.state" # CLI only (not applied by `dalfox server` / MCP); record completed targets and skip them wCOMMENT
LOWsrc/config.rs721# cookies = ["a=1", "b=2"]COMMENT
LOWsrc/config.rs741# mining_dict_word = "wordlist.txt"COMMENT
LOWsrc/config.rs761# encoders = ["url", "html"] # none, url, 2url, 3url, 4url, html, htmlpad, base64, unicode, zwspCOMMENT
LOWsrc/lib.rs1//! Dalfox XSS ScannerCOMMENT
LOWsrc/lib.rs21//! ```textCOMMENT
LOWsrc/lib.rs41//! │ │ run_scanning() payload gen │ → ParamPayloadJob[] │COMMENT
LOWsrc/lib.rs121 /// don't pollute each other's progress tallies. Callers useCOMMENT
LOWsrc/lib.rs161/// counter, rate limiter) captured from the currently-executing task.COMMENT
LOWsrc/lib.rs261/// counter when one is bound (see MCP `run_job`). Prefer this over callingCOMMENT
LOWsrc/main.rs41 // so `dalfox <TARGET> --no-color` (no subcommand) works, *and* withCOMMENT
LOWsrc/main.rs81 Url(cmd::url::UrlArgs),COMMENT
LOWsrc/main.rs141}COMMENT
LOWsrc/main.rs241 }COMMENT
LOWsrc/main.rs401 // like an unclosed brace in `my-scan.toml` and leaves the operatorCOMMENT
LOWsrc/cmd/mod.rs41 /// `target_summary` entries with `status: "skipped"` (the target neverCOMMENT
LOWsrc/cmd/scan/session.rs1//! Session-state detection (issue #1273).COMMENT
LOWsrc/cmd/scan/session.rs41/// Policy when neither the CLI nor a config file says otherwise: stop spendingCOMMENT
LOWsrc/cmd/scan/session.rs61/// false-positive on every dynamic page.COMMENT
LOWsrc/cmd/scan/session.rs81 /// login-form signal over this many bytes of the probe body so both sidesCOMMENT
LOWsrc/cmd/scan/session.rs181 has_login_form: has_login_form(body),COMMENT
LOWsrc/cmd/scan/session.rs221///COMMENT
LOWsrc/cmd/scan/session.rs241 // A *redirect* onto an unambiguous login URL, not merely living at one, andCOMMENT
LOWsrc/cmd/scan/session.rs261 return Some(format!(COMMENT
390 more matches not shown…
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtests/e2e/config_path_smoke_test.rs85 // The missing-path scaffold (asserted above) must not be silent: a typo'dCOMMENT
MEDIUMtests/e2e/config_path_smoke_test.rs115 // creation notice fires — the notice is scoped to the scaffold case only.COMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMtests/functional/dom_xss_tests.rs27/// For production use, a proper HTML parser would be more robust.COMMENT
MEDIUMsrc/parameter_analysis/tests.rs872/// robust. `bs` is the region for the lone backslash (`\` raw, `\\` doubled).COMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/cd-release.yml126 # Create the appropriate archive format for each OSCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/static/assets/js/highlight.min.js317}),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code",CODE