search-claude-sessions
Pass
Audited by Gen Agent Trust Hub on Oct 25, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides an interface to search through past session transcripts, which may contain instructions from previous interactions. This presents a potential surface for indirect prompt injection if the agent were to blindly follow instructions found in search results.
- Ingestion points: The script reads JSONL files containing session history from the local Claude Code project directories (e.g.,
~/.claude/projects/). - Boundary markers: The skill documentation includes an explicit warning to the agent: "Transcripts can hold secrets and personal content. Quote only what the current request needs, and never reproduce credentials found in a hit."
- Capability inventory: The capability is limited to searching and reading local transcript data. The script uses SQLite FTS5 for indexing and does not include functionality for network requests or arbitrary command execution beyond its own search parameters.
- Sanitization: The indexing logic uses regular expressions to remove
<system-reminder>tags from the transcripts before they are stored in the search index.
Audit Metadata