/nightvision:authz-reviewfrom nightvision
Review 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.
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.
Broken access control is the most common serious flaw in apps built quickly: every route works for the user who wrote it, and nobody tries one user's ID with another user's session. This skill finds those gaps in the code and gives the developer a test that proves or disproves them.
What this is and is not: it is a code review plus a test the developer runs against an environment they own. It is not a NightVision scan result. Report what you found as review findings, never as NightVision findings, and never claim a route is safe because the review did not flag it.
run-app-security-scan run the spec is in .nightvision/ (its path is api_discovery.attached_spec_file in .nightvision/manifest.json); a manual nightvision openapi extract writes openapi-spec.yml by default. Otherwise generate one with the source-intelligence skill, or read the router or controller definitions directly.{id}, orderId, user_id, slug, fileKey, a tenant or org ID);owner_id, tenant_id, a policy call, a row-level security policy), where, and whether the check runs before the data is used or returned;role, owner_id, tenant_id, is_admin, price);enforced (scoped in the query or by a central policy that covers it), missing (no check you can find), or unclear (the check lives somewhere you could not follow, such as dynamic middleware or a database policy you cannot read). Do not upgrade unclear to enforced.file:line, and the verdict. Put missing first, then unclear.missing and unclear route, plus a sample of enforced ones.Write a small script, authz-test.sh or the project's own test framework, that:
USER_A_TOKEN, USER_B_TOKEN, or two cookie jars). The developer supplies these accounts; never create accounts in or point the test at an environment the developer does not own, and never at production.role, owner_id or tenant_id in an update body and confirms the stored record did not change.Print the exact request and response status for every failure, so the developer can see the gap without reading the script.
Order.objects.get(id=id, owner=request.user), where: { id, ownerId: session.userId }, findByIdAndOwnerId.@PreAuthorize with a domain check, ASP.NET resource-based authorization, CASL) over per-route if checks.auth.uid().secure-build covers access-control rules to follow while writing code. ship-check runs this review as part of finishing an app. app-security-scan runs a NightVision DAST scan of the running app.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nvsecurity/nightvision-mcp --plugin nightvision14 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./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./multi-agent-relayStand up and drive multiple coordinating agents that build a feature through a filesystem relay: a driver that authors one task prompt at a time, an implementation agent (a standing poll-loop session OR a freshly spawned subagent) that implements and tests, and a shipping agent that commits, reviews, fixes, and ships - all coordinating through report files with a fixed status-line protocol and background monitors. Use when executing an approved multi-task sequence across one or more repos with separate agents that must stay in distinct lanes.2 plugins ship this exact skill · first indexed Nov 17, 2026