unitoneai/securityskills/dast-config

Claude Code and agent skill by unitoneai/securityskills

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

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

Semi-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:

# OWASP ZAP
**/*zap*
**/zap-*
**/.zap/
**/af-plan*.yaml # ZAP Automation Framework plans
**/zap.yaml
**/zap-baseline*
**/zap-full-scan*
**/zap-api-scan*
# Burp Suite
**/*burp*
**/burp-project*.json
**/burp-config*.json
# Nuclei
**/nuclei*
**/.nuclei-templates/
# General DAST CI
**/.github/workflows/*dast*
**/.github/workflows/*security*
**/.gitlab-ci.yml # Search for dast stage
**/Jenkinsfile*
**/docker-compose*test*
**/docker-compose*security*

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:

yaml
# af-plan.yaml -- ZAP Automation Framework plan
env:
contexts:
- name: "target-app"
urls:
- "https://staging.example.com"
includePaths:
- "https://staging.example.com/.*"
excludePaths:
- "https://staging.example.com/logout.*"
- "https://staging.example.com/admin/destroy.*"
authentication:
method: "browser"
parameters:
loginPageUrl: "https://staging.example.com/login"
loginPageWait: 5
verification:
method: "response"
loggedInRegex: "\\QSign Out\\E"
loggedOutRegex: "\\QSign In\\E"
users:
- name: "test-user"
credentials:
username: "${DAST_USERNAME}"
password: "${DAST_PASSWORD}"
parameters:
failOnError: true
failOnWarning: false
progressToStdout: true
jobs:
- type: passiveScan-config
parameters:
maxAlertsPerRule: 10
scanOnlyInScope: true
- type: spider
parameters:
maxDuration: 5 # minutes
maxDepth: 10
maxChildren: 20
- type: spiderAjax
parameters:
maxDuration: 5
maxCrawlDepth: 5
inScopeOnly: true
- type: passiveScan-wait
parameters:
maxDuration: 10
- type: activeScan
parameters:
maxRuleDurationInMins: 5
maxScanDurationInMins: 30
scanOnlyInScope: true
- type: report
parameters:
template: "traditional-json"
reportDir: "/zap/reports/"
reportFile: "zap-report"
risks:
- high
- medium
- low

What to verify in the plan:

  • [ ] Context URLs match the target environment (staging, not production).
  • [ ] includePaths restricts scanning to the target application only.
  • [ ] excludePaths prevents destructive actions (logout, delete, destroy endpoints).
  • [ ] Authentication is configured with verification regex.
  • [ ] Credentials use environment variable substitution (not hardcoded).
  • [ ] failOnError: true is 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 TypeWhat It DoesRisk to TargetOWASP Testing Guide Coverage
Passive scanningAnalyzes responses without sending attack payloadsNone (read-only)WSTG-INFO, WSTG-CONF, partial WSTG-CRYP
Active scanningSends injection payloads, fuzzes parametersModerate (may cause errors, data modification)WSTG-INPV, WSTG-ATHZ, WSTG-SESS, WSTG-BUSL

Passive scan rules to verify are enabled:

ZAP Rule IDRule NameOWASP Top 10WSTG Reference
10010Cookie No HttpOnly FlagA05:2021WSTG-SESS-02
10011Cookie Without Secure FlagA05:2021WSTG-SESS-02
10015Incomplete or No Cache-control HeaderA05:2021WSTG-CONF-06
10017Cross-Domain JavaScript SourceA05:2021WSTG-CLNT-01
10020X-Frame-Options HeaderA05:2021WSTG-CLNT-09
10021X-Content-Type-Options HeaderA05:2021WSTG-CONF-06
10023Information Disclosure - Debug ErrorsA05:2021WSTG-ERRH-01
10035Strict-Transport-Security HeaderA05:2021WSTG-CONF-07
10036Server Leaks Version InformationA05:2021WSTG-INFO-02
10038Content Security Policy HeaderA05:2021WSTG-CONF-12
10063Permissions Policy HeaderA05:2021WSTG-CONF-06
90004Insufficient Site Isolation Against SpectreA05:2021N/A

Active scan rules to verify for OWASP Top 10 coverage:

OWASP Top 10ZAP Active ScannerWSTG Reference
A01:2021 Broken Access ControlPath Traversal (6), Remote File Inclusion (7)WSTG-ATHZ-01
A02:2021 Cryptographic FailuresPassive rules + TLS config checkWSTG-CRYP-01
A03:2021 InjectionSQL 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 DesignLimited DAST coverage -- manual testing requiredWSTG-BUSL-*
A05:2021 Security MisconfigurationDirectory Browsing (0), Backup File Disclosure (10095)WSTG-CONF-04, WSTG-CONF-03
A06:2021 Vulnerable ComponentsPassive technology fingerprinting + Retire.jsWSTG-INFO-02
A07:2021 Auth FailuresBrute Force (not default), Session Fixation (40013)WSTG-ATHN-, WSTG-SESS-
A08:2021 Software/Data IntegrityLimited DAST coverageN/A
A09:2021 Logging FailuresNot DAST-testableN/A
A10:2021 SSRFSSRF (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.

yaml
# ZAP Automation Framework -- API scan job
jobs:
- type: openapi
parameters:
apiUrl: "https://staging.example.com/api/v1/openapi.json"
# OR
apiFile: "/zap/openapi-spec.yaml"
targetUrl: "https://staging.example.com"
context: "target-app"

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/json for REST).
  • Rate limiting considerations: API scans should respect rate limits to avoid triggering WAF blocks.
3.2 GraphQL Scanning
yaml
# ZAP GraphQL import
jobs:
- type: graphql
parameters:
endpoint: "https://staging.example.com/graphql"
maxQueryDepth: 5
maxArgsCount: 10
optionalArgsEnabled: true
argsType: BOTH # Test with both valid and invalid types

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
MethodUse CaseConfiguration
Form-basedTraditional login formsLogin URL, username/password fields, logged-in/out indicators
Browser-basedJavaScript-heavy SPAs, MFA flowsSelenium-based login script, ZAP browser launch
Header-basedAPI tokens, Bearer authStatic header injection (Authorization: Bearer <token>)
Script-basedComplex auth flows (OAuth2, SAML)Custom Zest or Python script

Browser-based authentication (preferred for modern apps):

yaml
authentication:
method: "browser"
parameters:
loginPageUrl: "https://staging.example.com/login"
loginPageWait: 5
browserId: "firefox-headless"
verification:
method: "response"
loggedInRegex: "\\Qdashboard\\E"
loggedOutRegex: "\\Qlogin\\E"
pollFrequency: 60
pollUnits: "requests"

Header-based authentication (for APIs):

yaml
# ZAP Automation Framework -- header-based auth
env:
contexts:
- name: "api-context"
urls:
- "https://staging.example.com/api"
authentication:
method: "header"
parameters:
- header: "Authorization"
value: "Bearer ${API_TOKEN}"

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/unitoneai/securityskills/dast-config/badge)](https://verified-skill.com/skills/unitoneai/securityskills/dast-config)

Something wrong with this skill or its page? Tell us.