unitoneai/securityskills/dast-config
Claude Code and agent skill by unitoneai/securityskills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Reviews DAST tool configurations against OWASP Top 10:2021 and OWASP Testing Guide v4.2. Auto-invoked when reviewing OWASP ZAP configurations, DAST CI/CD integration, scan policies, or authenticated scanning setups. Produces a DAST maturity assessment covering scan policy configuration, active vs passive scanning, API scanning, authentication handling, and results deduplication.
Install
npx vskill@latest install unitoneai/securityskills/dast-configSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as unitoneai/securityskills/dast-config.
DAST Tool Configuration
A structured, repeatable process for reviewing Dynamic Application Security Testing (DAST) tool configurations against OWASP Top 10:2021 and the OWASP Testing Guide v4.2 (WSTG). This skill covers OWASP ZAP configuration, scan policy tuning, active vs. passive scanning, API scanning with OpenAPI import, authenticated scanning, CI/CD integration, scope management, and results deduplication. All findings map to OWASP Top 10 categories and WSTG test IDs.
When to Use
If a target is provided via arguments, focus the review on: $ARGUMENTS
- Initial DAST deployment and scan policy configuration.
- Review of existing DAST integration in CI/CD pipelines.
- Authenticated scanning setup or troubleshooting.
- API security testing configuration (REST, GraphQL).
- DAST results triage workflow design.
- Compliance audits requiring dynamic testing evidence (PCI DSS 6.3.2, SOC 2).
Context
DAST tools test running applications by sending crafted HTTP requests and analyzing responses for vulnerability indicators. Unlike SAST, DAST finds runtime issues: misconfigured headers, authentication flaws, and injection vulnerabilities that survive to deployment. OWASP Testing Guide v4.2 (WSTG) defines 91 test cases across 11 categories -- DAST tools automate a subset of these. OWASP Top 10:2021 provides the risk-based prioritization framework. The challenge is configuration: an unconfigured DAST scan produces noise (thousands of informational findings), misses authenticated surfaces, and may destabilize target environments. Proper tuning transforms DAST from a checkbox exercise into a meaningful security gate.
Process
Step 1: Discovery -- Locate DAST Configurations
Use Glob and Grep to locate DAST tool configurations, scan policies, and CI integration.
Patterns to search:
Categorize by:
- Tool: ZAP, Burp Suite Enterprise, Nuclei, HCL AppScan, Invicti.
- Scan type: Baseline (passive only), full scan (active + passive), API scan.
- Integration: CI/CD pipeline, scheduled, manual.
Step 2: ZAP Scan Policy Configuration Review
2.1 ZAP Automation Framework Plan Structure
ZAP's Automation Framework (AF) is the preferred configuration method for CI/CD integration. Verify the plan structure:
What to verify in the plan:
- [ ] Context URLs match the target environment (staging, not production).
- [ ]
includePathsrestricts scanning to the target application only. - [ ]
excludePathsprevents destructive actions (logout, delete, destroy endpoints). - [ ] Authentication is configured with verification regex.
- [ ] Credentials use environment variable substitution (not hardcoded).
- [ ]
failOnError: trueis set for CI gate enforcement. - [ ] Spider has reasonable depth and duration limits.
- [ ] Active scan has a maximum duration to prevent runaway scans.
- [ ] Report format is machine-parseable (JSON or SARIF).
2.2 Scan Policy -- Active vs. Passive Scanning
| Scan Type | What It Does | Risk to Target | OWASP Testing Guide Coverage | |
|---|---|---|---|---|
| Passive scanning | Analyzes responses without sending attack payloads | None (read-only) | WSTG-INFO, WSTG-CONF, partial WSTG-CRYP | |
| Active scanning | Sends injection payloads, fuzzes parameters | Moderate (may cause errors, data modification) | WSTG-INPV, WSTG-ATHZ, WSTG-SESS, WSTG-BUSL |
Passive scan rules to verify are enabled:
| ZAP Rule ID | Rule Name | OWASP Top 10 | WSTG Reference | |
|---|---|---|---|---|
| 10010 | Cookie No HttpOnly Flag | A05:2021 | WSTG-SESS-02 | |
| 10011 | Cookie Without Secure Flag | A05:2021 | WSTG-SESS-02 | |
| 10015 | Incomplete or No Cache-control Header | A05:2021 | WSTG-CONF-06 | |
| 10017 | Cross-Domain JavaScript Source | A05:2021 | WSTG-CLNT-01 | |
| 10020 | X-Frame-Options Header | A05:2021 | WSTG-CLNT-09 | |
| 10021 | X-Content-Type-Options Header | A05:2021 | WSTG-CONF-06 | |
| 10023 | Information Disclosure - Debug Errors | A05:2021 | WSTG-ERRH-01 | |
| 10035 | Strict-Transport-Security Header | A05:2021 | WSTG-CONF-07 | |
| 10036 | Server Leaks Version Information | A05:2021 | WSTG-INFO-02 | |
| 10038 | Content Security Policy Header | A05:2021 | WSTG-CONF-12 | |
| 10063 | Permissions Policy Header | A05:2021 | WSTG-CONF-06 | |
| 90004 | Insufficient Site Isolation Against Spectre | A05:2021 | N/A |
Active scan rules to verify for OWASP Top 10 coverage:
| OWASP Top 10 | ZAP Active Scanner | WSTG Reference | |
|---|---|---|---|
| A01:2021 Broken Access Control | Path Traversal (6), Remote File Inclusion (7) | WSTG-ATHZ-01 | |
| A02:2021 Cryptographic Failures | Passive rules + TLS config check | WSTG-CRYP-01 | |
| A03:2021 Injection | SQL Injection (40018, 40019, 40020, 40021, 40022), XSS Reflected (40012, 40014), XSS Persistent (40016, 40017), OS Command Injection (90020), SSTI (90035) | WSTG-INPV-05, WSTG-INPV-01 | |
| A04:2021 Insecure Design | Limited DAST coverage -- manual testing required | WSTG-BUSL-* | |
| A05:2021 Security Misconfiguration | Directory Browsing (0), Backup File Disclosure (10095) | WSTG-CONF-04, WSTG-CONF-03 | |
| A06:2021 Vulnerable Components | Passive technology fingerprinting + Retire.js | WSTG-INFO-02 | |
| A07:2021 Auth Failures | Brute Force (not default), Session Fixation (40013) | WSTG-ATHN-, WSTG-SESS- | |
| A08:2021 Software/Data Integrity | Limited DAST coverage | N/A | |
| A09:2021 Logging Failures | Not DAST-testable | N/A | |
| A10:2021 SSRF | SSRF (40046) | WSTG-INPV-19 |
Finding classification: Active scanning disabled entirely is High. OWASP Top 10 A03 (Injection) scan rules disabled is Critical. Missing passive scan rules for security headers is Medium.
Step 3: API Scanning Configuration (OWASP Testing Guide WSTG-APIT)
3.1 OpenAPI Import
ZAP supports importing OpenAPI (Swagger) definitions to drive API scanning.
What to verify:
- OpenAPI specification is available and current (matches deployed API).
- All API endpoints are included in the spec (undocumented endpoints are not tested).
- API authentication is configured (Bearer tokens, API keys injected via ZAP headers).
- Content-Type is set correctly for API requests (
application/jsonfor REST). - Rate limiting considerations: API scans should respect rate limits to avoid triggering WAF blocks.
3.2 GraphQL Scanning
What to verify:
- Introspection is available on the target (required for automatic query generation).
- Query depth limits are set to prevent resource exhaustion during scanning.
- Mutations are handled carefully (exclude destructive mutations from active scanning).
Finding classification: No API scanning for applications with API endpoints is High. OpenAPI spec out of date is Medium. No GraphQL scanning for GraphQL endpoints is Medium.
Step 4: Authenticated Scanning Setup
Unauthenticated DAST scans miss the majority of an application's attack surface. OWASP Testing Guide Section 4.4 (WSTG-ATHN) requires testing authenticated functionality.
4.1 Authentication Methods in ZAP
| Method | Use Case | Configuration | |
|---|---|---|---|
| Form-based | Traditional login forms | Login URL, username/password fields, logged-in/out indicators | |
| Browser-based | JavaScript-heavy SPAs, MFA flows | Selenium-based login script, ZAP browser launch | |
| Header-based | API tokens, Bearer auth | Static header injection (Authorization: Bearer <token>) | |
| Script-based | Complex auth flows (OAuth2, SAML) | Custom Zest or Python script |
Browser-based authentication (preferred for modern apps):
Header-based authentication (for APIs):
Verification checklist:
- [ ] Logged-in indicator regex is specific enough (not just checking for HTTP 200).
- [ ] Logged-out indicator regex is defined (detects session expiry during scan).
- [ ] Credentials are injected via environment variables (never hardcoded in plan files).
- [ ] Test user has sufficient permissions to access the application's full attack surface.
- [ ] Test user does NOT have admin privileges (test with realistic user role).
- [ ] Session management is configured (ZAP re-authenticates when logged-out indicator is detected).
Finding classification: No authenticated scanning is Critical (misses most of the attack surface). Authentication configured but verification regex is absent or too broad is High. Hardcoded credentials in scan configuration is High.
Step 5: CI/CD DAST Integration
5.1 Pipeline Integration Patterns
GitHub Actions -- ZAP Baseline Scan (passive only, safe for every PR):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devsecops/dast-config/SKILL.md
Popularity
- Repository stars
- 76
- Repository forks
- 133
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/unitoneai/securityskills/dast-config)