Skip to content
Back to skills

Vuln Scan

ASecurity

Hunt vulnerabilities/bugs in your own Rust code using codegraph's graph tools + the codegraph-vuln-analyst subagent. Maps a target subsystem, traces source→sink reachability chains, runs the codegraph vuln engine as a lead generator, and reasons against dynamically-discovered bug classes (CWE/NVD/CVSS). Use to audit a subsystem or entrypoint, "find bugs in <area>", or do a security pass before a release. Requires the codegraph MCP server (with codegraph_arch/paths/xref/vuln).

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentrustgosecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add coleleavitt/jsbeautify --skill vuln-scan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vuln Scan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vuln Scan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/coleleavitt-vuln-scan/badge)](https://www.skillsdirectory.com/skills/coleleavitt-vuln-scan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vuln-scan
description: >-
  Hunt vulnerabilities/bugs in your own Rust code using codegraph's graph tools +
  the codegraph-vuln-analyst subagent. Maps a target subsystem, traces source→sink
  reachability chains, runs the codegraph vuln engine as a lead generator, and
  reasons against dynamically-discovered bug classes (CWE/NVD/CVSS). Use to audit a
  subsystem or entrypoint, "find bugs in <area>", or do a security pass before a
  release. Requires the codegraph MCP server (with codegraph_arch/paths/xref/vuln).
disable-model-invocation: true
---

# vuln-scan — graph-driven vulnerability hunt

Orchestrates a real bug hunt over your own code. Give it a target (a subsystem path
like `src/sourcemap`, an entrypoint symbol, or "whole repo"); it drives the
`codegraph-vuln-analyst` subagent against the live codegraph tools.

## Preconditions
- codegraph MCP server running with the extended tools: `codegraph_arch`,
  `codegraph_paths`, `codegraph_xref`, `codegraph_vuln`. (Verify with a
  `codegraph_arch` call; if the tools are missing, the server needs a restart after
  `cargo install --path <codegraph-rs>`.)
- The project is codegraph-indexed (`.codegraph/` present).

## Steps
1. **Frame the target.** Resolve the subsystem path(s). For "whole repo", first run
   `codegraph_arch` at the root to pick the highest-risk areas (the
   untrusted-input boundary: parser, decoders, `src/vm_analysis`, the output
   writers that turn bundle names into paths, `src/llm.rs`).
2. **Lead generation.** Run `codegraph analyze vuln` (CLI) or `codegraph_vuln`
   (MCP) for the engine's structural anomalies — a starting list, not the answer.
3. **Dispatch the analyst.** For each target subsystem, spawn the
   `codegraph-vuln-analyst` subagent (run several in parallel for distinct areas).
   It maps the area, traces source→sink chains with `codegraph_paths`, and
   dynamically classifies each finding (CWE/NVD/CVSS via the `vuln-researcher`
   skill + web search).
4. **Verify + dedup.** Drop findings without a real reachability chain or a concrete
   trigger. Dedup across analysts by (file, sink, class).
5. **Report.** Produce a ranked report (severity, CWE, chain, trigger, CVSS, fix).

## Scope notes
- **Rust self-audit (default):** sources = parsed JS, source maps, LLM responses; sinks =
  panic/`unwrap`/index, `unsafe`, integer truncation/overflow, fs paths, `Command`.
- **Deobfuscated JS (separate pass):** a different source/sink set (DOM-XSS sinks,
  `eval`/`Function`, prototype pollution, exfil) — see the JS sink-catalog task.

Pair findings that touch deobfuscation or parser-facing code with the
`deobf-soundness-reviewer` / `hostile-input-reviewer` subagents for a second lens.

Files in this skill

  • SKILL.md2.7 KB
  • js-sink-catalog.md3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.