agentleFS
kaandgnshkaandgnsh/Claude-Blue/skills/appsec/dast-baseline/SKILL.md

dast-baseline

Skill0 starsChanged 12 days agoMITView on GitHub

Run and interpret dynamic application security testing — OWASP ZAP baseline/full/API scans, nuclei, authenticated scanning, CI integration — with safe scope, and triage findings (headers, cookies, injection, misconfiguration) into fixes. Use when testing a web app or API in staging, adding DAST to a pipeline, or validating fixes for web vulnerabilities.

The file

Files
SKILL.md

DAST Baseline

ZAP scans (Docker)

# Passive baseline: spiders and reports passive findings, no attacks — safe for most environments
docker run --rm -v "$(pwd)":/zap/wrk:rw -t ghcr.io/zaproxy/zaproxy:stable \
  zap-baseline.py -t https://staging.example.com -r baseline.html -J baseline.json
# API scan from an OpenAPI definition (active rules — staging only)
docker run --rm -v "$(pwd)":/zap/wrk:rw -t ghcr.io/zaproxy/zaproxy:stable \
  zap-api-scan.py -t /zap/wrk/openapi.yaml -f openapi -r api.html
# Full scan (active attacks) — staging only, with approval
docker run --rm -v "$(pwd)":/zap/wrk:rw -t ghcr.io/zaproxy/zaproxy:stable zap-full-scan.py -t https://staging.example.com -r full.html

Tune with a rules file (-c rules.tsv) to set rules to IGNORE/WARN/FAIL for CI gating. Authenticated scans: ZAP context with authentication script / headers (-z "-config replacer.full_list(0).replacement=Bearer <token>") — use a dedicated low-privilege test account.

Triage common findings

FindingReal issue?
Missing Content-Security-Policy, Strict-Transport-Security, X-Content-Type-OptionsHardening gaps; prioritize CSP for apps with XSS risk and HSTS for all HTTPS
Cookie without Secure/HttpOnly/SameSiteReal for session cookies
Reflected XSS / SQLi (active)Verify manually with the request/response evidence; often true when reproducible
"Application error disclosure"Stack traces → fix error handling
Vulnerable JS libraryMap to SCA process
Information disclosure (server banners)Low

Safety

Active scans send attack payloads: run only against staging or authorized targets, never production without explicit approval; they can create junk data, trigger emails, lock accounts, or stress services. Exclude logout and destructive endpoints (DELETE, admin actions) from scope.

Related skills

secure-code-review, api-authorization-testing, release-gate, waf-rule-tuning

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.