skills/dast-automation/SKILL.md
Automated Dynamic Application Security Testing (DAST) using Playwright MCP plus standard OS pentest tooling. Performs blackbox or greybox scans on single or multiple domains with orchestrated crawling, vulnerability detection, and structured output. Trigger on requests like "scan this domain", "run DAST on these URLs", "automated pentest", or "security-test the staging app".
npx skillsauth add hardw00t/ai-security-arsenal dast-automationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Thin router. Specific guidance lives in workflows/, methodology/, payloads/, and examples/. Read this file first, then lazy-load only the files you need for the task.
"scan <domain>", "run DAST", "blackbox scan", "greybox scan", "authenticated pentest", "spider and test this app", "security-test these URLs", "weekly security scan", "continuous DAST".
sast-automation / sca-automation.container-security.iac-security.mobile-security.network-audit.hackerone-research for narrative PoC work.Domains = 1 ──→ creds provided? ──→ no → workflows/blackbox_single_domain.md
└─→ yes → workflows/greybox_authenticated.md
Domains ≥ 2 ──→ one-shot scan ──→ workflows/multi_domain_parallel.md
└→ recurring schedule ─→ workflows/continuous_scanning.md
Any mode ──→ emit schemas/finding.json → methodology/reporting.md
Independent — run concurrently:
nmap, whatweb, ffuf, subfinder, root-level nuclei.Must be sequential:
output.json is finalized.Spawn sub-agents (via the Task tool) when:
| Scenario | Sub-agent granularity | Cap | |----------|----------------------|-----| | Multi-domain scan | One per domain | 5 concurrent | | Focused single-target triage | One per vuln class (XSS, SQLi, SSRF, IDOR, business-logic) | 5 concurrent | | IDOR / authz diff | One per account identity | 2–3 (one per tier) | | Continuous fleet | One per domain per schedule tick | 5 concurrent |
Each sub-agent writes to its own results/<scope>/ directory and returns a path to output.json. The parent aggregates; sub-agents never cross-read each other's output mid-run.
Extended thinking on:
payloads/business_logic.txt.No / minimal thinking on:
payloads/*.txt against discovered inputs.schemas/finding.json.evidence.playwright_screenshot_path..zip trace for time-travel debugging of complex finding repros.Every output entry conforms to schemas/finding.json. DAST-specific fields: affected.url, affected.http_method, affected.parameter, affected.payload, affected.http_status, affected.authenticated_as, evidence.playwright_screenshot_path, evidence.playwright_trace_path, evidence.har_path.
| File | When |
|------|------|
| workflows/blackbox_single_domain.md | One domain, no creds |
| workflows/greybox_authenticated.md | One domain, with creds |
| workflows/multi_domain_parallel.md | ≥2 domains, one-shot |
| workflows/continuous_scanning.md | Scheduled / CI recurring |
| File | Phase |
|------|-------|
| methodology/recon.md | Phase 0 — surface discovery |
| methodology/crawling.md | Phase 1 — Playwright BFS + auth |
| methodology/vuln_testing.md | Phase 2 — injection, authz, logic |
| methodology/reporting.md | Phase 3 — output artifacts & gating |
| File | Content |
|------|---------|
| payloads/xss_contexts.txt | HTML, attribute, JS, URL, WAF-bypass XSS |
| payloads/sqli.txt | Auth-bypass, error, time, boolean, union, sqlmap flags |
| payloads/ssrf_cloud_metadata.txt| AWS/GCP/Azure/K8s metadata URLs, IP bypass |
| payloads/path_traversal.txt | Unix/Windows traversal, CVE patterns, target files |
| payloads/crlf_smuggling.txt | CRLF header injection, CL.TE/TE.CL smuggling |
| payloads/jwt_attacks.txt | alg:none, key confusion, kid/jku, weak HMAC |
| payloads/business_logic.txt | Price, workflow skip, race, IDOR, mass assignment |
| File | Content |
|------|---------|
| references/hackerone_attack_patterns.md | 6,894 HackerOne patterns across 157 categories (pointer — don't inline) |
| references/bounty_patterns_2024_2026.md | Post-2023 bounty TTPs (TE.0 smuggling, HTTP/2 CONNECT scan, WAFFLED parser bypass, SVG/popover XSS, base64-SSRF, prototype pollution, cache deception) |
| references/advanced_exploitation_techniques.md | OS-tool deep dives (sqlmap, nuclei, jwt_tool, etc.) |
| references/dast_methodology.md | Full long-form methodology |
| references/playwright_security_patterns.md | Playwright-specific security patterns |
| references/vulnerability_testing.md | Exhaustive vuln-class test catalogue |
| references/tool_configuration.md | Per-tool config templates |
| references/api_testing.md | API-specific DAST |
| references/reporting_guide.md | Long-form report customization |
| File | Scenario |
|------|----------|
| examples/blackbox_basic.md | Single-domain blackbox tool-call blueprint |
| examples/greybox_multi_domain.md | Authenticated multi-domain with sub-agents |
| examples/continuous_setup.md | Setting up scheduled scans |
| examples/github_actions_dast.yml | Drop-in CI workflow |
| Name | Purpose | Install |
|------|---------|---------|
| Playwright MCP | Browser automation, crawling, auth, evidence | MCP server in Claude config |
| nmap | Port/service discovery | apt install nmap |
| subfinder | Passive subdomain enum | go install github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest |
| whatweb | Tech fingerprinting | apt install whatweb |
| ffuf | Content discovery | go install github.com/ffuf/ffuf/v2@latest |
| nuclei | CVE / misconfig / panel templates | go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest |
| sqlmap | Automated SQLi | apt install sqlmap |
| nikto | Web-server misconfig (optional) | apt install nikto |
| jwt_tool | JWT attacks | pip install jwt_tool |
| interactsh-client | OOB exfil for SSRF/blind RCE | go install github.com/projectdiscovery/interactsh/cmd/interactsh-client@latest |
Helper scripts live under scripts/ (entry points: playwright_dast_scanner.py, dast_orchestrator.py, check_findings.py).
development
Software Composition Analysis: find vulnerable dependencies, correlate CVE/GHSA/OSV across ecosystems, generate CycloneDX/SPDX SBOMs, assess license compliance, and run reachability-aware triage to suppress unexploitable findings. Use when scanning package dependencies (npm, PyPI, Maven, Cargo, Go, RubyGems, Composer), reviewing PR lockfile diffs, generating SBOMs, auditing licenses, hunting malicious packages, or auditing the software supply chain. Triggers on requests to scan dependencies, check vulnerable packages, generate SBOM, license compliance, typosquat/dependency-confusion review, or reachability-based vuln triage.
development
Static Application Security Testing orchestration — run and compose Semgrep, CodeQL, Bandit, gosec, Brakeman, SpotBugs, ESLint; author custom rules; ingest SARIF; triage and rank findings by exploitability. Use this skill when asked to scan code for vulnerabilities, write Semgrep/CodeQL rules, triage SAST output, reduce false positives, or integrate SAST into CI/CD. Triggers on phrases like 'scan this code', 'write a Semgrep rule', 'triage these findings', 'SARIF', 'SAST in CI', or when a repo is handed over for a security review.
testing
Internal network and Active Directory penetration testing skill for corporate environments. Use when performing authorized internal network assessments, AD attack path analysis, lateral movement, privilege escalation, and post-exploitation across Windows/Linux estates. Covers BloodHound, Impacket, NetExec/CrackMapExec, Responder, Rubeus, mimikatz, certipy. Triggers on requests to pentest internal networks, attack AD, perform lateral movement, Kerberoast, DCSync, or escalate privileges.
tools
LLM and AI application security testing skill for prompt injection (direct, indirect, multimodal), system-prompt extraction, RAG poisoning, memory poisoning, MCP server injection, skill-file injection, agentic tool misuse, computer-use UI injection, and excessive agency. Authorization required — this skill tests AI systems you are explicitly permitted to assess. Triggers on requests to test LLM / AI-agent / RAG / MCP / computer-use security, perform prompt injection, extract system prompts, poison RAG or memory, audit agent tool use, or evaluate AI guardrails.