skills/udecode/ustack/cleanup/Gen Agent Trust Hub

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, and du to perform disk usage audits and repository cleanup.\n- [CREDENTIALS_UNSAFE]: Scans repository directories for .env files to extract database connection strings, which may contain sensitive credentials for local Postgres servers.\n- [PERSISTENCE]: Capable of installing a launchd agent on macOS (specifically dev.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.mjs reads 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.detach command string specified in the .agents/pstack.json configuration file during worktree removal.
Audit Metadata
Risk Level
SAFE
Analyzed
Dec 2, 2026, 12:25 PM