/nightvision:scan-configurationfrom nightvision
Set up NightVision DAST scans through the NightVision MCP tools. Use before creating or changing any NightVision project, target, app login (Playwright script, header, cookie), crawler path, traffic recording or scope exclusion, when choosing a scan account and data for coverage, scanning production safely, or preparing a private network scan.
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.
None: SKILL.md is the whole skill.
Use this skill when helping users set up everything needed before running a NightVision DAST scan — targets, authentication, traffic recordings, projects, and scope control.
When a user asks to configure a scan:
auth-status (or doctor) tool. If the NightVision MCP tools are not connected, say so and fall back to the CLI: verify it is available (nightvision --help) and logged in (nightvision whoami).list-projects, list-targets and list-auth-credentials tools (CLI: nightvision project list, nightvision target list -p <project>, with --format json for structured parsing)--login-check, below)For an app with users and data, read Set up for coverage before the first scan: an authenticated scan of an empty account, or of a single-page app without its API, completes and reports SUCCEEDED while testing a fraction of the app.
Do NightVision work through the NightVision MCP tools when they are connected. They validate input, keep secrets out of the conversation and fence content that came from the scanned app. Use the CLI only for a step no MCP tool covers, and tell the user which step that was. Never call the NightVision REST API directly with curl or a script: it skips those protections and puts tokens in shell history and transcripts.
| Task | MCP tool | CLI when no MCP tool covers it |
|---|---|---|
| Check login and setup | auth-status, doctor, preflight-app | nightvision whoami |
| See projects and targets | list-projects, get-project-details, list-targets, find-target, get-target-details | |
| Create a project | none | nightvision project create |
| Create a target | create-target | |
| Change a target's URL, spec or scope exclusions | none | nightvision target update |
| App login by script | save-playwright-script, update-playwright-script, login-help | nightvision auth playwright create (records in the user's browser) |
| App login by header or cookie | create-header-credential, create-cookie-credential | |
| Attach a login to targets | assign-credential-to-targets | |
| Check a login before scanning | none | nightvision scan --login-check |
| Pages the crawler should visit | add-additional-paths, list-additional-paths | |
| Traffic recordings | record-traffic, list-traffic, download-traffic | nightvision traffic upload |
| Start and watch a scan | run-app-security-scan (an app you build), start-scan, wait-for-scan, get-scan-status | nightvision scan |
| Check coverage after a scan | get-scan-paths |
Related skills: Use ci-cd-integration for pipeline setup, source-intelligence for spec extraction, scan-triage for interpreting results.
Projects are organizational containers for targets, scans, and auth resources. They can be shared with team members.
# Create a project
nightvision project create -n my-project
# List projects
nightvision project list
# Set default project (used when -p flag is omitted)
nightvision project set -p my-project
# Share — done through the web UI at app.nightviz.ai
Two types: Web (URL only) and API (URL + OpenAPI/Postman spec).
# Web target
nightvision target create my-web-app https://staging.example.com \
--type WEB -p my-project
# API target with local spec file (.json, .yml, .yaml, .swagger, .postman)
nightvision target create my-api https://api.example.com \
--type API -p my-project --spec-file openapi-spec.yml
# API target with remote spec URL
nightvision target create my-api https://api.example.com \
--type API -p my-project --spec-url https://api.example.com/openapi.json
# Idempotent create-or-update (useful in automation)
nightvision target create my-api $URL --type API -p my-project --spec-file spec.yml \
|| nightvision target update my-api -p my-project --spec-file spec.yml
# Update the spec file
nightvision target update my-api -p my-project --spec-file new-spec.yml
# Update the target URL
nightvision target update my-api -p my-project -u https://new-staging.example.com
# List targets in a project
nightvision target list -p my-project
For API targets, the spec can come from:
--spec-file) — JSON or YAML OpenAPI/Swagger or Postman collection--spec-url) — publicly accessible spec endpointnightvision openapi extract) — extracted from source code (see the source-intelligence skill)p2o (npm: postman-to-openapi)NightVision supports three auth methods. The agent should help the user choose the right one.
| Method | Use when | Agent can help? |
|---|---|---|
| Playwright (interactive login) | Form-based logins, OAuth flows, MFA | No — requires user's browser |
| Headers | API keys, bearer tokens, static auth headers | Yes — agent can construct the command |
| Cookies | Session cookies from a logged-in browser | Partially — user provides cookie values |
Records a browser-based login flow that NightVision replays during scans. This requires an interactive browser session — instruct the user to run this themselves.
# Create — opens Chrome, user logs in, closes window to finish
nightvision auth playwright create my-auth https://myapp.example.com
# Update an existing recording
nightvision auth playwright update my-auth https://myapp.example.com
NightVision stores the recording securely and replays it before each scan. Screenshots and video are captured to verify login success.
For APIs using static auth headers (API keys, bearer tokens). The agent can help build this command.
# Single header
nightvision auth headers create my-auth \
-H "Authorization: Bearer eyJhbGciOi..."
# Multiple headers
nightvision auth headers create my-auth \
-H "Authorization: Bearer eyJhbGciOi..." \
-H "X-API-Key: abc123"
# Update headers on existing auth
nightvision auth headers update my-auth \
-H "Authorization: Bearer new-token..."
nightvision auth cookies create my-auth \
--cookie "session_id=abc123; Path=/; HttpOnly"
# List all auth credentials
nightvision auth list -p my-project
# Delete auth credentials
nightvision auth delete my-auth -p my-project
# By name
nightvision scan my-target -p my-project --auth my-auth
# By UUID
nightvision scan my-target -p my-project -C <credentials-uuid>
# Explicitly skip auth
nightvision scan my-target -p my-project --no-auth
A scan whose login silently failed still completes, but it only tests the public surface and reports far fewer findings. Check the login first, and gate CI on it:
# Run only the login script (no crawl, no engines); exits non-zero unless a session was captured
nightvision scan my-target -p my-project --auth my-auth --login-check
# Also probe a page that needs the session
nightvision scan my-target -p my-project --auth my-auth --login-check \
--validation-url https://app.example.com/account \
--validation-must-contain "Sign out"
Exit codes with --validation-url: 0 verified, 1 infrastructure problem or incomplete, 2 failed, 3 inconclusive. --validation-status sets the allowed HTTP codes (default exactly 200) and --validation-must-not-contain catches a login page served with 200.
When the login script is written or edited by hand (or saved through the MCP save-playwright-script tool) rather than recorded:
page and locators. Do not depend on other imports such as re or expect: the script is run in a controlled runner, so a NameError for a module the script imported is a script problem, not a login failure.A scan that completes is not the same as a scan that tested the app. These are the setups that decide how much of an authenticated app NightVision actually reaches; check each one with the user before the first scan.
An API scan fills path and query parameters from the spec. When a parameter has no example, the generated value (often the parameter's name, or 10) fails validation, so the request never reaches the operation's logic and the operation is only tested for input handling.
example values that hold real IDs from the scan account to the spec's path parameters (for {id}, {projectId} and similar), then upload the spec with nightvision target update --spec-file. Keep the examples in a scan-specific copy of the spec if the published one must stay generic.get-scan-paths): mostly 400 and 404 means the IDs did not resolve.When the web app's pages are served from one host and its data comes from another (app.example.com calling api.example.com), a WEB target on the app host tests the pages and headers but not the API requests the pages make. Create both:
For a single-page app, the scan's path list shows requests to the server, mostly the page shell and its JavaScript and CSS files, not each route visited inside the browser. Judge web coverage by the pages and findings, and API coverage by the API target's paths.
--exclude-xpath (for example //button[normalize-space()='Delete'], //button[normalize-space()='Remove']) and exclude pages that manage members, roles, billing and API keys with --exclude-url. Review the scan account's data after the first scan.PUT, PATCH and DELETE. With a dedicated scan account, the changes stay inside that account; exclude operations that act outside it (invitations, email sending, billing, webhooks to third parties) with --exclude-url.Prefer a staging copy with production-like data. When the scan must run against production (an annual scan for an audit, for example):
Recording HTTP traffic (HAR files) improves scan coverage for apps with:
The HAR file is recorded once and replayed in all subsequent scans on that target.
# Record traffic — opens Chrome, user interacts with the app, then closes
nightvision traffic record my-recording https://myapp.example.com/workflow \
--target my-target --output traffic.har
# Upload an existing HAR file
nightvision traffic upload traffic.har --target my-target
# List recorded traffic for a target
nightvision traffic list --target my-target
# Download a recording
nightvision traffic download my-recording --output traffic.har
Traffic recording requires a browser — instruct the user to run this locally.
Control which URLs and elements are included or excluded from scans.
# Exclude URL patterns (regex, comma-separated)
nightvision target update my-target -p my-project \
--exclude-url "/health,/metrics,/admin.*,/api/internal.*"
# Exclude elements by XPath (for web targets)
nightvision target update my-target -p my-project \
--exclude-xpath "//button[@id='delete'],//a[@class='logout']"
# Clear all exclusions
nightvision target update my-target -p my-project --exclude-url ""
nightvision target update my-target -p my-project --exclude-xpath ""
Common exclusion patterns:
/health, /healthz, /ready — health check endpoints/metrics, /prometheus — monitoring endpoints/admin.* — admin panels (if not in scope)NightVision can scan targets that are not publicly accessible. The Smart Proxy is built into the CLI and activates automatically when the target is unreachable from the internet.
Supported environments: localhost, Docker containers, Kubernetes clusters, staging servers, corporate data centers.
# Smart Proxy activates automatically for private targets
nightvision scan my-target -p my-project
# Force Smart Proxy even if the target appears public
nightvision scan my-target -p my-project --force-private-scan
If the target is behind a corporate firewall, whitelist these NightVision AWS NAT Gateway IPs:
View scan history and status across projects.
# List scans in the current (or set) project
nightvision scan list
# Filter by one or more projects
nightvision scan list -p my-project
nightvision scan list -p project-a -p project-b
# List scans across all projects
nightvision scan list --all
Output includes scan ID, target name, status, start time, duration, and issue count.
The CLI default is 30 minutes, which suits API targets with a spec. Web applications need longer to crawl: use --max-duration-minutes 120 for a full web-app scan (allowed range 30 to 480). After a scan, compare the discovered path count (MCP get-scan-paths) with what you expect; a low count usually means a login or reachability problem, not a clean app.
nightvision scan my-webapp -p my-project --auth my-auth --max-duration-minutes 120
# Disable Nuclei (ZAP only)
nightvision scan my-target -p my-project --no-nuclei
# Disable ZAP (Nuclei only)
nightvision scan my-target -p my-project --no-zap
# Disable specific ZAP alert IDs
nightvision scan my-target -p my-project --disable-zap-active-alerts 40012,40014
# Disable specific Nuclei template folders
nightvision scan my-target -p my-project --disable-nuclei-folders cves/2021
# Skip some of the target's custom Nuclei templates for this scan (template IDs; CLI 0.22.8+)
nightvision scan my-target -p my-project --disable-nuclei-templates tmpl-id-1,tmpl-id-2
Through the MCP server (v0.4.0+), start-scan can also run only chosen custom Nuclei templates (run_only_nuclei_templates, by id or name) and turn ZAP off with no_zap; this needs CLI 0.22.8 or later.
Routes that send user input to an AI model need different testing: ordinary attack payloads cost model tokens and produce misleading results there. Each URL and API target has an LLM Endpoints tab in the web app:
llm-query in an uploaded spec) are added and switched on automatically, labeled "from spec" (or "from spec, unsure" when the analysis guessed). Users can add paths by hand (write path parameters as {name}), switch any entry off, and delete the ones they added. A target holds up to 100.For an agent: on an API target with supported source, upload the spec with nightvision openapi extract . -t <target> -p <project> so the list fills itself; otherwise the AI endpoint scan or a full scan finds them. Then point the user to the LLM Endpoints tab to review the list. For private (Smart Proxy) targets, run a normal CLI scan.
Each target (except GitHub targets) has a Quantum readiness tab. Quantum readiness is on by default for organizations; NightVision support can switch it off for one. It is kept apart from the vulnerability list so readiness findings never bury exploitable issues.
--weak-crypto report with nightvision openapi extract (see source-intelligence).Before running a scan, verify:
NIGHTVISION_TOKEN is set (or user is logged in; nightvision whoami confirms it)nightvision target list -p my-project)nightvision auth list -p my-project), and passing --login-checkexample IDs (or traffic is recorded); a single-page app has both a WEB and an API targetWhat SKILL.md sets; muted values are Claude Code's defaults
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./chain-attacksFind and reproduce multi-step business-logic vulnerabilities (vuln chains) in a web app or API, where each request is individually allowed but the ordered combination across steps or sessions breaks a business rule. Use after adding a multi-step flow (checkout, invite/accept, approval/publish, password reset, refund), when a user asks "can a sequence of allowed requests reach a forbidden state", to test business-logic or chained vulnerabilities, or as part of ship-check. Non-destructive and dev-only: it never takes a state-changing action and runs only against an app the developer owns./ci-cd-integrationGuide for agents to help users integrate NightVision DAST scanning into CI/CD pipelines. Use when setting up security scans in GitHub Actions, GitLab CI, Azure DevOps, Jenkins, BitBucket, or JFrog pipelines, configuring NightVision tokens, creating targets, running scans, exporting results as SARIF/CSV, or detecting API breaking changes./fleet-statusRead-only AppSec roll-up of every app in NightVision - which apps exist, when each was last scanned, and where the open Critical and High findings are. Use when a user asks "who is building what", wants scan posture across all apps, asks which apps have never been scanned or have stale scans, or needs an AppSec roll-up for a CISO. It starts no scans and changes nothing.nightvision@nvsecurity is listed by nvsecurity/claude-marketplace — review the source before installing
npx claudepluginhub nvsecurity/claude-marketplace --plugin nightvisionOther plugins' skills for the same job