Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Dalfox

$ dalfox Official High Risk
hahwul · Security & Secrets · MIT · macos / linux / windows

Dalfox (dalfox) is a Go-based parameter analysis and XSS vulnerability scanner supporting single URLs (dalfox url), URL lists (dalfox file), and stdin pipes (dalfox pipe). Offers --format json, --silence, --no-color, and --only-discovery to run headlessly in security pipelines.

FCRS-1.0 Score
78 /100
Good
Medium Confidence
Zero-Friction Install
brew install dalfox
CLI vs MCP Decision CLI Only

dalfox performs active HTTP parameter fuzzing and XSS verification locally against authorized web targets.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports --format json, --silence, --no-color, and pipe-based input cleanly without interactive prompts.

  • Native --format json and --silence flags
  • Supports stdin dalfox pipe workflows
Trust & Safety 16 / 25

Active DAST scanner that injects XSS payloads into remote forms/endpoints (stored XSS payloads can persist on targets), though --only-discovery limits aggressiveness.

  • Sends active XSS payloads to target URLs
  • Provides --only-discovery to limit to reflection checks
Setup & Portability 14 / 15

Single static Go binary available via brew, go install, Docker, and GitHub releases.

  • Cross-platform Go binary for macOS, Linux, and Windows
Utility & Efficiency 12 / 15

Focused, fast XSS/parameter analyzer that replaces ad-hoc curl fuzzing scripts.

  • Automated reflection, DOM, and blind XSS testing
Maintenance & Lineage 8 / 10

Maintained by hahwul (hahwul/dalfox) under MIT license.

  • Established open-source repository under MIT
Docs & Verifiability 7 / 10

Clear documentation site and subcommand --help examples.

  • Docs site at dalfox.hahwul.com/docs/home/

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No local credential store; optional target session cookies or auth headers are passed via -C or -H.

Side Effects
Read-Only Remote Write
Cost & Quotas

MIT open-source CLI; free to run locally.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Dalfox (dalfox) Agent Rules
- Only run against staging or explicitly authorized targets.
- Use `--only-discovery --silence --format json` first before running active XSS payload testing.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run parameter reflection discovery only
dalfox url "https://staging.example.com/search?q=test" --only-discovery --silence --format json

Checks reflected parameters on a staging URL using --only-discovery and emits JSON without injecting exploit payloads.

Controlled Writes & Previews

Scan a target URL list for XSS in JSON
dalfox file urls.txt --silence --no-color --format json -o xss-findings.json

Tests URLs in urls.txt with XSS payloads and writes structured JSON findings to xss-findings.json.

Strengths for Agents

  • + Clean --format json --silence --no-color pipeline support.
  • + --only-discovery lets agents verify parameter reflection before launching active payloads.

Caveats & Pitfalls

  • ! Active XSS probing can trigger WAF blocks or store persistent test scripts on stateful endpoints.
  • ! Always check --blind callback URLs carefully so targets are not pointed at untrusted external listeners.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI