trailmark-finding-triage
它能做什么
这项技能接收一个候选安全问题,例如扫描结果或一个可疑函数,并整理出关于其是否可被触及的证据摘要。适合决定先处理哪些问题的安全审查人员。
适用场景
- ✓扫描工具报告了高严重性问题,你想知道它是否真的可以被触及时。
- ✓你手动发现了一个可疑函数,需要在编写概念验证之前获取证据时。
- ✓你需要决定某个问题应优先处理、降低优先级,还是作为更大攻击链的一部分时。
技能链接
https://github.com/trailofbits/skills/blob/main/plugins/trailmark/skills/trailmark-finding-triage/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能检查我登录代码中这个关于用户输入的警告,外部用户是否真的能够触及它吗?”
每周 5 个新技能,1 分钟读完。
工作原理
它会围绕该问题映射代码图,查看调用者、入口点和数据流。然后列出支持或削弱该结论的因素,以及仍需人工检查的内容。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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-evolutionplus a differential review workflow. - No concrete finding, function, file/line, or suspicious sink exists yet. Use discovery skills first.
Rationalizations to Reject
| Rationalization | Why It Is Wrong | Required Action |
|---|---|---|
| "The scanner says high severity, so reachability is obvious" | Static findings need graph and code context before promotion | Bind the finding to a graph node and check entrypoint paths |
| "No entrypoint path means impossible" | It may mean parser, proxy, or dynamic dispatch limitations | Report 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 path | Treat 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 preconditions | Separate graph reachability from exploitability |
| "This is probably a chain" | Single-finding triage stops at one candidate | Hand 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
s
常见问题
它能确认漏洞可以被利用吗?
不能。它收集的是代码图证据,该技能说明在将问题定性为可利用之前,仍需要人工审查。
如果几个小问题组合成一个大问题怎么办?
该技能一次只处理一个发现。它指出,组合的攻击链需要另一种工作流程。
它需要 Trailmark 工具吗?
需要。它依赖 Trailmark 来构建代码图。
详情
作者的原始描述
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.
repo: trailofbits/skills
热度
- GitHub 星标
- 8.0k
- 排名
- #12732
- 许可证
- CC-BY-SA-4.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
audit-context-building
8.0k帮你的智能体在安全审查之前熟悉一个陌生的代码库,梳理每个函数的假设、保证和依赖关系。
algorand-vulnerability-scanner
8.0k帮你的智能体扫描 TEAL 或 PyTeal 编写的 Algorand 智能合约,检查 11 类常见安全问题,如重新密钥攻击和未校验费用。
audit-prep-assistant
8.0k帮你的智能体为外部安全审查做好代码准备,包括静态分析、测试覆盖、死代码清理和清晰的文档。
cairo-vulnerability-scanner
8.0k帮你的智能体扫描 StarkNet 上的 Cairo 智能合约,检查 6 类严重问题,包括算术溢出、有风险的跨层消息和签名重放。