/nightvision:scan-triagefrom nightvision
Guide for agents to help users interpret and act on NightVision DAST scan results. Use when reading SARIF/CSV findings, explaining vulnerabilities, locating vulnerable code, validating findings with curl, prioritizing by severity, suggesting remediations, or marking false positives.
Ships in nightvision. 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.
Read when SKILL.md points to them.
Use this skill when helping users understand and act on NightVision scan results. NightVision produces findings from two scanning engines — ZAP (active and passive rules) and Nuclei (CVE and misconfiguration templates) — and exports them as SARIF or CSV.
When a user asks for help with scan results:
nightvision --help) if you need to export resultsresults.sarif or results.csv in the repo, or ask the user for the scan ID to export themRelated skills: Use scan-configuration for setting up scans, ci-cd-integration for pipeline setup, source-intelligence for spec extraction.
When the NightVision MCP tools are connected, read results through them: summarize-scan-findings for an overview, list-issues, get-issue-details and get-issue-occurrences for each finding with its evidence, get-vulnerable-paths and get-scan-paths for coverage, and export-sarif or export-csv for a file. Use the CLI exports below when the MCP tools are not connected. Never call the NightVision REST API directly with curl or a script.
If the user doesn't know their scan ID, list recent scans to find it:
nightvision scan list -p my-project
If the user has a scan ID but no exported file:
# SARIF with Code Traceback (API targets — provide the spec used for the scan)
nightvision export sarif -s "$SCAN_ID" --swagger-file openapi-spec.yml -o results.sarif
# SARIF without Code Traceback (WEB targets, or when no spec is available)
nightvision export sarif -s "$SCAN_ID" -o results.sarif
# CSV (flat, good for quick overview)
nightvision export csv -s "$SCAN_ID" -o results.csv
--swagger-file is optional. When provided, SARIF output includes Code Traceback source annotations (file/line mappings). When omitted, the SARIF is still valid but won't contain source code locations.
SARIF (Static Analysis Results Interchange Format) is JSON. Key structure:
runs[0].tool.driver.rules[] — vulnerability type definitions
runs[0].results[] — individual finding instances
.ruleId — maps to rules[] for description
.level — "error" (high), "warning" (medium), "note" (low/info)
.message.text — human-readable finding summary
.locations[].physicalLocation — file path and line (Code Traceback)
.properties — NightVision-specific metadata
The agent should read the SARIF JSON, iterate over results[], and explain each finding using the corresponding rules[] entry.
When Source Intelligence generated the OpenAPI spec, it annotated endpoints with source file paths and line numbers. These appear in SARIF as physicalLocation entries, letting the agent navigate directly to the vulnerable code:
"locations": [{
"physicalLocation": {
"artifactLocation": { "uri": "src/main/java/api/UserController.java" },
"region": { "startLine": 42 }
}
}]
The agent should read that file and show the user the vulnerable code in context.
CSV columns: finding_name, kind_id, id, url, path, method, parameter, payload, evidence, severity, ai_explanation
Key fields for triage:
| Severity | Meaning | Agent action |
|---|---|---|
| High | Exploitable, significant impact (data breach, RCE, auth bypass) | Fix immediately, explain the attack scenario |
| Medium | Exploitable but lower impact, or requires specific conditions | Fix soon, explain the risk |
| Low | Minor issues, information leaks, best practice violations | Fix when convenient, explain the hygiene benefit |
| Informational | Observations, not directly exploitable | Mention if relevant, don't alarm |
NightVision's web UI provides a "Validate with curl" button. The agent can construct equivalent curl commands from the SARIF/CSV data:
# From CSV fields: method, url, parameter, payload
curl -X POST "https://api.example.com/login" \
-d "username=admin' OR '1'='1&password=test" \
-v
The response should contain the evidence that confirms the vulnerability. Show the user the relevant part of the response.
See references/vulnerability-guide.md for a reference of common finding types, what they mean, and how to fix them.
SQL Injection (CWE-89) — User input reaches a SQL query without parameterization.
Cross-Site Scripting / XSS (CWE-79) — User input is reflected in HTML without encoding.
Server-Side Request Forgery / SSRF (CWE-918) — User input controls a server-side HTTP request target.
Remote Code Execution / RCE (CWE-94) — User input is executed as code on the server.
Path Traversal (CWE-22) — User input accesses files outside intended directories.
Broken Authentication (CWE-287) — Authentication mechanisms can be bypassed or exploited.
Guide the user through this decision:
If the finding is a false positive, the user can mark it in the NightVision web UI (app.nightviz.ai) under the scan results. Status options: Open, False Positive, Resolved.
ZAP Active Rules — Sends attack payloads to test for exploitable vulnerabilities. Covers SQL injection variants, XSS types, RCE, SSTI, Log4Shell, JWT attacks, directory traversal, and more.
ZAP Passive Rules — Analyzes responses without attacking. Detects missing security headers, cookie misconfigurations, information leaks, CSRF token absence, credential exposure.
Nuclei Templates — Template-based detection of known CVEs and misconfigurations.
Specific rules can be disabled per scan with --disable-zap-active-alerts <ids>, --disable-nuclei-folders <paths> or --disable-nuclei-templates <custom template ids>, or entire engines with --no-zap / --no-nuclei.
AI endpoint checks: Regular scans test the target's AI endpoints (see scan-configuration). LLM Cloud Metadata Exposure (CRITICAL) means the endpoint could be prompted into fetching the cloud instance metadata service, confirmed by the provider's own data in the response, so treat it as real and prioritize it: restrict or remove the model's URL-fetching tools, validate any URL the model can request against an allowlist, and block metadata addresses (169.254.169.254 and the cloud equivalents) from the app's egress. IMDSv2 alone does not stop this. Ordinary checks are kept off listed AI endpoints, so a SQL injection or code injection reported on an AI route deserves a careful curl check: a model's reply can echo payloads without any real injection.
Quantum readiness findings: Shown on the target's Quantum readiness tab, not in the vulnerability list. Prioritize by status (Fix now first). They are migration work items with deadlines, not exploitable vulnerabilities; do not report them alongside exploitable findings as if they were.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
14 skills in this plugin
/api-discoveryFormer name of the source-intelligence skill, kept so that invoking api-discovery still works. Use source-intelligence instead./app-security-scanDAST-first NightVision scan for an app you just built or changed. Use when a user, or a project or org agent-instructions rule, wants a local, private, staging, or internal web app/API security-scanned. Drives the NightVision MCP `run-app-security-scan` harness./authz-reviewReview an app's object-level and function-level access control (BOLA/IDOR, broken function-level authorization, mass assignment) route by route, then write a two-user test the developer can run against their own local or dev app. Use after adding or changing routes that take object IDs, tenant or user identifiers, or admin-only actions, when a user asks "can one user see another user's data", or as part of ship-check.nightvision@nvsecurity is listed by nvsecurity/claude-marketplace — review the source before installing
npx claudepluginhub nvsecurity/claude-marketplace --plugin nightvision