extracting-session-data
Warn
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
filter-sessions.shis vulnerable to shell command injection in thedate_to_timestampfunction, which processes the--sinceand--untilarguments. A maliciously crafted date string can break out of the command substitution and execute arbitrary shell commands with the user's permissions. - [INDIRECT_PROMPT_INJECTION]: The skill processes session logs that may contain untrusted data from previous agent interactions.
- Ingestion points: Session log files in
~/.claude/projects/are processed byextract-data.sh,filter-sessions.sh, andlist-sessions.sh. - Boundary markers: Absent. Data is returned as raw text without delimiters.
- Capability inventory: Read access to session logs; processing via shell utilities including
jq,grep,awk,sed,date,bc,stat, andduacross all scripts. - Sanitization: The skill uses
jqfor structural extraction but does not sanitize or escape the content of log messages.
Audit Metadata