cleanup
Pass
Audited by Gen Agent Trust Hub on Dec 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Invokes multiple system binaries such as
git,docker,ps,lsof,df,find, andduto perform disk usage audits and repository cleanup.\n- [CREDENTIALS_UNSAFE]: Scans repository directories for.envfiles to extract database connection strings, which may contain sensitive credentials for local Postgres servers.\n- [PERSISTENCE]: Capable of installing alaunchdagent on macOS (specificallydev.ustack.cleanup-daily.plist) to execute cleanup scripts automatically at 05:30 daily.\n- [INDIRECT_PROMPT_INJECTION]: Analyzes untrusted data from Claude session transcripts and Codex rollout logs to identify active worktrees.\n - Ingestion points:
scripts/scan.mjsreads session and transcript files from the user's configuration and project directories.\n - Boundary markers: No specific delimiters or warnings used when processing the content of these logs.\n
- Capability inventory: File deletion, database dropping, and process termination.\n
- Sanitization: Generally uses argument lists for command execution; performs basic quote escaping for database names in SQL commands.\n- [DYNAMIC_EXECUTION]: Executes the
companion.detachcommand string specified in the.agents/pstack.jsonconfiguration file during worktree removal.
Audit Metadata