/harness:configure-dast-scanfrom Harness DevOps
Adds DAST scanning steps to Harness pipelines using STO scanners (Traceable, Burp Suite, ZAP, Nikto, Nmap) for runtime vulnerability detection.
Ships in Harness DevOps. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add a Dynamic Application Security Testing (DAST) step to an existing Harness pipeline using Harness STO scanners. DAST scanners test running application instances for security vulnerabilities at runtime.
Ask for org, project, and pipeline identifier if not already known. This skill only works with existing pipelines.
Call MCP tool: harness_get
Parameters:
resource_type: "pipeline"
resource_id: "<pipeline_identifier>"
org_id: "<organization>"
project_id: "<project>"
Parse the pipeline YAML to identify:
CI, SecurityTests, Deployment, Approval)SecurityTests stage already existsPresent the structure to the user:
Pipeline: <name>
Stage 1: <stage_name> (type: <stage_type>)
- Step 1: <step_name> (type: <step_type>)
...
Ask the user where they want the DAST scanner step added:
Present the available insertion points:
SecurityTests stage (scanner step is added into that stage's execution.steps)CI stage (scanner step is added directly into that stage's execution.steps)SecurityTests stage (appended to the pipeline)Recommendation guidance:
SecurityTests stage after the deployment stageSecurityTests stage is simplest if one already existsIf the user doesn't specify, default to adding a new SecurityTests stage at the end of the pipeline (or after the Deployment stage if one exists).
Present the available DAST scanners supported in Harness STO:
Available DAST Scanners:
Default recommendation: Use API DAST (Traceable) — the Harness native DAST scanner for API security testing. It connects with your Traceable account to initiate scans against existing scan configurations, and results integrate directly with Harness STO.
Ask the user which scanner they prefer. If they don't specify, use API DAST (Traceable) as the default.
Step type mapping and scanner auth requirements:
| Scanner | type field | Product auth needed? | Auth fields |
|---|---|---|---|
| API DAST (Traceable) | Traceable | Yes | domain (Traceable platform URL), access_token (API token) |
| Burp Suite Enterprise | BurpEnterprise | Yes | domain (Burp Enterprise URL), access_token (API key) |
| ZAP | Zap | No | — |
| Nikto | Nikto | No | — |
| Nmap | Nmap | No | — |
If the user picks a scanner that requires auth (API DAST, Burp Suite):
<+secrets.getValue("project.<secret_identifier>")>auth block of the step specExample prompt to user:
"API DAST (Traceable) requires a platform domain and access token. Please provide:
- Your Traceable platform URL (e.g.,
https://api.traceable.ai/)- The Harness secret identifier for your Traceable API token (e.g.,
traceable_api_token). I'll reference it as<+secrets.getValue("project.traceable_api_token")>."
If the secret doesn't exist yet, suggest creating it first via /create-secret before proceeding.
This step applies only to API DAST (Traceable). For other scanners (Burp Suite, ZAP, Nikto, Nmap), default to orchestration and skip to Step 5.
Present the three available scan modes and ask the user which one they want:
Available Scan Modes:
If the user doesn't specify, default to Orchestration.
Fields required per mode:
| Field | Orchestration | Extraction | Ingestion |
|---|---|---|---|
| Domain (Traceable URL) | Yes | Yes | No |
| Access Token | Yes | Yes | No |
| Scan Name (Suite ID) | Yes | Yes | No |
| Runner Selection | Optional | No | No |
| Ingestion File path | No | No | Yes |
| Target Name (manual) | No | No | Yes |
| Target Variant (manual) | No | No | Yes |
For Ingestion mode, inform the user they need a preceding Run step to fetch results from Traceable's API and save them as a JSON file. Example command for the Run step:
curl -H "Authorization: Bearer $API_TOKEN" \
"https://api.traceable.ai/graphql/scans/$SCAN_ID/vulnerabilities" \
-o /harness/vulnerabilities.json
The ingestion file path (e.g., /harness/vulnerabilities.json) must be configured as a shared path in the stage.
DAST scans require a running application target. Collect different fields based on the scanner:
For API DAST (Traceable):
Traceable uses its own scan configurations managed in the Traceable platform. Collect based on the scan mode chosen in Step 4:
Orchestration mode:
| Field | Required | Description |
|---|---|---|
| Traceable Domain | Yes | Platform URL, e.g., https://api.traceable.ai/ or https://api-staging.traceable.ai/ |
| Access Token | Yes | Traceable API token (Harness secret reference) |
| Scan Name (Suite ID) | Yes | The Traceable Scan ID from the scan URL (e.g., b35b11b4-3e87-47df-8c2e-a5ceb5ea764c) |
| Runner Selection | No | auto (default) or manual Runner ID — runners must be active in Traceable |
Extraction mode:
| Field | Required | Description |
|---|---|---|
| Traceable Domain | Yes | Platform URL, e.g., https://api.traceable.ai/ |
| Access Token | Yes | Traceable API token (Harness secret reference) |
| Scan Name (Suite ID) | Yes | The Traceable Scan ID to pull latest results from |
Ingestion mode:
| Field | Required | Description |
|---|---|---|
| Ingestion File | Yes | Path to the JSON results file, e.g., /harness/vulnerabilities.json |
| Target Name | Yes | Manual target identifier (e.g., my-api-service) |
| Target Variant | Yes | Manual variant label (e.g., 1.0.0 or staging) |
For Burp Suite Enterprise:
| Field | Required | Description |
|---|---|---|
| Burp Domain | Yes | Burp Enterprise server URL |
| Access Token | Yes | Burp API key (Harness secret reference) |
| Instance Domain | Yes | Target application URL, e.g., https://myapp.io |
| Instance Protocol | No | https (default) or http |
| Instance Port | No | TCP port (e.g., 443, 8080) |
| Instance Path | No | Path to append (e.g., /api/v1) |
| Scan Configuration | No | Default is Crawl and audit lightweight. See Step 5 for options |
For ZAP, Nikto, Nmap (instance scanners):
| Field | Required | Description |
|---|---|---|
| Instance Domain | Yes | Target application domain, e.g., https://myapp.io |
| Instance Protocol | No | https (default) or http |
| Instance Port | No | TCP port (e.g., 443, 8080, 3000) |
| Instance Path | No | Path to append (e.g., /portal/us) |
Use the step type from the scanner mapping in Step 3.
For API DAST / Traceable (default — Orchestration mode):
- step:
type: Traceable
name: API_DAST_Scan
identifier: API_DAST_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
auth:
domain: <traceable_platform_url>
access_token: <+secrets.getValue("project.traceable_api_token")>
tool:
suite_id: <traceable_scan_id>
advanced:
log:
level: info
For API DAST / Traceable (Extraction mode):
- step:
type: Traceable
name: API_DAST_Scan
identifier: API_DAST_Scan
spec:
mode: extraction
config: default
target:
type: instance
detection: auto
auth:
domain: <traceable_platform_url>
access_token: <+secrets.getValue("project.traceable_api_token")>
tool:
suite_id: <traceable_scan_id>
advanced:
log:
level: info
For API DAST / Traceable (Orchestration with manual runner):
- step:
type: Traceable
name: API_DAST_Scan
identifier: API_DAST_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
auth:
domain: <traceable_platform_url>
access_token: <+secrets.getValue("project.traceable_api_token")>
tool:
suite_id: <traceable_scan_id>
runner_id: <traceable_runner_id>
advanced:
log:
level: info
For API DAST / Traceable (Ingestion mode):
- step:
type: Traceable
name: API_DAST_Scan
identifier: API_DAST_Scan
spec:
mode: ingestion
config: default
target:
type: instance
name: <target_name>
variant: <target_variant>
ingestion:
file: <ingestion_file_path>
advanced:
log:
level: info
For Burp Suite Enterprise (Orchestration mode):
- step:
type: BurpEnterprise
name: Burp_Suite_Scan
identifier: Burp_Suite_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
auth:
domain: <burp_enterprise_url>
access_token: <+secrets.getValue("project.burp_api_key")>
instance:
domain: <target_app_url>
protocol: https
port: <port>
path: <path>
advanced:
log:
level: info
Burp Suite scan configuration options (for config field):
default (same as Crawl and Audit - Lightweight)Never stop Crawl due to application errorsNever stop audit due to application errorsMinimize false positivesMinimize false negativesCrawl strategy most completeCrawl strategy more completeCrawl strategy fastestCrawl strategy fasterCrawl limit 60 minutesCrawl limit 30 minutesCrawl limit 10 minutesCrawl and audit lightweightCrawl and audit fastCrawl and audit deepCrawl and audit balancedAudit coverage thoroughAudit coverage maximumAudit checks medium activeAudit checks light activeAudit checks critical issues onlyAudit checks all except time based detection methodsAudit checks all except java script analysisFor ZAP (open-source):
- step:
type: Zap
name: ZAP_DAST_Scan
identifier: ZAP_DAST_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
instance:
domain: <target_app_url>
protocol: https
port: <port>
path: <path>
advanced:
log:
level: info
For Nikto (open-source):
- step:
type: Nikto
name: Nikto_DAST_Scan
identifier: Nikto_DAST_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
instance:
domain: <target_app_url>
protocol: https
port: <port>
path: <path>
advanced:
log:
level: info
For Nmap (open-source network scanner):
- step:
type: Nmap
name: Nmap_Scan
identifier: Nmap_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
instance:
domain: <target_app_url>
protocol: https
port: <port>
path: <path>
advanced:
log:
level: info
Nmap scan configuration options:
default (common port scan with scripts)No Default CLI Flags (blank slate for custom flags)Firewall BypassUnusual PortSMB Security ModeVulnExploitOnly required when adding a new SecurityTests stage. If inserting into an existing stage, skip this step.
Ask the user for their infrastructure type:
Option A — Harness Cloud (recommended for simplicity):
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec: {}
Option B — Kubernetes Direct:
Ask for:
account.mydelegate)harness-delegate-ng)infrastructure:
type: KubernetesDirect
spec:
connectorRef: <delegate_connector>
namespace: <namespace>
automountServiceAccountToken: true
nodeSelector: {}
os: Linux
If the user doesn't specify, default to Harness Cloud infrastructure.
Scenario A — Adding to an existing SecurityTests or CI stage:
Insert the step into spec.execution.steps of the chosen stage. The stage already has its own infrastructure. Just append the step.
Scenario B — Creating a new SecurityTests stage (Harness Cloud):
- stage:
name: DAST Scan
identifier: DAST_Scan_Stage
type: SecurityTests
spec:
cloneCodebase: false
platform:
os: Linux
arch: Amd64
runtime:
type: Cloud
spec: {}
execution:
steps:
- step:
type: Traceable
name: API_DAST_Scan
identifier: API_DAST_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
auth:
domain: <traceable_platform_url>
access_token: <+secrets.getValue("project.traceable_api_token")>
tool:
suite_id: <traceable_scan_id>
advanced:
log:
level: info
Scenario C — Creating a new SecurityTests stage (Kubernetes Direct):
- stage:
name: DAST Scan
identifier: DAST_Scan_Stage
type: SecurityTests
spec:
cloneCodebase: false
infrastructure:
type: KubernetesDirect
spec:
connectorRef: <delegate_connector>
namespace: <namespace>
automountServiceAccountToken: true
nodeSelector: {}
os: Linux
execution:
steps:
- step:
type: Traceable
name: API_DAST_Scan
identifier: API_DAST_Scan
spec:
mode: orchestration
config: default
target:
type: instance
detection: auto
auth:
domain: <traceable_platform_url>
access_token: <+secrets.getValue("project.traceable_api_token")>
tool:
suite_id: <traceable_scan_id>
advanced:
log:
level: info
Call MCP tool: harness_update
Parameters:
resource_type: "pipeline"
resource_id: "<pipeline_identifier>"
org_id: "<organization>"
project_id: "<project>"
body: { yamlPipeline: "<updated pipeline YAML string>" }
## DAST Scanner Configured
**Pipeline:** <pipeline_name>
**Scanner:** <scanner_name> (<scanner_type>)
**Stage:** <stage_name> (SecurityTests)
**Target:** <target_instance_url_or_scan_name>
**Mode:** <orchestration | extraction | ingestion>
**Pipeline URL:** https://app.harness.io/ng/account/<account_id>/module/sto/orgs/<org_id>/projects/<project_id>/pipelines/<pipeline_id>/pipeline-studio/
### Next Steps
1. Run the pipeline to verify the DAST scan step executes successfully
2. View scan results in the Security Tests tab of the execution
3. Set failure thresholds using `fail_on_severity` (CRITICAL, HIGH, MEDIUM, LOW) in the step's Advanced tab
4. Configure exemptions for false positives via `/security-report` skill
5. Enforce pipeline gates on severity via `/create-policy` skill
/configure-dast-scan
Add an API DAST scan to my backend-deploy pipeline. My Traceable domain is https://api.traceable.ai/ and the scan ID is b35b11b4-3e87-47df-8c2e-a5ceb5ea764c.
/configure-dast-scan
I want to pull the latest DAST results from my Traceable scan into STO. Use extraction mode.
The scan ID is abc123-def456 and my Traceable token secret is traceable_token.
/configure-dast-scan
Add Burp Suite Enterprise scanning to my pipeline targeting https://staging.myapp.io:8443/api.
Use the "Crawl and audit deep" configuration for thorough coverage.
/configure-dast-scan
Add a ZAP DAST scan after the deployment stage in my frontend-deploy pipeline.
Target the deployed app at https://staging.example.com
/configure-dast-scan
Add Nikto scanning to check my web server at https://myapp.io:443 for common vulnerabilities.
Add it to the existing SecurityTests stage.
/configure-dast-scan
Add an Nmap vulnerability scan against my service at 10.0.1.50 port 8080.
Use the Vuln scan configuration.
cloneCodebase: false is always set on SecurityTests stagesauth.domain / auth.access_token) before generating YAML/create-secret before proceedingmode: orchestration and config: default unless the user specifies otherwisetarget.detection: auto — this sets the target name from the scan and variant from the timestamporg_id and project_id are correctharness_list (resource_type: "pipeline")suite_id) is correct — find it in the Traceable scan URLhttps://api.traceable.ai/ vs https://api-staging.traceable.ai/)auth.domain points to your Burp Enterprise server URLauth.access_token references a valid Harness secret containing the Burp API keyauth.access_token (and auth.domain) reference valid Harness secretsharness_get(resource_type="secret")/create-secret then re-run the skillidentifier matches pattern ^[a-zA-Z_][0-9a-zA-Z_]{0,127}$SecurityTests stage has a valid infrastructure block (Harness Cloud or KubernetesDirect with a working delegate)cloneCodebase: false is set on SecurityTests stages (DAST does not need source code)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub harness/harness-ai --plugin harness73 skills in this plugin
/ai-operationsConfigure Harness AI-powered operations (AIDA) via MCP. Set up predictive failure analysis with ML models for memory leaks, disk exhaustion, connection pool saturation, and latency degradation. Configure intelligent alert correlation and noise reduction to reduce alert volume. Use when asked to set up predictive failure analysis, configure AI-powered alerting, reduce alert noise, or enable ML-based anomaly detection. Do NOT use for pipeline debugging (use debug-pipeline instead) or SLO management (use manage-slos instead). Trigger phrases: AIDA, predictive failure, alert correlation, noise reduction, anomaly detection, AI ops, predictive analysis, alert fatigue, ML alerting, intelligent alerting./analyze-costsAnalyze cloud costs, find optimization opportunities, and track anomalies using Harness CCM via MCP. Use when user says "cloud costs", "analyze costs", "cost optimization", "reduce spending", "cost report", or asks about cloud bills./approve-exemptApprove pending Harness STO security exemptions (waivers) at their current scope or elevate them to Project, Org, or Account scope. Users say "approve" for both in-scope approval and higher-scope elevation — do not require the word "promote". Supports approving one exemption or a mixed list where each row has a different approval scope. Default workflow lists pending exemptions in chat (paginated preview) so the user picks by row number — no copying from the Harness UI. Use when a user wants to approve, sign off on, or clear pending exemptions, waive approvals, org-wide approval, or account-wide approval. Trigger phrases: approve exempt, approve exemption, approve waiver, sign off exemption, clear pending exemption, approve for org, approve for account, org-wide approval, account-wide approval, pending exemptions.Other plugins' skills for the same job