caveman-compress
Pass
Audited by Gen Agent Trust Hub on Jun 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The orchestration script
scripts/compress.pyutilizessubprocess.run()to invoke theclaudecommand-line tool as a fallback authentication method when an API key is not explicitly provided in the environment. This execution is performed using a static argument list and does not invoke a shell, which mitigates the risk of command injection from external input. - [DATA_EXFILTRATION]: The skill's core functionality involves reading local files and transmitting their content to the Anthropic API for compression. While this is the intended behavior, the skill includes a significant security measure in
scripts/compress.pyvia theis_sensitive_pathfunction. This function uses a comprehensive list of regex patterns and keyword heuristics to detect and block the processing of files likely to contain secrets, such as.envfiles, SSH private keys, AWS credentials, and configuration files in sensitive directories like.sshor.aws. - [PROMPT_INJECTION]: An indirect prompt injection surface exists in
scripts/compress.pywhere the content of a user-provided file is interpolated directly into the compression prompt sent to the LLM. This could allow a maliciously crafted file to influence the LLM's behavior. - Ingestion points: External file content is read into the
original_textvariable inscripts/compress.pyusingPath.read_text(). - Boundary markers: The content is presented to the LLM after a
TEXT:label without the use of robust delimiters or escape sequences. - Capability inventory: The skill possesses the capability to read and overwrite files within the user's project directory.
- Sanitization: The risk is mitigated by the
is_sensitive_pathcheck which prevents processing of high-risk files, and a validation step inscripts/validate.pythat checks the compressed output against the original to ensure that critical structural elements like headings, code blocks, and URLs remain intact.
Audit Metadata