Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent Skill

False-positive check (Trail of Bits)

Verifies a suspected vulnerability and returns a true or false positive verdict with evidence. For checking findings, not hunting for new ones.

name: fp-checkBy Trail of BitsChecked
View source on GitHub
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark

Install

Commands are pinned to commit 149d7b2, the version we read, wherever the install method supports it.

npx skills

Terminal
npx skills add trailofbits/skills@149d7b21f4067765b82e67029730b42d228ef4b4 --skill fp-check -a claude-code

Copies the skill into .claude/skills/ in this project, pinned to the reviewed commit.

Plugin marketplace

Claude Code prompt
/plugin marketplace add trailofbits/skills
/plugin install fp-check@trailofbits

Run inside Claude Code. Installs the whole fp-check plugin from its default branch, not the pinned commit.

What it does

Built for the flood of findings that scanners and agents produce. It starts by restating the claim and its context, then routes to standard or deep verification, works through gate reviews and bug-class-specific checks, and records evidence in templates. It handles batches and ends with a summary of verdicts. A rationalisations section lists the shortcuts it must not take.

When to use it

Triaging a pile of findings from a scanner, an AI review or a bug bounty report, where you need to know which are real before anyone spends a day on a fix. Its evidence templates make the verdicts reviewable by someone who did not run the session.

When to skip it

Finding issues in the first place: it verifies claims, it does not hunt. Run it in a disposable checkout, because its pre-approved tools let it write files and run code while it builds proof.

Try it

Here are 14 findings from last night's scan in findings.json. Verify
each one: true positive, false positive or unproven, with the evidence
for each verdict. Do not change code outside a scratch branch.

What it can touch

Bundles scripts
No
Pre-approved tools
Read Grep Glob LSP Bash Task Write Edit AskUserQuestion TaskCreate TaskUpdate TaskList TaskGet
Needs
Nothing beyond the agent
Client-specific fields
None, spec fields only

Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.

allowed-tools pre-approves a long list including Bash, Write and Edit, so in Claude Code it can run code and change files during verification without prompting. Use a disposable checkout. Licensed CC-BY-SA-4.0.

At commit 149d7b2 the SKILL.md is 113 lines long. Alongside it:

  • agents/ (1 entry)
  • assets/ (1 entry)
  • references/ (6 entries)

Alternatives

Differential review, security review and find bugs produce the findings this skill checks. Semgrep rule creator turns a confirmed bug into a rule so it does not come back.

SKILL.md

The file exactly as published at the reviewed commit, reproduced under its CC-BY-SA-4.0 licence.

plugins/fp-check/skills/fp-check/SKILL.md
---
name: fp-check
description: "Systematically verifies suspected security bugs to eliminate false positives, producing a TRUE POSITIVE or FALSE POSITIVE verdict with documented evidence for each. Use when asked whether a specific finding is real, exploitable, or a false positive, or to verify or validate a suspected vulnerability — not for hunting or discovering new bugs."
allowed-tools: Read Grep Glob LSP Bash Task Write Edit AskUserQuestion TaskCreate TaskUpdate TaskList TaskGet
---

# False Positive Check

## When to Use

- "Is this bug real?" or "is this a true positive?"
- "Is this a false positive?" or "verify this finding"
- "Check if this vulnerability is exploitable"
- Any request to verify or validate a specific suspected bug

## When NOT to Use

- Finding or hunting for bugs ("find bugs", "security analysis", "audit code")
- General code review for style, performance, or maintainability
- Feature development, refactoring, or non-security tasks
- When the user explicitly asks for a quick scan without verification

## Rationalizations to Reject

If you catch yourself thinking any of these, STOP.

| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "Rapid analysis of remaining bugs" | Every bug gets full verification | Return to task list, verify next bug through all phases |
| "This pattern looks dangerous, so it's a vulnerability" | Pattern recognition is not analysis | Complete data flow tracing before any conclusion |
| "Skipping full verification for efficiency" | No partial analysis allowed | Execute all steps per the chosen verification path |
| "The code looks unsafe, reporting without tracing data flow" | Unsafe-looking code may have upstream validation | Trace the complete path from source to sink |
| "Similar code was vulnerable elsewhere" | Each context has different validation, callers, and protections | Verify this specific instance independently |
| "This is clearly critical" | LLMs are biased toward seeing bugs and overrating severity | Complete devil's advocate review; prove it with evidence |

---

## Step 0: Understand the Claim and Context

Before any analysis, restate the bug in your own words. If you cannot do this clearly, ask the user for clarification. Half of false positives collapse at this step — the claim doesn't make coherent sense when restated precisely.

