Skills

Rust Review

Performs comprehensive Rust security review for safe/unsafe boundary issues, memory...

Install

npx skills add trailofbits/skills --skill rust-review -g -a claude-code -y
Repository
trailofbits/skills7.9k
Category
Security
Updated
7d ago
License
CC-BY-SA-4.0
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Performs comprehensive Rust security review for safe/unsafe boundary issues, memory safety in unsafe blocks, concurrency hazards, panic-induced DoS, FFI safety, and async runtime mistakes. Use when auditing Rust crates, services, or libraries, particularly those with `unsafe`, FFI, or concurrent code.

Rust Security Review

Runs in the main conversation (invoke via /rust-review:rust-review). Orchestrator owns the Task* ledger as bookkeeping for retries; workers and judges have no Task tools. Workers and judges are named plugin subagents (rust-review:rust-review-worker, rust-review:rust-review-dedup-judge, rust-review:rust-review-fp-judge); tool sets are declared in plugins/rust-review/agents/*.md. Findings are exchanged via markdown-with-YAML files in a shared output directory.

When to Use

Rust application/library security review: safe/unsafe boundary auditing, memory safety in unsafe blocks, concurrency hazards, panic-induced DoS on servers, FFI safety, async-runtime mistakes.

When NOT to Use

  • Pure-C / pure-C++ codebases, use c-review instead.
  • Smart contracts (Solana programs / NEAR contracts / Ink!), use solana-vulnerability-scanner or the contract-specific skill.
  • Kernel-mode Rust drivers without userspace allocator, coverage is incomplete; flag as advisory only.
  • Secrets/key memory hygiene (zeroization, Zeroize/ZeroizeOnDrop/secrecy usage, lingering stack/heap copies), use the zeroize-audit skill; rust-review does not cover memory zeroization.

Subagents

Subagent typePurposeTool set
rust-review:rust-review-workerRun assigned cluster, write findingsRead, Write, Edit, Bash
rust-review:rust-review-dedup-judgeMerge duplicates (runs first)Read, Write, Edit, Glob
rust-review:rust-review-fp-judgeFP + severity + final reports (runs second)Read, Write, Edit, Bash
Read the whole SKILL.md on GitHub

More in Security