/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
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./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.2 plugins ship this exact skill · first indexed Nov 17, 2026
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