code-vulnerability-analysis
Deep vulnerability analysis on source code files using Trail of Bits methodology with adversarial framing and taint tracing
от VigilOSS★ 35 звёзд на GitHub
Установить code-vulnerability-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Vulnerability Analysis
Together with agent/shared-constraints-code.md §5-§8, this skill owns code hunting depth: every
scoped function gets a source-backed disposition; a surviving hypothesis names the product path,
failed invariant, preconditions, and outcome; an inconclusive lead stays suspicious or becomes a
lease close instead of disappearing.
Work Decisively
Spend reasoning in proportion to what the code can do. A helper that meets Step 8's one-line
clean criteria is read once, checked against the applicable families, and closed in one line;
attack-facing, sink-bearing, stateful, or ambiguous code gets the full reasoning
agent/shared-constraints-code.md §6 describes. Settle each question once: when a guard, type, or
precondition ends a hypothesis, cite its line and move on; when evidence is missing, record the
exact gap as suspicious or needs-context rather than re-arguing it. The batch is done when every function and <top-level>
segment has a disposition you can point at and every applicable family has a coverage entry whose
effort reflects analysis at the depth the file's tier expects (critical 70, high 50, medium 30;
vigil assess code-coverage --cwe-matrix shows the gaps). A family left below that depth comes back
as a Step 6.5 re-dispatch, so trace it to that depth now or say in its notes why the code cannot
support it. Rereading a settled conclusion adds tokens, not coverage.
When to Activate
Phase 2 (Hunt). The operator supplies the batch (paths, priorities, theme, slot types), the current
Code Source Identity and structural-index manifest, a call-graph excerpt, the threat-model envelope
when current: true with matching generation/digest (a clipped summary only orients),
applicable_vuln_classes, guidance hypotheses, and prior findings or effort. You produce
finding/suspicious/clean/skipped dispositions, lease closes, cwe_coverage, and
cross_file_triggers.
Tools
Read, rg, and Glob beneath the sealed snapshot_path, always passing that root, and resolve
symbols in the agent/shared-constraints-code.md §3 "Cross-Reference Tools" order (ctags, rg -n
with its flag traps, direct reads). If none resolves, close the lease with
code-dispatch needs-context naming the symbol — a lease close, not a disposition. Each receipt's
audit_metadata.cross_ref_usage records tool and the queries you ran (carry the index's
metadata forward when no lookup was needed), and audit_metadata.pattern_refs lists the pattern
references that informed the verdict.
Methodology
Step 1: Read the Whole File, Then Deepen
Resolve the file's index (agent/shared-constraints-code.md "Structural-index resolution"), read the
file top to bottom for layout, trust boundaries, state, and entry-to-sink regions, then read the
entry-facing, sink-bearing, stateful, parser-heavy, or ambiguous functions line by line, following
callees until each chain resolves and expanding macros before reasoning past them. The function map
and top_level_segments are the completeness anchor (agent/shared-constraints-code.md §2).
Step 2: Build the Taint Map
For each product-reachable (source, sink) pair, record every transformation and guard on the path,
and separately whether a caller or attacker controls it. Sources include supported public API,
parser, and host-callback parameters as well as I/O (agent/shared-constraints-code.md §5). A guard counts only if it checks the right
variable, at the right width and signedness, against the right bound, on every path, before use.
Step 3: Unconstrained File Analysis (First)
Cover every family in applicable_vuln_classes before reading guidance hypotheses, so the
architect's prediction does not set your scope. path_suggested_vuln_classes and
unread_code_suggested_vuln_classes are hints: consider each, and add a coverage entry for those the
code exercises. error-handling and algorithmic-dos apply to every structurally analyzed code
language, C/C++ included; a markup or template file owes them only when it holds server-side code
its index did not read (Blade @php). Per family, load the pattern reference whose signal fired
(agent/shared-constraints-code.md §8), work its "What You're Hunting (LLM-Advantage Patterns)", and trace the relevant target-kind
entry chains (cluster a large file by chain, sink family, or state region). Missing
embedding context limits impact; it does not erase a concrete invariant failure on a public path.
Step 4: Apply Guidance Hypotheses (Second)
For each hypothesis, say whether the broad pass validated or refuted it with code references, or trace the path it names. Confirmed becomes a full finding (5 Hows, role file); refuted cites the blocking guard, type, or validation; partial states what holds, what differs, and what code would settle it. Refine toward the real behavior before killing: boundary intuition is often right when the mechanism detail is wrong.
Step 5: Error Path De
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-vulnerability-analysis?
Deep vulnerability analysis on source code files using Trail of Bits methodology with adversarial framing and taint tracing
Как установить скилл code-vulnerability-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-vulnerability-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…