incomplete-refactor
Pass
Audited by Gen Agent Trust Hub on Nov 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/check_refactor.pyscript executes thegit ls-filescommand viasubprocess.runto list project files. This operation uses a static list of arguments and respects the project's version control configuration to avoid scanning ignored files. The target directory is normalized before execution to prevent argument-based attacks.\n- [INDIRECT_PROMPT_INJECTION]: The skill acts as a grep-like tool that reads and processes the content of local project files, which constitutes a potential attack surface if those files contain malicious instructions.\n - Ingestion points:
scripts/check_refactor.pyreads data from files within a user-specified root directory.\n - Boundary markers: The script identifies matches based on regex but does not wrap the ingested content in specific security delimiters.\n
- Capability inventory: Performs local file reading and executes the
gitbinary.\n - Sanitization: The search patterns are processed through
re.escape()to prevent regex injection. Furthermore, the script explicitly verifies that the resolved path of any symbolic link remains within the project's root directory usingPath.is_relative_to, effectively preventing path traversal.
Audit Metadata