codify-to-knowhow
Warn
Audited by Gen Agent Trust Hub on Jul 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Direct shell command injection vulnerability in
phases/01-load-manifest.md. The variable${PACKAGE_PATH}is interpolated directly into a Bash block (package_path="${PACKAGE_PATH}") without escaping or sanitization, allowing arbitrary command execution if the path contains shell metacharacters like;or&. - [COMMAND_EXECUTION]: Multiple command injection vulnerabilities in
phases/03-generate-specs.md. Fields extracted from the JSON manifest (such asspec.title,spec.body,spec.keywords, andspec.category) are interpolated intoBash()tool calls forgrepand themaestro spec addcommand. An attacker providing a malicious manifest can escape the quoting to execute arbitrary code (e.g., setting a title to"; touch /tmp/pwned #). - [COMMAND_EXECUTION]: Potential command injection in
phases/04-index-verify.md. The variables${knowhowPaths}and${slug}are used in shell loops andgrepcommands without proper sanitization, which could be exploited if the manifest contains malicious strings. - [PROMPT_INJECTION]: Indirect prompt injection surface identified. The skill processes external data from
knowhow-manifest.jsonand uses it to drive its execution logic and content generation. - Ingestion points: Reads
knowhow-manifest.jsonfrom the path specified by the user/system inphases/01-load-manifest.md. - Boundary markers: None identified. Data is parsed and used directly.
- Capability inventory: The skill uses
Bash,Write, andEdittools to perform file system operations and execute CLI tools based on the manifest data. - Sanitization: No evidence of input validation, escaping, or sanitization was found for the data loaded from the manifest before its use in shell commands or file writes.
Audit Metadata