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 macOS launchd agent (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 in SKILL.md to treat session text as non-authoritative historical data.
  • [COMMAND_EXECUTION]: The sessiondex.py script uses subprocess.run to execute the zstd binary for log decompression when the zstandard Python module is not installed. Additionally, the setup script executes system-level commands like launchctl to 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 a redact() function with extensive regex patterns to scrub secrets (API keys, private keys, tokens) before they are stored in the local SQLite index.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 12, 2026, 01:01 PM