repomix
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/repomix_batch.pyscript usessubprocess.runto execute therepomixCLI tool andnpx. While the script uses list-based command construction to mitigate traditional shell injection, it allows the execution of external binaries and presents a risk of argument injection if repository paths or glob patterns are maliciously crafted. - [CREDENTIALS_UNSAFE]: The
EnvLoaderclass inscripts/repomix_batch.pyis designed to search for and parse.envfiles from multiple levels of parent directories, including paths that may map to the agent's internal configuration directories (e.g.,../../../.envrepresenting.claude/.env). This behavior can inadvertently load and expose sensitive host credentials into therepomixprocess environment. - [INDIRECT_PROMPT_INJECTION]: The skill's primary functionality is to process data from external local or remote repositories, which serves as a vector for indirect prompt injection if the packaged code contains malicious instructions intended for the analyzing LLM.
- Ingestion points: Files are read from local paths or fetched from remote repository URLs via
scripts/repomix_batch.pyand therepomixCLI. - Boundary markers: The skill documentation in
SKILL.mdspecifies thatrepomixuses AI-optimized separators and XML-like tags to delimit files, which provides some structure but is not a foolproof security boundary. - Capability inventory: The skill can read arbitrary files, perform network requests to fetch remote repos, and write packaged files to the local filesystem.
- Sanitization: The skill incorporates Secretlint for sensitive data detection, but this feature can be bypassed using the
--no-security-checkflag specified inSKILL.mdandscripts/repomix_batch.py.
Audit Metadata