🌙🦊 Dalfox is a powerful open-source XSS scanner and utility focused on automation.
This report summarizes scanner evidence for hahwul/dalfox, a Rust project with 5,321 GitHub stars. SynthScan examined 182,537 lines of code across 453 source files, recording 846 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 6.3 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 685 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 160 finding(s).
Which changes need focused human review? 846 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 846 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| 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/state_file_resume_test.rs | 1 | //! End-to-end coverage for `--state-file` resume (issue #1275). | COMMENT |
| LOW | tests/remote_provider_cache_test.rs | 1 | //! The remote payload / wordlist caches must be keyed by provider set. | COMMENT |
| LOW | tests/session_loss_test.rs | 41 | COMMENT | |
| LOW | tests/agent_skills_sync_test.rs | 1 | //! The agent-facing skill is published in three places that must agree, and | 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 | 1241 | COMMENT | |
| LOW | tests/common/mod.rs | 1 | //! Common test utilities and helpers for Dalfox tests | 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 | 2541 | /// Drives the real scanner against the `synthesis_filters.toml` corpus, whose | 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 | 121 | # ============================================================================= | COMMENT |
| LOW | docs/config.toml | 181 | # default_language_only = true # Multilingual: true = main feed has default language only | COMMENT |
| LOW | docs/config.toml | 201 | # [auto_includes] | COMMENT |
| LOW | docs/config.toml | 221 | COMMENT | |
| LOW | docs/config.toml | 241 | # | COMMENT |
| LOW | docs/config.toml | 261 | # Run custom shell commands before/after build process | COMMENT |
| LOW | docs/config.toml | 281 | # offline_page = "/offline.html" | COMMENT |
| LOW | docs/config.toml | 321 | # - Local filesystem sync: url = "file://./out" | COMMENT |
| LOW | docs/config.toml | 341 | # name = "s3" | COMMENT |
| LOW | docs/static/css/style.css | 2981 | #m-sxss:checked ~ .mode-tabs label[for="m-sxss"], | 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 | 61 | run: cargo +${{ steps.msrv.outputs.version }} test --locked | COMMENT |
| LOW | .github/workflows/ci-extended.yml | 121 | harness-smoke: | COMMENT |
| LOW | .github/workflows/ci-packaging.yml | 81 | # validating the amd64 source build before publish. The arm64/armhf/i386 | COMMENT |
| LOW | src/config.rs | 221 | /// [`ExplicitArgs`](crate::cmd::scan::ExplicitArgs); the others read a value the | COMMENT |
| LOW | src/config.rs | 281 | COMMENT | |
| LOW | src/config.rs | 481 | } | COMMENT |
| LOW | src/config.rs | 661 | // deliberately NOT checked here. This validator runs on the config file | COMMENT |
| LOW | src/config.rs | 821 | # output = "output.txt" | COMMENT |
| LOW | src/config.rs | 841 | # headers = ["X-Header: value", "Authorization: Bearer ..."] | COMMENT |
| LOW | src/config.rs | 861 | # skip_discovery = false | COMMENT |
| LOW | src/config.rs | 881 | # insecure = true # skip TLS certificate verification (default true); set false to enforce validation | COMMENT |
| LOW | src/config.rs | 901 | # custom_alert_type = "none" # alert value handling: none (keep original), str (wrap value in quotes) | 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 | 101 | /// Install the process-wide rustls crypto provider (ring). | COMMENT |
| LOW | src/lib.rs | 121 | /// Process-wide request rate limiter installed from `--rate-limit` | COMMENT |
| LOW | src/lib.rs | 141 | pub(crate) static REQUEST_FAILURE_COUNT_JOB: std::sync::Arc<AtomicU64>; | COMMENT |
| LOW | src/lib.rs | 181 | /// future so concurrent scans stay isolated. But `run_scanning` fans work out | COMMENT |
| LOW | src/lib.rs | 301 | /// counted them, so a target that drops or resets injection requests produced a | COMMENT |
| LOW | src/lib.rs | 341 | } | COMMENT |
| LOW | src/main.rs | 41 | // so `dalfox <TARGET> --no-color` (no subcommand) works, *and* with | COMMENT |
| LOW | src/main.rs | 141 | /// would offer the deprecated compat commands (`url` / `file` / `pipe`) and the | COMMENT |
| LOW | src/main.rs | 181 | .unwrap_or_default() | COMMENT |
| 617 more matches not shown… | ||||
| 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 | 119 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 121 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 128 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 130 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 140 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 142 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 184 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 186 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 194 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 196 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 205 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 207 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 226 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 228 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 236 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 238 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 258 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 260 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 267 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 269 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 284 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 286 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 294 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | docs/config.toml | 296 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 155 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 157 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 168 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 170 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 316 | # ============================================================================= | COMMENT |
| MEDIUM | docs/config.toml | 318 | # ============================================================================= | 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 |
| 100 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 | .github/workflows/ci-extended.yml | 126 | # harness's 8 sequential create/cancel cycles hit 503 from cycle 4 on. That | COMMENT |
| MEDIUM | .github/workflows/ci-extended.yml | 128 | # fixed — the MCP half of this harness is green and worth gating on. | COMMENT |
| MEDIUM | src/parameter_analysis/tests.rs | 874 | /// robust. `bs` is the region for the lone backslash (`\` raw, `\\` doubled). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/e2e/config_path_smoke_test.rs | 94 | // The missing-path scaffold (asserted above) must not be silent: a typo'd | COMMENT |
| MEDIUM | tests/e2e/config_path_smoke_test.rs | 124 | // creation notice fires — the notice is scoped to the scaffold case only. | COMMENT |
| MEDIUM | tests/e2e/config_path_smoke_test.rs | 356 | // The scaffold write is best-effort (`let _ = std::fs::write(..)`), so the | 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 |