sessiondex
Warn
Audited by Gen Agent Trust Hub on Nov 12, 2026
Risk Level: MEDIUMPERSISTENCEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [PERSISTENCE]: The skill includes an installation script (
scripts/install_schedule.sh) that configures a macOSlaunchdagent (com.sessiondex.index). This establishes a persistent background process that executes the indexing script hourly, maintaining activity outside of an active agent session. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted historical data from past agent conversations. This creates a surface for indirect prompt injection, where malicious instructions embedded in old logs could influence the agent's behavior during search or retrieval. The skill mitigates this by providing a
clean()function to strip metadata and by including explicit instructions inSKILL.mdto treat session text as non-authoritative historical data. - [COMMAND_EXECUTION]: The
sessiondex.pyscript usessubprocess.runto execute thezstdbinary for log decompression when thezstandardPython module is not installed. Additionally, the setup script executes system-level commands likelaunchctlto manage background services. - [DATA_EXFILTRATION]: The skill reads highly sensitive chat history files from several local directories (
~/.codex,~/.claude/projects,~/.pi/agent/sessions). These logs contain private user data and potential credentials. The skill implements aredact()function with extensive regex patterns to scrub secrets (API keys, private keys, tokens) before they are stored in the local SQLite index.
Audit Metadata