rust-code-doctor
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes external command-line tools like
cargo,clippy, andgitviasubprocess.runinscripts/run_external_tools.pyandscripts/analyze_diff.py. This execution is the intended primary purpose of the tool, enabling it to provide deep analysis, and is implemented safely withshell=Falseand list-based arguments to prevent injection. - [DYNAMIC_EXECUTION]: The skill utilizes
importlib.import_moduleinscripts/runner.pyto dynamically load its internal detector modules. This is a standard architectural pattern for its multi-processed analysis engine and does not involve loading untrusted external code. - [INDIRECT_PROMPT_INJECTION]: The skill has a risk surface for indirect prompt injection as it ingests untrusted code from external Rust files in
scripts/rsproject.py. - Ingestion points: Reads
.rsandCargo.tomlfiles from the user's project directory. - Boundary markers: The reports generated in
scripts/format_findings.pyuse markdown tables and cards. Findings are escaped (e.g., pipe characters) to maintain document structure. - Capability inventory: Executes
cargo,git, and Python subprocesses. It also allows for optional execution of test suites (--run-tests) which involves running user-provided code. - Sanitization: Basic escaping is performed on code snippets before interpolation into the final report artifacts.
Audit Metadata