session-audit
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes several shell commands (e.g.,
ls,grep,mktemp) and runs local Python and JavaScript scripts included in the package. - Evidence:
SKILL.mdcontains instructions for the agent to runpython3 -Ionsession_audit.pyand execute shell commands to locate transcripts. - Mitigation: The Python script is executed with the
-Iflag (isolated mode), which ignores environment variables and user site-packages, reducing the risk of environment manipulation. - [INDIRECT_PROMPT_INJECTION]: The skill processes historical session transcripts which could potentially contain malicious instructions embedded by previous tasks or external data source interactions recorded in those sessions.
- Evidence: The workflow in
workflow.jsinvolves readinguser_turns.txtand digest bundles in full to synthesize a report. - Mitigation: The skill implements strict
RULESfor the analyzing agents, explicitly forbidding network access, git operations, and tool output quoting. Ingestion points include~/.claude/projects/and data is processed through multiple sanitization steps (masking and clipping). - [SAFE]: The skill demonstrates high security maturity by implementing several defensive best practices for handling sensitive data.
- Evidence:
session_audit.pyusesos.umask(0o077)to ensure output directories are only readable by the current user. It includes a comprehensivemask()function using regex to redact private keys, API tokens, and credentials. It also features ascancommand to verify that no secret patterns remain in the final report before delivery. The skill specifically checks that the output directory is not inside a git repository to prevent accidental credential leakage into version control.
Audit Metadata