text-truncator
Fail
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: HIGHDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The
scripts/text_truncator.pyfile contains atruncate_text_from_filemethod that reads files from arbitrary paths provided as arguments using theopen(file_path, 'r')command. This enables an agent to access and expose sensitive local files, such as SSH keys, AWS credentials, or configuration files, to its context. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted text input and file contents without sanitization or clear boundary markers, making it a surface for indirect prompt injection attacks.
- Ingestion points: Untrusted data enters the agent context via the
textargument intruncate_textand the content of files read viatruncate_text_from_file(scripts/text_truncator.py). - Boundary markers: None identified in the prompt instructions or code to distinguish between system instructions and processed content.
- Capability inventory: File system read access through the
truncate_text_from_filefunction inscripts/text_truncator.py. - Sanitization: No filtering or validation is performed on the input text before processing and outputting it.
Recommendations
- AI detected serious security threats
Audit Metadata