snippets
Warn
Audited by Gen Agent Trust Hub on Jul 8, 2026
Risk Level: MEDIUMDATA_EXFILTRATIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Path traversal vulnerability detected in
handler.js. Thenameparameter provided in user arguments is used directly inpath.join(lines 33 and 39) to construct filesystem paths. Because the input is not sanitized, an attacker can use..sequences to navigate out of the.snippetsdirectory and access other parts of the filesystem. - [DATA_EXFILTRATION]: Arbitrary file read capability. The traversal vulnerability in the
getcommand allows an attacker to read sensitive files such as.env, SSH keys, or cloud credentials (e.g.,run snippets get ../../../.aws/credentials) that the execution environment has access to. - [DATA_EXFILTRATION]: Unauthorized file modification. The
savecommand can be exploited via traversal to overwrite existing files or create files in unauthorized locations, which could be used to disrupt service or modify application logic. - [PROMPT_INJECTION]: Indirect prompt injection surface. The skill manages untrusted code snippets that are later retrieved into the agent's context without safety controls.
- Ingestion points: Snippet content is ingested via
args.trim().splitandparts.slice(2).joininhandler.js(lines 25-32). - Boundary markers: No delimiters or "ignore instructions" warnings are present when retrieving snippets.
- Capability inventory: Includes
fs.writeFileSyncandfs.readFileSyncoperations inhandler.jsacross the sandbox directory. - Sanitization: No sanitization or validation is performed on the snippet content or the snippet name before storage or retrieval.
Audit Metadata