/odin-native:rust-securityfrom ODIN Native
Audits Rust dependencies for vulnerabilities with cargo-audit, enforces license/source policies via cargo-deny, reviews RUSTSEC advisories, and fuzzes unsafe code for security.
Ships in ODIN Native. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Rust supply chain, dependency auditing, cargo-audit, cargo-deny, RUSTSEC, safe FFI, or fuzzing for security. |
| Authority | Read-only. Chat output only. No remote mutation. |
| Side effect | Emits a security audit report with findings and recommendations; does not modify source files. |
| Done | A report is emitted that lists vulnerabilities, policy violations, FFI risks, and recommended tools. |
cargo-audit, cargo-deny, cargo-fuzz, Miri, or manual review.cargo-audit. Install cargo-audit 0.22.2 with cargo install cargo-audit --locked, then run cargo audit. Use cargo audit --deny warnings, cargo audit --file Cargo.lock, or cargo audit --json for CI. The --format json and --format sarif options are also available. Done when: the audit output lists advisories or reports none.cargo-deny. Install cargo-deny 0.20.2 with cargo install cargo-deny --locked, run cargo deny init for a template, then run cargo deny check [advisories|licenses|bans|sources|all]. Configure deny.toml as shown below. Done when: the check runs and any policy violation is reported.[advisories]
yanked = "deny"
unmaintained = "workspace"
ignore = [
"RUSTSEC-2021-0145",
]
[licenses]
allow = [
"MIT",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
]
[bans]
multiple-versions = "warn"
wildcards = "deny"
deny = [
{ crate = "openssl", use-instead = "rustls" },
]
[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-git = [
"https://github.com/my-org/private-crate",
]
cargo audit or browse https://rustsec.org/. Classify advisories as vulnerability, unmaintained, or unsound. Done when: the advisory list and categories are known.extern "C" function, validate pointer and length arguments, document the C invariant, and prefer safe wrapper crates. Done when: each FFI entry point has explicit validation.cargo-fuzz with cargo install cargo-fuzz, run cargo fuzz init, cargo fuzz add <target>, and cargo fuzz run --sanitizer address <target>. Reproduce crashes with cargo fuzz run <target> <artifact>. Done when: a fuzz target runs or a crash is reproduced.cargo +nightly miri test on unsafe code. Use MIRIFLAGS="-Zmiri-disable-isolation -Zmiri-backtrace=full" when needed. Done when: Miri reports UB or completes cleanly.Cargo.lock for binaries, run cargo fetch --locked, review duplicates with cargo tree -d, consider cargo vet for peer-reviewing new dependencies, and use cargo-machete to find unused dependencies. Done when: the supply-chain state is reported.| Failure class | Behavior |
|---|---|
cargo-audit reports a vulnerability | Upgrade, ignore with a rationale, or replace the dependency. |
cargo-deny policy violation | Edit deny.toml or resolve the license, banned crate, or source issue. |
| FFI input cannot be validated | Add checks or change the C contract to require valid pointers and lengths. |
| Fuzz target finds no bugs | Let it run longer, add a seed corpus, or add a dictionary. |
| Miri reports unsupported FFI | Stub the foreign function under #[cfg(miri)]. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-native138 skills in this plugin
/abi-and-calling-conventionsUse when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Not for the Rust FFI binding layer: use rust-ffi./adc-dac-baremetalUse when configuring ADC sampling time, DMA-driven ADC, calibration, or DAC channel setup on bare-metal MCUs. Not for the DMA stream itself: use dma-baremetal./af-xdpUse when creating AF_XDP sockets, configuring UMEM and XSK rings, writing an XDP redirect program, or choosing copy versus zero-copy mode. Not for full kernel bypass: use dpdk.Other plugins' skills for the same job