template-library
Fail
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: HIGHDATA_EXFILTRATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The
saveoperation defined inSKILL.mdexposes asource_fileparameter. The underlying scriptscripts/templates.pyreads the contents of this file directly without validating that the path is within a restricted or safe workspace. This capability allows an attacker or a malicious prompt to read arbitrary files from the agent's environment, such as.envfiles, SSH configurations, or system logs, and save them into the template library where they can be retrieved. - [COMMAND_EXECUTION]: The
scripts/templates.pyscript is vulnerable to path traversal through thenameargument. The template file path is constructed by joining the root directory, category, and the user-supplied name (e.g.,os.path.join(root, category, f"{name}.md")). Since thenameis not sanitized for directory traversal characters like.., it is possible to manipulate the target path for read (get), write (save/edit), and delete (delete) operations, although the forced.mdextension provides a minor constraint. - [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: The skill ingests untrusted content through
source_text,source_file, and templatevariablesduring thesaveanduseoperations. - Boundary markers: None. There are no delimiters or specific instructions to the agent to disregard commands or instructions embedded within the template data.
- Capability inventory: The skill can read arbitrary files and write files to the filesystem.
- Sanitization: No sanitization, escaping, or validation is performed on the content being saved to or read from templates, which could allow malicious instructions in a template to influence the agent's future behavior.
Recommendations
- AI detected serious security threats
Audit Metadata