Document:

- **What is the exact vulnerability claim?** (e.g., "heap buffer overflow in `parse_header()` when `content_length` exceeds 4096")
- **What is the alleged root cause?** (e.g., "missing bounds check before `memcpy` at line 142")
- **What is the supposed trigger?** (e.g., "attacker sends HTTP request with oversized Content-Length header")
- **What is the claimed impact?** (e.g., "remote code execution via controlled heap corruption")
- **What is the threat model?** What privilege level does this code run at? Is it sandboxed? What can the attacker already do before triggering this bug? (e.g., "unauthenticated remote attacker vs privileged local user"; "runs inside Chrome renderer sandbox" vs "runs as root with no sandbox")
- **What is the bug class?** Classify the bug and consult [bug-class-verification.md]({baseDir}/references/bug-class-verification.md) for class-specific verification requirements that supplement the generic phases below.
- **Execution context**: When and how is this code path reached during normal execution?
- **Caller analysis**: What functions call this code and what input constraints do they impose?
- **Architectural context**: Is this part of a larger security system with multiple protection layers?
- **Historical context**: Any recent changes, known issues, or previous security reviews of this code area?

## Route: Standard vs Deep Verification

After Step 0, choose a verification path.

### Standard Verification

Use when ALL of these hold:

- Clear, specific vulnerability claim (not vague or ambiguous)
- Single component — no cross-component interaction in the bug path
- Well-understood bug class (buffer overflow, SQL injection, XSS, integer overflow, etc.)
- No concurrency or async involved in the trigger
- Straightforward data flow from source to sink

Follow [standard-verification.md]({baseDir}/references/standard-verification.md). No task tracking — work through the linear checklist sequentially, documenting findings inline.

### Deep Verification

Use when ANY of these hold:

- Ambiguous claim that could be interpreted multiple ways
- Cross-component bug path (data flows through 3+ modules or services)
- Race conditions, TOCTOU, or concurrency in the trigger mechanism
- Logic bugs without a clear spec to verify against
- Standard verification was inconclusive or escalated
- User explicitly requests full verification

Follow [deep-verification.md]({baseDir}/references/deep-verification.md). Track each phase as a task with explicit dependencies, and execute the phases using the plugin's analysis agents.

### Default

Start with standard. Standard verification has two built-in escalation checkpoints that route to deep when complexity exceeds the linear checklist.

## Batch Triage

When verifying multiple bugs at once:

1. Run Step 0 for all bugs first — restating each claim often collapses obvious false positives immediately
2. Route each bug independently (some may be standard, others deep)
3. Process all standard-routed bugs first, then deep-routed bugs
4. After all bugs are verified, check for **exploit chains** — findings that individually failed gate review may combine to form a viable attack

## Final Summary

After processing ALL suspected bugs, provide:

1. **Counts**: X TRUE POSITIVES, Y FALSE POSITIVES
2. **TRUE POSITIVE list**: Each with brief vulnerability description
3. **FALSE POSITIVE list**: Each with brief reason for rejection

## References

- [Standard Verification]({baseDir}/references/standard-verification.md) — Linear single-pass checklist for straightforward bugs
- [Deep Verification]({baseDir}/references/deep-verification.md) — Full task-based orchestration for complex bugs
- [Gate Reviews]({baseDir}/references/gate-reviews.md) — Six mandatory gates and verdict format
- [Bug-Class Verification]({baseDir}/references/bug-class-verification.md) — Class-specific verification requirements for memory corruption, logic bugs, race conditions, integer issues, crypto, injection, info disclosure, DoS, and deserialization
- [False Positive Patterns]({baseDir}/references/false-positive-patterns.md) — 13-item checklist and red flags for common false positive patterns
- [Evidence Templates]({baseDir}/references/evidence-templates.md) — Documentation templates for data flow, mathematical proofs, attacker control, and devil's advocate reviews
  • Differential security review (Trail of Bits)

    Trail of Bits' security-focused review of a PR, commit or diff that scales its depth to the change, measures blast radius and writes a Markdown report.

    Code review and GitChecked at 149d7b2

  • Find bugs (Sentry)

    Reviews the changes on your current branch for bugs and security issues: gathers the full diff, maps attack surface, then runs a checklist per file.

    Code review and GitChecked at a582c51

  • Skill scanner (Sentry)

    Audits an agent skill for prompt injection, risky scripts, excessive permissions, secret exposure and supply-chain problems, with a static scan script.

    Bundles scriptsChecked at a582c51