🌙🦊 Dalfox is a powerful open-source XSS scanner and utility focused on automation.
This report presents the forensic synthetic code analysis of hahwul/dalfox, a Rust project with 5,118 GitHub stars. SynthScan v2.0 examined 112,177 lines of code across 331 source files, recording 419 pattern matches distributed across 5 syntactic categories. The overall adjusted score of 6.1 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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.
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.
The scanner identified 419 distinct pattern matches across 5 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/functional/analyze_external_js_test.rs | 19 | // ── server handlers ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/functional/analyze_external_js_test.rs | 104 | // ── server bootstrap ───────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/functional/analyze_external_js_test.rs | 129 | // ── scan helper ────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | tests/functional/analyze_external_js_test.rs | 237 | // ── tests ──────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | docs/config.toml | 1 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 3 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 9 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 11 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 28 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 30 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 36 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 38 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 47 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 49 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 57 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 59 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 71 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 73 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 83 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 85 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 97 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 99 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 107 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 109 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 117 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 119 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 134 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 136 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 146 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 148 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 190 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 192 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 200 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 202 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 211 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 213 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 232 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 234 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 242 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 244 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 264 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 266 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 273 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 275 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 290 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 292 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 300 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 302 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 161 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 163 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 174 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 176 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 322 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 324 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | src/lib.rs | 16 | //! ┌─────────────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 18 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 22 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 27 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 33 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 39 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| 72 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/observed_js_breakout_test.rs | 1 | //! End-to-end coverage for the issue #1073 follow-up: the *observed-prefix* JS | COMMENT |
| LOW | tests/integration/scan_verification.rs | 1 | //! Integration tests: spin up a local vulnerable server, run dalfox scans, | COMMENT |
| LOW | tests/integration/scan_verification.rs | 1121 | // Tests — Partial reflection (prefix-strip / suffix-strip / regex extract) | COMMENT |
| LOW | tests/functional/deep_scan_preflight_test.rs | 1 | //! Regression tests for the `--deep-scan` preflight gate. | COMMENT |
| LOW | tests/functional/mod.rs | 1 | //! Functional tests for Dalfox | COMMENT |
| LOW | tests/functional/xss_mock_server.rs | 2481 | overall_rate >= 0.70, | COMMENT |
| LOW | tests/functional/mock_case_loader.rs | 21 | pub header_name: Option<String>, | COMMENT |
| LOW | …functional/mock_cases/realworld/synthesis_filters.toml | 1 | # Filter-constrained synthesis benchmark (issue #1075). | COMMENT |
| LOW | …/functional/mock_cases/realworld/owasp_crs_bypass.toml | 1 | # OWASP CRS bypass test cases | COMMENT |
| LOW | docs/config.toml | 1 | # ============================================================================= | COMMENT |
| LOW | docs/config.toml | 21 | # language_name = "English" | COMMENT |
| LOW | docs/config.toml | 81 | exclude = [] # Exclude paths or patterns from search index | COMMENT |
| LOW | docs/config.toml | 181 | filename = "" # Leave empty for default (rss.xml or atom.xml) | COMMENT |
| LOW | docs/config.toml | 201 | # Auto Includes (Optional) | COMMENT |
| LOW | docs/config.toml | 221 | # source_dir = "static" | COMMENT |
| LOW | docs/config.toml | 241 | COMMENT | |
| LOW | docs/config.toml | 261 | # width = 32 # Placeholder width in pixels (8-128) | COMMENT |
| LOW | docs/config.toml | 281 | # short_name = "Site" | COMMENT |
| LOW | docs/config.toml | 321 | COMMENT | |
| LOW | docs/config.toml | 341 | COMMENT | |
| LOW | docs/static/css/style.css | 2821 | max-width: 46ch; | COMMENT |
| LOW | .cargo/audit.toml | 1 | # Local cargo-audit configuration for dalfox. | COMMENT |
| LOW | examples/config.toml | 1 | # Dalfox sample configuration (TOML) | COMMENT |
| LOW | examples/config.toml | 21 | # Include HTTP request/response content in output (JSON/plain detail sections) | COMMENT |
| LOW | examples/config.toml | 41 | # Cookies ("name=value") | COMMENT |
| LOW | examples/config.toml | 61 | # Remote parameter wordlists providers (burp, assetnote) | COMMENT |
| LOW | examples/config.toml | 81 | # Worker count for analysis/mining | COMMENT |
| LOW | examples/config.toml | 101 | # blind_callback_url = "https://collab.example/x/callback" | COMMENT |
| LOW | .github/workflows/ci-extended.yml | 41 | - name: Run normally-ignored tests | COMMENT |
| LOW | src/config.rs | 1041 | let tpl = r#"# Dalfox configuration (TOML) | COMMENT |
| LOW | src/config.rs | 1061 | # TARGETS | COMMENT |
| LOW | src/config.rs | 1081 | # remote_wordlists = ["burp", "assetnote"] | COMMENT |
| LOW | src/config.rs | 1101 | # remote_payloads = ["payloadbox", "portswigger"] | COMMENT |
| LOW | src/lib.rs | 1 | //! Dalfox XSS Scanner Library | COMMENT |
| LOW | src/lib.rs | 21 | //! │ │ │ (naive specials) │ | COMMENT |
| LOW | src/lib.rs | 41 | //! │ │ │ → ReflectionKind? │ | COMMENT |
| LOW | src/lib.rs | 81 | pub static WAF_CONSECUTIVE_BLOCKS: std::sync::atomic::AtomicU32 = | COMMENT |
| LOW | src/lib.rs | 121 | /// so concurrent scans don't trigger each other's adaptive backoff. | COMMENT |
| LOW | src/lib.rs | 161 | /// bulk of a scan's requests — silently fall back to the process-wide globals: | COMMENT |
| LOW | src/lib.rs | 241 | /// Acquire a rate-limit permit (see [`rate_limit_acquire`]) and then record | COMMENT |
| LOW | src/main.rs | 41 | // (flag *after* the scan subcommand) keeps working — the derive | COMMENT |
| LOW | src/main.rs | 61 | /// Run API/server mode | COMMENT |
| LOW | src/main.rs | 261 | // When the user explicitly passes `--config <path>`, a parse failure | COMMENT |
| LOW | src/cmd/scan/analysis.rs | 101 | COMMENT | |
| LOW | src/cmd/scan/analysis.rs | 141 | PreflightOutcome::Unreachable(code) => { | COMMENT |
| LOW | src/cmd/scan/scan_loop.rs | 21 | /// future completes (the `select!` drops this arm). | COMMENT |
| LOW | src/cmd/scan/logging.rs | 21 | } | COMMENT |
| LOW | src/cmd/scan/mod.rs | 1 | //! `dalfox scan` command. | COMMENT |
| LOW | src/cmd/scan/mod.rs | 341 | }; | COMMENT |
| LOW | src/cmd/scan/validation.rs | 21 | } | COMMENT |
| LOW | src/cmd/scan/preflight.rs | 21 | pub(crate) tech_result: crate::scanning::tech_detect::TechDetectionResult, | COMMENT |
| LOW | src/cmd/scan/input.rs | 21 | // gigabyte misclassified blobs to a fast, clear error instead of | COMMENT |
| LOW | src/cmd/scan/input.rs | 181 | }; | COMMENT |
| LOW | src/cmd/scan/args.rs | 1 | //! Scan CLI argument surface: the `ScanArgs` clap struct, its centralized | COMMENT |
| LOW | src/cmd/scan/args.rs | 21 | /// drive the DOM-verification phase through the full dynamic-payload set | COMMENT |
| LOW | src/cmd/scan/args.rs | 41 | /// `--waf-min-confidence 0.0` to keep every match. | COMMENT |
| LOW | src/cmd/scan/args.rs | 61 | /// budget bound is identical across CLI / server / MCP. Beyond a ceiling, the | COMMENT |
| LOW | src/cmd/scan/args.rs | 161 | #[arg(short = 'i', long, default_value = "auto")] | COMMENT |
| LOW | src/cmd/scan/args.rs | 181 | #[arg(long)] | COMMENT |
| LOW | src/cmd/scan/args.rs | 201 | /// Silence all logs except POC output to STDOUT | COMMENT |
| 223 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/functional/dom_xss_tests.rs | 27 | /// For production use, a proper HTML parser would be more robust. | COMMENT |
| MEDIUM | src/parameter_analysis/tests.rs | 1266 | /// robust. `bs` is the region for the lone backslash (`\` raw, `\\` doubled). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/cd-release.yml | 126 | # Create the appropriate archive format for each OS | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/static/assets/js/highlight.min.js | 317 | }),re=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code", | CODE |