scan-configuration
Guide for agents to help users configure NightVision DAST scans. Use when creating targets, setting up authentication (Playwright, headers, cookies), recording HTTP traffic, managing projects, configuring scope exclusions, or preparing private network scans.
What this skill does
# NightVision Scan Configuration Use this skill when helping users set up everything needed before running a NightVision DAST scan — targets, authentication, traffic recordings, projects, and scope control. ## Agent workflow When a user asks to configure a scan: 1. **Check prerequisites** — verify the NightVision CLI is available (`nightvision --help`). Check if `NIGHTVISION_TOKEN` is set. 2. **Determine what exists** — ask if they have a NightVision account, project, and token already. Use `nightvision project list` and `nightvision target list -p <project>` to see current state (output defaults to text; use `--format json` for structured parsing) 3. **Create the project** (if needed) — projects organize targets, scans, and auth resources 4. **Create the target** — web app or API, with the correct URL and spec 5. **Set up authentication** (if needed) — determine the method and guide the user through it 6. **Record traffic** (if needed) — for apps with complex workflows or dynamic identifiers 7. **Configure scope** — set exclusions to avoid scanning health checks, admin endpoints, etc. 8. **Verify readiness** — confirm the target is reachable and the auth works **Related skills:** Use `ci-cd-integration` for pipeline setup, `api-discovery` for spec extraction, `scan-triage` for interpreting results. ## Projects Projects are organizational containers for targets, scans, and auth resources. They can be shared with team members. ```bash # 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.nightvision.net ``` ## Targets Two types: **Web** (URL only) and **API** (URL + OpenAPI/Postman spec). ### Creating targets ```bash # 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 ``` ### Updating targets ```bash # 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 ``` ### API spec sources For API targets, the spec can come from: - **Local file** (`--spec-file`) — JSON or YAML OpenAPI/Swagger or Postman collection - **Remote URL** (`--spec-url`) — publicly accessible spec endpoint - **API Discovery** (`nightvision swagger extract`) — extracted from source code (see the `api-discovery` skill) - **Postman conversion** — convert Postman collections to OpenAPI with `p2o` (npm: `postman-to-openapi`) ## Authentication 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 | ### Playwright authentication (user must run locally) Records a browser-based login flow that NightVision replays during scans. This requires an interactive browser session — instruct the user to run this themselves. ```bash # 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. ### Header authentication For APIs using static auth headers (API keys, bearer tokens). The agent can help build this command. ```bash # 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..." ``` ### Cookie authentication ```bash nightvision auth cookies create my-auth \ --cookie "session_id=abc123; Path=/; HttpOnly" ``` ### Managing auth resources ```bash # List all auth credentials nightvision auth list -p my-project # Delete auth credentials nightvision auth delete my-auth -p my-project ``` ### Using auth in scans ```bash # 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 ``` ## HTTP traffic recording Recording HTTP traffic (HAR files) improves scan coverage for apps with: - Pages behind complex business logic workflows - Endpoints requiring valid UUIDs or dynamic identifiers not in the API spec The HAR file is recorded once and replayed in all subsequent scans on that target. ```bash # 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. ## Scope control Control which URLs and elements are included or excluded from scans. ```bash # 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) - Logout buttons/links — prevents the scanner from logging itself out ## Private networks (Smart Proxy) 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. ```bash # 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 ``` ### Firewall whitelisting If the target is behind a corporate firewall, whitelist these NightVision AWS NAT Gateway IPs: - 44.210.184.14 - 3.210.133.44 - 18.210.3.10 - 52.207.103.176 - 52.201.44.112 - 50.17.248.188 ## Listing scans View scan history and status across projects. ```bash # List scans in the current (or set) proje
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.