SecurityOfficial · trailofbits

Trailmark Finding Triage skill for Claude

Performs graph-assisted triage of a single security finding, SARIF result, weAudit annotation, suspicious function, or report excerpt using Trailmark reachability, entrypoint paths, taint, privilege-boundary, blast-radius, caller/callee, and neighborhood evidence.

When Claude uses it

Use when deciding whether one candidate issue is reachable, prioritizing a finding before PoC work, preparing evidence for exploit validation, or checking whether a static-analysis result is actionable.

Trailmark Finding Triage SKILL.md

The full skill file from trailofbits/skills (CC-BY-SA-4.0).

Trailmark Finding Triage

Build a concise graph evidence packet for one candidate finding. This skill answers whether the affected code is reachable, what graph evidence supports or weakens the claim, and what manual review is still required before calling the issue exploitable.

When to Use

  • Triage one static-analysis result before spending PoC time
  • Check whether a manual finding is entrypoint-reachable
  • Build an evidence packet for PoC work
  • Review a single suspicious function discovered during manual audit
  • Decide whether one issue should be promoted, deprioritized, or treated as part of a broader chain analysis

When NOT to Use

  • Multiple weak findings might compose into a stronger chain. Use a chain or composition workflow instead.
  • The user wants a full audit. Use an audit or design-review workflow instead.
  • The user wants remediation verification for a known finding. Use a remediation-review workflow instead.
  • The target is a PR or branch diff. Use graph-evolution plus a differential review workflow.
  • No concrete finding, function, file/line, or suspicious sink exists yet. Use discovery skills first.

Rationalizations to Reject

RationalizationWhy It Is WrongRequired Action
"The scanner says high severity, so reachability is obvious"Static findings need graph and code context before promotionBind the finding to a graph node and check entrypoint paths
"No entrypoint path means impossible"It may mean parser, proxy, or dynamic dispatch limitationsReport the limitation separately from reachability
"An auth check appears on the path, so the issue is safe"The check may enforce the wrong predicate or be bypassed by another pathTreat validation/auth as review targets, not proof
"One reachable path is enough for a PoC claim"The path still needs attacker-controlled inputs and compatible preconditionsSeparate graph reachability from exploitability
"This is probably a chain"Single-finding triage stops at one candidateHand off related findings to a composition workflow

Workflow

Finding Triage Progress:
- [ ] Step 1: Normalize the candidate
- [ ] Step 2: Build or reuse the Trailmark graph
- [ ] Step 3: Bind the candidate to graph node(s)
- [ ] Step 4: Analyze reachability, taint, boundaries, and blast radius
- [ ] Step 5: Decide and emit the evidence packet

Step 1: Normalize the Candidate

Accept file/line, function name, SARIF result, weAudit annotation, Markdown finding excerpt, or a manual claim. Normalize it to:

  • title
  • source type
  • file path and line range if present
  • function or node hint
  • suspected source, sink, or asset
  • claimed impact

If there is no concrete code anchor, stop and ask for one.

For input handling details, see references/input-normalization.md.

Shortcut for Steps 2–4 (file/line findings)

For file/line anchors, run the bundled script. It builds the graph and preanalysis once, binds every finding, and prints the Graph Evidence fields as JSON: all matching nodes and the primary one (the node containing the first line, then the narrowest), entrypoint paths with each entrypoint's trust level, tainted / entrypoint_reachable / privilege_boundary / high_blast_radius membership, callers, callees, downstream nodes, and the Trailmark version. Pass several findings in one call rather than rebuilding the graph per finding.

uv run --no-project "{baseDir}/scripts/evidence_packet.py" --target <dir> --finding <file>:<line>[-<end>] --out evidence.json [--finding ...] [--language auto]

With --out, the complete packet stays on disk and stdout contains only delivery counts. Read relevant finding records from that file. Without --out, stdout is the full packet. Relative anchors may be target- or working-directory-relative; ambiguous existing paths are rejected. Choose --path-base target or cwd, or use an absolute path. Lines must be positive and ordered; column syntax is not supported. Containers cover module/class/contract declarations when no callable overlaps. Inspect binding (exact, nested or ambiguous), binding_kind, all matches, unavailable signals and parser diagnostic limitations before judging the result. A zero-node graph is a failure. Batching shares graph work only: write a separate human verdict for each finding.

A finding that binds to nothing comes back with bound_node: null and the reason. The script judges nothing: read the bound code and its callers, decide attacker control, and treat an empty path list as a limitation to explain (dynamic dispatch, proxies, missing entrypoint models), not as proof. Use the steps below for inputs the script does not take (function names, SARIF via audit-augmentation) and for queries it does not run (connect_subgraphs).

Step 2: Build Or Reuse The Graph

Use the public trailmark skill workflow. Prefer an existing fresh exported graph or .trailmark/ artifact when present. Otherwise build a graph with language="auto" or the target's explicit language list, then run engine.preanalysis().

Record the Trailmark version or feature probes used. Feature-gate Trailmark 0.4-only APIs with hasattr() or CLI help checks.

Step 3: Bind The Candidate

