codeguard-cpp
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill defines shell command templates for linting and formatting C++ code using local tools. Evidence:
SKILL.mdandreferences/tooling/toolchain.mdspecify the use ofclang-tidyandclang-formatviabash -cpipelines. Security Analysis: The commands utilizefind ... -print0andxargs -0, which is the recommended secure method for handling arbitrary filenames in shell scripts, preventing command injection via malicious file names. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process C++ source files which could contain malicious instructions. 1. Ingestion points: Local
.cpp,.hpp, and.ccfiles discovered in the project workspace. 2. Boundary markers: The skill relies on the agent to correctly substitute the{file}placeholder with validated paths and provides a structured output template. 3. Capability inventory: File read access and execution of local binary tools (clang-tidy,clang-format) via subprocesses. 4. Sanitization: The use of null-terminated strings (-print0and-0) in the shell pipeline serves as a technical control against injection during the file discovery and batch processing phase.
Audit Metadata