---
title: "Rust source analyzer: review, role & definition · Undominated.ai"
canonical: https://undominated.ai/agents/trailofbits-2b-rust-source-analyzer/
description: "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."
---

# Rust source analyzer: review, role & definition · Undominated.ai

> 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.

[← Explore all agents](/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.

 [Use this definition ↓](#setup)[Original source ↗](https://github.com/trailofbits/skills/tree/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/zeroize-audit/agents)

SOURCE REVIEW

 Reviewed 2026-10-14
 Evidence 4 linked sources
 Publisher Trail of Bits
 Licence [CC-BY-SA-4.0 ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE)
 Revision 8e54050ae63c
 [Read what was—and wasn’t—checked ↓](#review)

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

 [Trail of Bits · upstream description ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/zeroize-audit/agents/2b-rust-source-analyzer.md) Our analysis follows below.

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.

### A good fit for

 - One Rust crate whose Cargo.toml path is supplied by the zeroize-audit orchestrator, when shared source-analysis JSON may already hold C or C++ entries

### Weigh up before choosing

 - This review did not execute the resource.
- A Markdown profile does not register a native subagent by itself.
- The install line adds the trailofbits/skills marketplace. It does not install the zeroize-audit plugin or this agent by itself.
- The reference file named for pattern entries was not opened. This review did not check that a weak match stays in the written JSON.
- The never-downgrade sentence is about a weak match to a reference entry. A later sentence downgrades a token-scanner hit that lacks a sensitive name nearby. Those are different checks.

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 ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/README.md)

DOCUMENTED COMMAND

 /plugin marketplace add trailofbits/skills Copy command ↗

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

 - The README's Claude Code section is that line, then /plugin menu to browse plugins.
- 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.
- 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

### Compatibility

Claude Code · Codex

### Implementation

rust

### Crate reader that merges shared JSON and does not replace C or C++ map entries

 - Read the crate and the orchestrator-supplied Cargo.toml path
- Append Rust entries to the shared source-analysis JSON
- Do not overwrite existing C or C++ TU-map entries

### Cost model

CC-BY-SA-4.0; no price is stated for this agent, and it was not run

04 / FOLLOW THE EVIDENCE

## The source trail.

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

 - [2b-rust-source-analyzer ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/zeroize-audit/agents/2b-rust-source-analyzer.md) Checked 2026-10-14 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
- [zeroize-audit README ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/zeroize-audit/README.md) Checked 2026-10-14 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
- [Repository README ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/README.md) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/README.md Supports: marketplace install line, Codex compatibility, and the zeroize-audit row
- [Repository LICENSE ↗](https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE) Checked 2026-10-14 https://github.com/trailofbits/skills/blob/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE Supports: Attribution-ShareAlike 4.0 International

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Rust review dedup judge ↗ Pins the rust-review dedup judge that merges only obvious duplicates, aborts when the finding list cannot be loaded, and does not declare a shell.](/agents/trailofbits-rust-review-dedup-judge/)[### Rust review FP judge ↗ Pins the rust-review judge that runs after dedup, aborts when it cannot obtain a finding list, and must not invent the SARIF file.](/agents/trailofbits-rust-review-fp-judge/)[### Rust review worker ↗ Pins the rust-review worker that aborts a malformed or primer spawn, writes findings only inside its scope root, and does not filter them by severity.](/agents/trailofbits-rust-review-worker/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Find reusable instructions](/skills/)
- [Inspect connections](/mcp-servers/)
- [Build a toolkit](/tools/)
- [Choose the model](/compare/)
