app-security-scan

app-security-scan is a skill for Claude Code from nvsecurity/nightvision-skills. It costs 66 tokens per session (2,577 once invoked), scanned A, original, Apache-2.0.

A security scanner for a web app or API that tests the running application for vulnerabilities. DAST means testing the application from the outside while it runs.

In plain words
What is it for?
Use it against local, private, staging, or internal web apps and APIs, producing scan findings and SARIF output for security tools.
Why use it?
It checks recently built or changed applications for security issues and can link findings back to source code when supported.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the nightvision-skills plugin — 5 skills shipped together

Good fit Use it against local, private, staging, or internal web apps and APIs, producing scan findings and SARIF output for security tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvsecurity/nightvision-skills/app-security-scan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nvsecurity/nightvision-skills --skill app-security-scan
Clone the repo
git clone --depth 1 https://github.com/nvsecurity/nightvision-skills

Made for: Claude Code.

Or install nightvision-skills, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for app-security-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvsecurity/nightvision-skills/app-security-scan.svg)](https://agentmods.dev/skills/nvsecurity/nightvision-skills/app-security-scan)
Your own site
<a href="https://agentmods.dev/skills/nvsecurity/nightvision-skills/app-security-scan"><img src="https://agentmods.dev/badge/skills/nvsecurity/nightvision-skills/app-security-scan.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,577 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.02577
Opus 5 $0.00033 $0.01288
Sonnet 5 $0.00013 $0.00515
Haiku 4.5 $0.00007 $0.00258

Measured 8d ago against content hash 1a14011cad7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

app-security-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/app-security-scan/SKILL.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NightVision App Security Scan

Run a real DAST scan against an app you just built or changed. API Discovery runs first when the backend language is supported, because it improves coverage and lets findings trace back to a source file and line (Code Traceback). DAST is the expected outcome on every run, not just a generated spec.

Requirements: this skill drives the NightVision MCP server's app-security-scan harness, so it needs a server build that provides run-app-security-scan, preflight-app, wait-for-scan, summarize-scan-findings, and export-sarif with the project_path argument. On an older server these tools are missing (the call returns an unknown-tool error) or export-sarif ignores project_path and silently drops source-linking. If any of the listed tools is unavailable, update the NightVision MCP server before using this skill; running preflight-app first is the cheapest way to confirm the harness is present.

Best-supported languages and frameworks

API Discovery uses deterministic static analysis to generate an OpenAPI spec for supported codebases. Source-linked results are strongest for the empirically verified languages and frameworks below:

  • Python: Django, Django REST Framework, Flask, Flask-RESTful, FastAPI
  • JavaScript/TypeScript: Express, NestJS, Fastify
  • Java: Spring Boot, JAX-RS/Jersey, Micronaut, Java EE/Jakarta EE
  • C#: ASP.NET Core controllers and minimal APIs
  • Go: Gin, httprouter, and experimental net/http support
  • Ruby: Rails and Grape

Treat frameworks outside this list, including PHP frameworks, as verify-first for source discovery. Still run DAST against reachable web apps and APIs as a WEB target when discovery is unsupported or produces no spec, but report that findings may not include source file:line traceback. Source-based discovery is REST/OpenAPI only.

Workflow

  1. Locate the app's source directory and pass it as project_path. Do not rely on the current working directory: a developer usually launches you from their home directory, not the repo, and API Discovery reads project_path to generate the spec that links findings to source. If you are not already in the repo, find it (the app's git root / where its source lives) and pass that absolute path. Running against the home directory is refused with project_path_not_app_source.
  2. Know the app's URL. You are running on the developer's machine with the app's source in front of you, so you know how it serves. If it is not already running, start it with its own command (npm run dev, docker compose up, the framework dev server). Pass that URL as target_url. Do not ask the harness to guess it.
  3. Call run-app-security-scan with project_path, target_url, the NightVision project, and the app-auth mode (see Auth). One call does preflight, API Discovery, target create/update, DAST start, and writes .nightvision/manifest.json. Always route the scan through this one harness call, even when the user already has a NightVision target or credential set up: pass their existing project and auth/auth_id, and the harness reuses and updates that target and refreshes API Discovery so its spec is not stale. Do not hand-assemble a scan from create-target / start-scan / list-targets; that path skips the fresh discovery and is how a scan silently exercises a stale spec.
  4. Report the discovery result before you poll, so the user can see API Discovery ran and what it produced. The single harness call runs API Discovery, updates the target, and starts DAST in that order, but all of it is invisible from the outside: the user sees one tool call and then a long scan, which reads as "it skipped discovery and went straight to DAST". Do not let a 10+ minute scan be the first thing the user hears about. Read these fields off the result and state them in one or two sentences before the first poll:
    • api_discovery.status (success, no_spec, skipped, or failed) and api_discovery.attached_spec_file (the spec that was pushed to the target).
    • The endpoint count in that spec. Count the entries under paths: in the spec file (for example grep -c '^ /' <attached_spec_file>) and say how many endpoints DAST will exercise.
    • target.action (created, updated, or reused) and the resolved target's type, nested at target.target.type (the target block wraps the action and the resolved target object). Any non-WEB type means the spec is attached and findings can carry source file:line (the backend echoes a spec-attached target as API or OPENAPI, so do not match on API alone); type WEB means it is scanning without a spec. Prefer api_discovery.status for the coverage judgment; treat the target type as confirmation only.
    • The scan_id.

Read the full file on GitHub · 72 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 72 lines · 66 tokens per session scan A 1a14011cad7a

Subscribe to this mod's changes

app-security-scan is a skill published in the GitHub repository nvsecurity/nightvision-skills (3 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 66 tokens to every session and 2,577 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens