rust-review
O que ela faz
Esta skill faz o agente verificar programas Rust em busca de fraquezas de segurança, especialmente onde o código sai das regras de segurança do Rust. É para desenvolvedores e revisores de segurança que trabalham com crates e serviços Rust.
Quando usar
- ✓Quando você audita uma biblioteca ou serviço Rust que usa código unsafe.
- ✓Quando você verifica um projeto Rust que conversa com código C ou outras interfaces externas.
- ✓Quando você precisa encontrar riscos de pânico, como panics que um usuário poderia disparar em um servidor.
Link da skill
https://github.com/trailofbits/skills/blob/main/plugins/rust-review/skills/rust-review/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Preciso de uma revisão de segurança do meu projeto Rust, especialmente dos blocos unsafe e dos bindings de C.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente divide o código em grupos e entrega cada um a um trabalhador que lê o código e escreve achados. Juízes depois removem duplicatas e verificam falsos alarmes antes de a lista final ser feita.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
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-reviewinstead. - Smart contracts (Solana programs / NEAR contracts / Ink!) — use
solana-vulnerability-scanneror 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/secrecyusage, lingering stack/heap copies) — use thezeroize-auditskill; rust-review does not cover memory zeroization.
Subagents
| Subagent type | Purpose | Tool set |
|---|---|---|
rust-review:rust-review-worker |
Run assigned cluster, write findings | Read, Write, Edit, Bash |
rust-review:rust-review-dedup-judge |
Merge duplicates (runs first) | Read, Write, Edit, Glob |
rust-review:rust-review-fp-judge |
FP + severity + final reports (runs second) | Read, Write, Edit, Bash |
Tools come from each agent's frontmatter at spawn time. The orchestrator's Task*/Agent/Bash/etc. come from this skill's allowed-tools. Search-tool / Bash interaction: in current Claude Code, an agent granted Bash is not also granted the dedicated Glob or Grep tools (the calls return No such tool available; the harness expects find/grep/rg via Bash instead). So only the dedup-judge — the one agent that holds no Bash — uses Glob; the worker, fp-judge, and the orchestrator resolve and search paths with Read / Bash find / rg / grep / test -f instead. Because the cluster/finder prompt seeds are written in ripgrep regex syntax (\s, \d, \b), Bash-holding agents must run them with rg. If rg is not installed its call fails loudly (command not found) — fall back to grep -E with POSIX classes (\s→[[:space:]], \d→[[:digit:]], drop \b), never a raw-\s grep whose silent empty becomes a bad cleared. Do not reintroduce Glob/Grep into a Bash-holding agent's protocol.
Architecture
coordinator: write context.md → build_run_plan.py → TaskCreate × M
→ spawn primer (foreground) → spawn M workers (parallel)
→ classify Phase-7 outcomes + write findings-index.txt
→ dedup-judge → fp-judge → report safety net (SARIF + REPORT.md) → return REPORT.md
Output directory contains: context.md, plan.json, worker-prompts/, findings/, findings-index.d/ (per-worker shards), findings-index.txt, coverage/ (per-worker coverage-gate files), run-summary.md, dedup-summary.md, fp-summary.md, REPORT.md, REPORT.sarif.
Path convention: every later phase shells out to ${RUST_REVIEW_PLUGIN_ROOT}/scripts/*.py, so resolve that variable first to the plugin directory that contains prompts/clusters/unsafe-boundary.md (and scripts/build_run_plan.py). Try in order, first hit wins:
- Native Claude Code —
${CLAUDE_PLUGIN_ROOT}, accepted ifBash: ls "${CLAUDE_PLUGIN_ROOT}/prompts/clusters/unsafe-boundary.md"resolves. - Codex —
${CODEX_PLUGIN_ROOT}(set it the same way if that var is present and resolves the marker). - Fallback search — covers Codex installs under
~/.codex, Claude installs under~/.claude, and a local checkout / repo run:Bash: find ~/.claude ~/.codex . -path '*/plugins/rust-review/prompts/clusters/unsafe-boundary.md' -print -quit 2>/dev/null. Take the match and strip the trailing/prompts/clusters/unsafe-boundary.mdto get the root (the home dirs are searched before.so an installed copy wins over any vendored copy in the audited repo).
Set RUST_REVIEW_PLUGIN_ROOT to the resolved root. If all three fail, abort with a message naming the roots searched — do not enter Phase 4 with an empty variable (every `uv run --no-project "${RUST_REVIEW_PLUGIN_ROOT}/scripts
Perguntas frequentes
Cobre código C ou C++ também?
Não. Para projetos puros em C ou C++, a skill sugere uma ferramenta de revisão diferente.
Cobre como segredos são apagados da memória?
Não. Limpar segredos da memória é tratado por outra skill.
Consegue revisar drivers de kernel?
Apenas como orientação. A cobertura é incompleta para Rust em modo kernel, então os resultados são marcados como consultivos.
Detalhes
Descrição original do autor
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.
repo: trailofbits/skills
Popularidade
- Estrelas no GitHub
- 8,0 mil
- Posição no ranking
- #12703
- Licença
- CC-BY-SA-4.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
audit-context-building
8,0 milAjuda seu agente a conhecer uma base de código desconhecida antes de uma revisão de segurança, mapeando o que cada função assume, garante e depende.
algorand-vulnerability-scanner
8,0 milAjuda seu agente a analisar contratos inteligentes da Algorand, escritos em TEAL ou PyTeal, em busca de 11 problemas comuns de segurança, como ataques de rekeying e taxas não verificadas.
audit-prep-assistant
8,0 milAjuda seu agente a preparar uma base de código para uma revisão de segurança externa, com análise estática, cobertura de testes, limpeza de código morto e documentação clara.
cairo-vulnerability-scanner
8,0 milAjuda seu agente a analisar contratos inteligentes em Cairo na StarkNet em busca de 6 problemas graves, incluindo estouro aritmético, mensagens arriscadas entre camadas e replay de assinatura.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.