Bind by file and line overlap first, then function name plus file. If several nodes match, list every candidate and select the narrowest enclosing node as primary. If no node matches, report a binding limitation instead of guessing.

SARIF and weAudit users should reuse the audit-augmentation workflow for matching and then inspect the annotated node.

Step 4: Analyze Graph Evidence

Run the query recipe in references/query-recipes.md:

  • entrypoint paths to the bound node
  • trust level of each path when available
  • membership in tainted, privilege_boundary, and high_blast_radius subgraphs
  • direct callers and callees
  • high-impact downstream sinks
  • sibling or nearby nodes worth manual review

Do not treat graph reachability as proof of exploitability.

Step 5: Decide And Handoff

Produce one verdict:

VerdictMeaning
PromoteGraph evidence supports reachability and plausible impact
Needs manual reviewEvidence is suggestive but not decisive
DeprioritizeNo reachable path or only trusted/internal paths found
BlockedBinding or Trailmark analysis failed

Write the evidence packet using references/output-format.md.

Hand off promoted PoC-worthy issues to the user's PoC workflow. Hand off related findings to a composition workflow. Hand off repeatable root causes to trailmark-variant-neighborhood, variant-analysis, or a custom Semgrep/CodeQL rule workflow.

Example Prompts

  • "Use Trailmark finding triage on src/Vault.sol:148; I think withdraw can bypass the balance update."
  • "Triage this SARIF result before I spend PoC time: semgrep:error unchecked-transfer in contracts/Bridge.sol line 91."
  • "This report excerpt claims parse_packet is attacker reachable. Build the Trailmark evidence packet and tell me what is still missing."

How to install Trailmark Finding Triage

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit trailofbits/skills/plugins/trailmark/skills/trailmark-finding-triage#main ~/.claude/skills/trailmark-finding-triage

Codex

npx degit trailofbits/skills/plugins/trailmark/skills/trailmark-finding-triage#main ~/.codex/skills/trailmark-finding-triage

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Trailmark Finding Triage skill do?

Performs graph-assisted triage of a single security finding, SARIF result, weAudit annotation, suspicious function, or report excerpt using Trailmark reachability, entrypoint paths, taint, privilege-boundary, blast-radius, caller/callee, and neighborhood evidence. Use when deciding whether one candidate issue is reachable, prioritizing a finding before PoC work, preparing evidence for exploit validation, or checking whether a static-analysis result is actionable.

+How do I install Trailmark Finding Triage in Claude Code?

Copy the skill folder into ~/.claude/skills/trailmark-finding-triage, for example with "npx degit trailofbits/skills/plugins/trailmark/skills/trailmark-finding-triage#main ~/.claude/skills/trailmark-finding-triage". Claude Code loads it automatically and uses it when a task matches.

+Does Trailmark Finding Triage work with ChatGPT or Codex?

Yes. Trailmark Finding Triage uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/trailmark-finding-triage. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Trailmark Finding Triage free?

Trailmark Finding Triage is published on GitHub by trailofbits under the CC-BY-SA-4.0 license, which allows free use.

Related security skills

  1. Security Review

    Official

    Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit…

    getsentry/skills★ 1.2k
  2. Audit

    a user-authored audit skill

    pbakaus/impeccable★ 112k
  3. Semgrep

    Official

    Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every…

    trailofbits/skills★ 8.3k
  4. Trailmark Variant Neighborhood

    Official

    Expands one confirmed or suspected vulnerability into a Trailmark graph neighborhood of variant candidates by finding sibling functions,…

    trailofbits/skills★ 8.3k
  5. Variant Analysis

    Official

    Hunts for the other instances of a bug already found — the variants of one root cause across a codebase.

    trailofbits/skills★ 8.3k
  6. Vulnerability Triage Brocards

    Official

    This skill should be used when the user asks to "triage a vulnerability report", "assess a CVE", "evaluate a bug bounty submission",…

    trailofbits/skills★ 8.3k
  7. Yara Rule Authoring

    Official

    Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules.

    trailofbits/skills★ 8.3k
  8. Zeroize Audit

    Official

    Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with…

    trailofbits/skills★ 8.3k
  9. Microsoft Azure Webjobs Extensions Authentication Events Dotnet

    Official

    Microsoft Entra Authentication Events SDK for .NET. Azure Functions triggers for custom authentication extensions.

    microsoft/skills★ 3.2k

See all security skills →

More skills from trailofbits

  1. Trailmark Review Gate

    Official

    Runs a Trailmark structural review gate over a branch, pull request, fix commit, release diff, or git ref range to detect new entrypoints,…

    trailofbits/skills★ 8.3k
  2. Trailmark Structural

    Official

    Runs full Trailmark structural analysis by building a graph, running `preanalysis()`, and reporting hotspots, taint, blast radius,…

    trailofbits/skills★ 8.3k
  3. Trailmark Summary

    Official

    Runs a Trailmark summary analysis on a codebase. Returns auto-detected languages, entry point count, and dependency list.

    trailofbits/skills★ 8.3k

All skills by trailofbits →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.