finding-duplicate-functions
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes multiple local shell scripts and relies on external system utilities including
ripgrep(rg) andjqto parse the codebase.\n- [INDIRECT_PROMPT_INJECTION]: The skill extracts raw source code and implementation context from user-provided directories and interpolates this data directly into prompts for subagents (haikuandopus).\n - Ingestion points:
scripts/extract-functions.shreads source files from the user-specified directory.\n - Boundary markers: The prompt templates in
scripts/categorize-prompt.mdandscripts/find-duplicates-prompt.mdlack explicit delimiters or instructions to ignore embedded instructions within the processed code snippets.\n - Capability inventory: The subagents are instructed to use the
Writetool, and the environment supports shell execution and file system access.\n - Sanitization: Implementation context is included in prompts without escaping or validation, potentially allowing code comments containing malicious instructions to influence the agent's behavior.
Audit Metadata