← Explore all agents

SECURITY REVIEW / Trail of Bits

Rust source analyzer

Pins the zeroize-audit Rust source analyzer that keeps a weak reference match, merges shared JSON without replacing C or C++ entries, and continues after rustdoc failure.

“A Rust source analyzer that keeps a weak reference match, refuses to overwrite C or C++ map entries, and continues after rustdoc failure.”

01 / THE REASONING

Why this made the selection.

  • The agents index has no entry for plugins/zeroize-audit/agents/2b-rust-source-analyzer.md.
  • The file refuses to drop a weak reference match, and it refuses to overwrite existing C or C++ entries when it merges tu-map.json.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • plugins/zeroize-audit/agents/2b-rust-source-analyzer.md
  • plugins/zeroize-audit/README.md
  • README.md
  • LICENSE

Our findings

  • Rustdoc failure is written to the notes, the semantic audit is skipped, and the dangerous-API scan still runs.
  • A weak match to a reference entry is kept as needs_review. The file says a finding left out of this step cannot be recovered later.
  • A check with no reference entry must use that check's own detail. Borrowing a neighbouring entry's snippet is rejected because it would describe the wrong flaw.
  • The TU map is read and merged. Existing C or C++ entries are not overwritten. A crate key is added only when at least one sensitive Rust object was found.
  • A missing or failed script writes a status-bearing error object with an empty findings array, and the agent continues. Rust object ids start at SO-5000 so they do not collide with C or C++ ids.

Not established by this review

  • The resource was not executed and its tools were not called.
  • No crate, rustdoc JSON, or shared findings file was supplied.
  • The pattern reference and the two scanner scripts were not opened.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Use the role in your project.

Upstream setup instructions ↗

DOCUMENTED COMMAND

/plugin marketplace add trailofbits/skills

Copying does not execute this command. It may retrieve a newer version than the reviewed source.

  1. The README's Claude Code section is that line, then /plugin menu to browse plugins.
  2. The same README names zeroize-audit as the plugin for missing or compiler-eliminated secret zeroization in C, C++, and Rust. The marketplace command does not install that plugin or this agent by itself.
  3. The Codex section uses codex plugin marketplace add trailofbits/skills and a placeholder plugin name, so that line is not install.command.

Before you start

  • Claude Code or Codex marketplace support
  • The orchestrator inputs named in the file, including an absolute Cargo.toml path

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. 2b-rust-source-analyzer ↗Checked

    https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/zeroize-audit/agents/2b-rust-source-analyzer.md

    Supports: weak-match retention, rustdoc-failure continuation, and no overwrite of C or C++ map entries

  2. zeroize-audit README ↗Checked

    https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/zeroize-audit/README.md

    Supports: this agent is the Rust source pass and is skipped when no Cargo manifest is supplied

  3. Repository README ↗Checked

    https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/README.md

    Supports: marketplace install line, Codex compatibility, and the zeroize-audit row

  4. Repository LICENSE ↗Checked

    https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE

    Supports: Attribution-ShareAlike 4.0 International

Evidence & Ask