Repository Analysis

hahwul/dalfox

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

6.1 Low AI signal View on GitHub

Analysis Overview

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).

6.1
Adjusted Score
6.1
Raw Score
100%
Time Factor
2026-07-12
Last Push
5.1K
Stars
Rust
Language
112.2K
Lines of Code
331
Files
419
Pattern Hits
2026-07-14
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 135LOW 284

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 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.

Decorative Section Separators132 hits · 406 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.rs237// ── tests ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMdocs/config.toml1# =============================================================================COMMENT
MEDIUMdocs/config.toml3# =============================================================================COMMENT
MEDIUMdocs/config.toml9# =============================================================================COMMENT
MEDIUMdocs/config.toml11# =============================================================================COMMENT
MEDIUMdocs/config.toml28# =============================================================================COMMENT
MEDIUMdocs/config.toml30# =============================================================================COMMENT
MEDIUMdocs/config.toml36# =============================================================================COMMENT
MEDIUMdocs/config.toml38# =============================================================================COMMENT
MEDIUMdocs/config.toml47# =============================================================================COMMENT
MEDIUMdocs/config.toml49# =============================================================================COMMENT
MEDIUMdocs/config.toml57# =============================================================================COMMENT
MEDIUMdocs/config.toml59# =============================================================================COMMENT
MEDIUMdocs/config.toml71# =============================================================================COMMENT
MEDIUMdocs/config.toml73# =============================================================================COMMENT
MEDIUMdocs/config.toml83# =============================================================================COMMENT
MEDIUMdocs/config.toml85# =============================================================================COMMENT
MEDIUMdocs/config.toml97# =============================================================================COMMENT
MEDIUMdocs/config.toml99# =============================================================================COMMENT
MEDIUMdocs/config.toml107# =============================================================================COMMENT
MEDIUMdocs/config.toml109# =============================================================================COMMENT
MEDIUMdocs/config.toml117# =============================================================================COMMENT
MEDIUMdocs/config.toml119# =============================================================================COMMENT
MEDIUMdocs/config.toml134# =============================================================================COMMENT
MEDIUMdocs/config.toml136# =============================================================================COMMENT
MEDIUMdocs/config.toml146# =============================================================================COMMENT
MEDIUMdocs/config.toml148# =============================================================================COMMENT
MEDIUMdocs/config.toml190# =============================================================================COMMENT
MEDIUMdocs/config.toml192# =============================================================================COMMENT
MEDIUMdocs/config.toml200# =============================================================================COMMENT
MEDIUMdocs/config.toml202# =============================================================================COMMENT
MEDIUMdocs/config.toml211# =============================================================================COMMENT
MEDIUMdocs/config.toml213# =============================================================================COMMENT
MEDIUMdocs/config.toml232# =============================================================================COMMENT
MEDIUMdocs/config.toml234# =============================================================================COMMENT
MEDIUMdocs/config.toml242# =============================================================================COMMENT
MEDIUMdocs/config.toml244# =============================================================================COMMENT
MEDIUMdocs/config.toml264# =============================================================================COMMENT
MEDIUMdocs/config.toml266# =============================================================================COMMENT
MEDIUMdocs/config.toml273# =============================================================================COMMENT
MEDIUMdocs/config.toml275# =============================================================================COMMENT
MEDIUMdocs/config.toml290# =============================================================================COMMENT
MEDIUMdocs/config.toml292# =============================================================================COMMENT
MEDIUMdocs/config.toml300# =============================================================================COMMENT
MEDIUMdocs/config.toml302# =============================================================================COMMENT
MEDIUMdocs/config.toml161# =============================================================================COMMENT
MEDIUMdocs/config.toml163# =============================================================================COMMENT
MEDIUMdocs/config.toml174# =============================================================================COMMENT
MEDIUMdocs/config.toml176# =============================================================================COMMENT
MEDIUMdocs/config.toml322# =============================================================================COMMENT
MEDIUMdocs/config.toml324# =============================================================================COMMENT
MEDIUMsrc/lib.rs16//! ┌─────────────────────────────────────────────────────────────────────┐COMMENT
MEDIUMsrc/lib.rs18//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs22//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs27//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs33//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
MEDIUMsrc/lib.rs39//! ├───────┼─────────────────────────────────┼──────────────────────────┤COMMENT
72 more matches not shown…
Over-Commented Block283 hits · 272 pts
SeverityFileLineSnippetContext
LOWtests/observed_js_breakout_test.rs1//! End-to-end coverage for the issue #1073 follow-up: the *observed-prefix* JSCOMMENT
LOWtests/integration/scan_verification.rs1//! Integration tests: spin up a local vulnerable server, run dalfox scans,COMMENT
LOWtests/integration/scan_verification.rs1121// Tests — Partial reflection (prefix-strip / suffix-strip / regex extract)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.rs2481 overall_rate >= 0.70,COMMENT
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.toml21# language_name = "English"COMMENT
LOWdocs/config.toml81exclude = [] # Exclude paths or patterns from search indexCOMMENT
LOWdocs/config.toml181filename = "" # Leave empty for default (rss.xml or atom.xml)COMMENT
LOWdocs/config.toml201# Auto Includes (Optional)COMMENT
LOWdocs/config.toml221# source_dir = "static"COMMENT
LOWdocs/config.toml241COMMENT
LOWdocs/config.toml261# width = 32 # Placeholder width in pixels (8-128)COMMENT
LOWdocs/config.toml281# short_name = "Site"COMMENT
LOWdocs/config.toml321COMMENT
LOWdocs/config.toml341COMMENT
LOWdocs/static/css/style.css2821 max-width: 46ch;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.rs1041 let tpl = r#"# Dalfox configuration (TOML)COMMENT
LOWsrc/config.rs1061# TARGETSCOMMENT
LOWsrc/config.rs1081# remote_wordlists = ["burp", "assetnote"]COMMENT
LOWsrc/config.rs1101# remote_payloads = ["payloadbox", "portswigger"]COMMENT
LOWsrc/lib.rs1//! Dalfox XSS Scanner LibraryCOMMENT
LOWsrc/lib.rs21//! │ │ │ (naive specials) │COMMENT
LOWsrc/lib.rs41//! │ │ │ → ReflectionKind? │COMMENT
LOWsrc/lib.rs81pub static WAF_CONSECUTIVE_BLOCKS: std::sync::atomic::AtomicU32 =COMMENT
LOWsrc/lib.rs121 /// so concurrent scans don't trigger each other's adaptive backoff.COMMENT
LOWsrc/lib.rs161/// bulk of a scan's requests — silently fall back to the process-wide globals:COMMENT
LOWsrc/lib.rs241/// Acquire a rate-limit permit (see [`rate_limit_acquire`]) and then recordCOMMENT
LOWsrc/main.rs41 // (flag *after* the scan subcommand) keeps working — the deriveCOMMENT
LOWsrc/main.rs61 /// Run API/server modeCOMMENT
LOWsrc/main.rs261 // When the user explicitly passes `--config <path>`, a parse failureCOMMENT
LOWsrc/cmd/scan/analysis.rs101COMMENT
LOWsrc/cmd/scan/analysis.rs141 PreflightOutcome::Unreachable(code) => {COMMENT
LOWsrc/cmd/scan/scan_loop.rs21/// future completes (the `select!` drops this arm).COMMENT
LOWsrc/cmd/scan/logging.rs21}COMMENT
LOWsrc/cmd/scan/mod.rs1//! `dalfox scan` command.COMMENT
LOWsrc/cmd/scan/mod.rs341 };COMMENT
LOWsrc/cmd/scan/validation.rs21}COMMENT
LOWsrc/cmd/scan/preflight.rs21 pub(crate) tech_result: crate::scanning::tech_detect::TechDetectionResult,COMMENT
LOWsrc/cmd/scan/input.rs21 // gigabyte misclassified blobs to a fast, clear error instead ofCOMMENT
LOWsrc/cmd/scan/input.rs181 };COMMENT
LOWsrc/cmd/scan/args.rs1//! Scan CLI argument surface: the `ScanArgs` clap struct, its centralizedCOMMENT
LOWsrc/cmd/scan/args.rs21/// drive the DOM-verification phase through the full dynamic-payload setCOMMENT
LOWsrc/cmd/scan/args.rs41/// `--waf-min-confidence 0.0` to keep every match.COMMENT
LOWsrc/cmd/scan/args.rs61/// budget bound is identical across CLI / server / MCP. Beyond a ceiling, theCOMMENT
LOWsrc/cmd/scan/args.rs161 #[arg(short = 'i', long, default_value = "auto")]COMMENT
LOWsrc/cmd/scan/args.rs181 #[arg(long)]COMMENT
LOWsrc/cmd/scan/args.rs201 /// Silence all logs except POC output to STDOUTCOMMENT
223 more matches not shown…
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.rs1266/// 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