🌙🦊 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,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).
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.
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 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.
| 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 | 241 | // ── 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 | 29 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 31 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 37 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 39 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 48 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 50 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 58 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 60 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 72 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 74 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 84 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 86 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 98 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 100 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 108 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 110 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 118 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 120 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 135 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 137 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 147 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 149 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 191 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 193 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 201 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 203 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 212 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 214 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 233 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 235 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 243 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 245 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 265 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 267 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 274 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 276 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 291 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 293 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 301 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 303 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 162 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 164 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 175 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 177 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 323 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 325 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | src/lib.rs | 22 | //! ┌─────────────────────────────────────────────────────────────────────┐ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 24 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 28 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 33 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 39 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| MEDIUM⚡ | src/lib.rs | 45 | //! ├───────┼─────────────────────────────────┼──────────────────────────┤ | COMMENT |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Cargo.toml | 21 | # etc. — see #1061), whereas ring's prebuilt assembly is portable. reqwest's | COMMENT |
| LOW | build.rs | 1 | //! Give the `dalfox` binary a larger main-thread stack on Windows. | COMMENT |
| 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/error_page_recall_test.rs | 1 | //! End-to-end recall guards for the *interaction* between a real sink and the | COMMENT |
| LOW | tests/error_page_recall_test.rs | 41 | fn escape(s: &str) -> String { | COMMENT |
| LOW | tests/error_page_recall_test.rs | 221 | } | COMMENT |
| LOW | tests/state_file_resume_test.rs | 1 | //! End-to-end coverage for `--state-file` resume (issue #1275). | 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 | 1181 | // | 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 | 2501 | /// Reports per-case detection and HTTP request count, and asserts that the | 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 | 81 | filename = "search.json" | COMMENT |
| LOW | docs/config.toml | 201 | # ============================================================================= | COMMENT |
| LOW | docs/config.toml | 221 | # fingerprint = true | COMMENT |
| LOW | docs/config.toml | 241 | emoji = false # If true, convert emoji shortcodes (e.g. :smile:) to emoji characters | COMMENT |
| LOW | docs/config.toml | 261 | # enabled = true | COMMENT |
| LOW | docs/config.toml | 281 | # name = "My Site" | COMMENT |
| LOW | docs/config.toml | 321 | format = "png" # PNG so social platforms actually render og:image (SVG is unsupported) | COMMENT |
| LOW | docs/config.toml | 341 | # maxDeletes = 256 # safety limit (-1 disables) | 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 | 161 | /// [`ExplicitArgs`](crate::cmd::scan::ExplicitArgs); the others read a value the | COMMENT |
| LOW | src/config.rs | 221 | COMMENT | |
| LOW | src/config.rs | 421 | COMMENT | |
| LOW | src/config.rs | 581 | // NOTE: the `only_custom_payload` / `custom_payload` pairing is | COMMENT |
| LOW | src/config.rs | 701 | # state_file = "scan.state" # CLI only (not applied by `dalfox server` / MCP); record completed targets and skip them w | COMMENT |
| LOW | src/config.rs | 721 | # cookies = ["a=1", "b=2"] | COMMENT |
| LOW | src/config.rs | 741 | # mining_dict_word = "wordlist.txt" | COMMENT |
| LOW | src/config.rs | 761 | # encoders = ["url", "html"] # none, url, 2url, 3url, 4url, html, htmlpad, base64, unicode, zwsp | COMMENT |
| LOW | src/lib.rs | 1 | //! Dalfox XSS Scanner | COMMENT |
| LOW | src/lib.rs | 21 | //! ```text | COMMENT |
| LOW | src/lib.rs | 41 | //! │ │ run_scanning() payload gen │ → ParamPayloadJob[] │ | COMMENT |
| LOW | src/lib.rs | 121 | /// don't pollute each other's progress tallies. Callers use | COMMENT |
| LOW | src/lib.rs | 161 | /// counter, rate limiter) captured from the currently-executing task. | COMMENT |
| LOW | src/lib.rs | 261 | /// counter when one is bound (see MCP `run_job`). Prefer this over calling | COMMENT |
| LOW | src/main.rs | 41 | // so `dalfox <TARGET> --no-color` (no subcommand) works, *and* with | COMMENT |
| LOW | src/main.rs | 81 | Url(cmd::url::UrlArgs), | COMMENT |
| LOW | src/main.rs | 141 | } | COMMENT |
| LOW | src/main.rs | 241 | } | COMMENT |
| LOW | src/main.rs | 401 | // like an unclosed brace in `my-scan.toml` and leaves the operator | COMMENT |
| LOW | src/cmd/mod.rs | 41 | /// `target_summary` entries with `status: "skipped"` (the target never | COMMENT |
| LOW | src/cmd/scan/session.rs | 1 | //! Session-state detection (issue #1273). | COMMENT |
| LOW | src/cmd/scan/session.rs | 41 | /// Policy when neither the CLI nor a config file says otherwise: stop spending | COMMENT |
| LOW | src/cmd/scan/session.rs | 61 | /// false-positive on every dynamic page. | COMMENT |
| LOW | src/cmd/scan/session.rs | 81 | /// login-form signal over this many bytes of the probe body so both sides | COMMENT |
| LOW | src/cmd/scan/session.rs | 181 | has_login_form: has_login_form(body), | COMMENT |
| LOW | src/cmd/scan/session.rs | 221 | /// | COMMENT |
| LOW | src/cmd/scan/session.rs | 241 | // A *redirect* onto an unambiguous login URL, not merely living at one, and | COMMENT |
| LOW | src/cmd/scan/session.rs | 261 | return Some(format!( | COMMENT |
| 390 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/e2e/config_path_smoke_test.rs | 85 | // The missing-path scaffold (asserted above) must not be silent: a typo'd | COMMENT |
| MEDIUM | tests/e2e/config_path_smoke_test.rs | 115 | // creation notice fires — the notice is scoped to the scaffold case only. | COMMENT |
| 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 | 872 | /// 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 |