High-risk tools in Cargo
7 of the 12 tools in Cargo are classified as high risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at high risk
-
auditExecute 3/5Runs cargo audit and returns structured vulnerability data.
-
buildExecute 4/5Runs cargo build and returns structured diagnostics (file, line, code, severity, message).
-
clippyExecute 3/5Runs cargo clippy and returns structured lint diagnostics.
-
docExecute 3/5Generates Rust documentation and returns structured output with warning count.
-
fmtExecute 3/5Checks or fixes Rust formatting and returns structured output.
-
runExecute 4/5Runs a cargo binary and returns structured output (exit code, stdout, stderr).
-
treeExecute 3/5Displays the dependency tree for a Rust project.
Attacks that target this class
High-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.
More on Cargo
Enforce policy on Cargo
One command generates a policy scaffold for every server in your MCP config.
npx -y @policylayer/intercept init