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
-
auditExecuteRuns cargo audit and returns structured vulnerability data.
-
buildExecuteRuns cargo build and returns structured diagnostics (file, line, code, severity, message).
-
clippyExecuteRuns cargo clippy and returns structured lint diagnostics.
-
docExecuteGenerates Rust documentation and returns structured output with warning count.
-
fmtExecuteChecks or fixes Rust formatting and returns structured output.
-
runExecuteRuns a cargo binary and returns structured output (exit code, stdout, stderr).
-
treeExecuteDisplays 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.