resume-foreign-session
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted historical transcripts from multiple third-party agents, which serves as a potential vector for indirect prompt injection attacks.
- Ingestion points: The
session_reader.pyscript reads JSONL and SQLite database files from various tool-specific directories, such as~/.claude/projects,~/.cursor/chats, and~/.agents/skills. - Boundary markers: The
SKILL.mdfile contains a detailed 'Safety boundary' section instructing the agent to treat foreign content as untrusted inert history. The script additionally prefixes every line of recovered text (e.g., with|) to prevent transcripts from forging the reader's own headers. - Capability inventory: The skill possesses capabilities to read local files, access SQLite databases, and execute the
zstdutility via subprocess calls. - Sanitization: The reader script uses
unicodedatato strip control characters, filters out sensitive or high-privilege roles (system, reasoning, thinking), and enforces output prefixing to maintain a visual and structural boundary. - [COMMAND_EXECUTION]: The
session_reader.pyscript executes thezstdutility to decompress Codex rollout files. - Evidence: In the
_read_codex_jsonlfunction,subprocess.run([executable, "-dc", str(path)], ...)is called. Theexecutableis resolved viashutil.which("zstd")and thepathis validated against a restrictive regex ensuring it targets expected rollout filenames.
Audit Metadata