session-stash
Warn
Audited by Gen Agent Trust Hub on Sep 8, 2026
Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill's 'pop' mechanism involves a resuming agent reading a plaintext
AGENTS.mdfile located within the stash folder to self-orient and determine the loading sequence. This bootstrap router mechanism creates a surface for indirect prompt injection, as any agent or entity with write access to the repository could modify the plaintext instructions to influence the resuming agent's behavior. - Ingestion points: The
docs/session-stash/<name>/AGENTS.mdfile is the primary entry point for resuming agents. - Boundary markers: The skill defines a 'scrubbing contract' to minimize plaintext leakage but does not implement explicit delimiters to differentiate between system instructions and stashed session data during resumption.
- Capability inventory: The skill utilizes
Bash,git, andageencryption, providing significant control over the file system and repository state. - Sanitization: Relies on the agent to adhere to manual scrubbing guidelines when generating the plaintext router.
- [DATA_EXFILTRATION]: The skill systematically collects session transcripts, file diffs, and reference artifacts which frequently contain sensitive project data or credentials. These are then committed to the git repository. While the skill mandates the use of
ageencryption for these files, the process of moving sensitive context into version control constitutes a potential exfiltration path if the repository is accessible to unauthorized parties or if the encryption configuration is flawed. - [COMMAND_EXECUTION]: The skill uses the
Bashtool to execute shell commands for git operations, includinggit rev-parse HEADandgit diff, as well as invoking theageutility for encryption and decryption tasks. - [CREDENTIALS_UNSAFE]: The skill instructs the agent to 'use what you know of the user's secrets management first' to retrieve encryption keys from memory, prior sessions, or the environment. This encourages the agent to access and process credentials, which, although requiring operator confirmation, involves handling high-sensitivity information.
Audit Metadata