disk-cleanup

Pass

Audited by Gen Agent Trust Hub on Nov 12, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes various system and development utilities to perform its cleanup functions. This includes du for calculating directory sizes, trash for moving files to the system bin, pgrep and osascript for managing application states, and package manager CLIs such as npm, pip, uv, and brew for clearing internal caches. All subprocess calls use list-based arguments, which avoids shell injection vulnerabilities, and the operations are consistent with the skill's stated purpose of disk maintenance.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data by scanning file names in the ~/Downloads directory to identify old files. This presents a potential surface for indirect injection if a filename were to contain malicious instructions intended for the agent. The skill mitigates this risk through specific design choices.
  • Ingestion points: File names are read from the file system in the scan_downloads function within scripts/lib.py.
  • Boundary markers: The agent is explicitly instructed to provide a compressed summary rather than a full data dump, which helps maintain context boundaries.
  • Capability inventory: The skill possesses the capability to execute maintenance commands and move files to the Trash, but does not have arbitrary network or system modification access.
  • Sanitization: Filenames are filtered through a comprehensive list of exclude_patterns defined in config.json to ensure sensitive documents (legal, financial, personal) are never processed or exposed.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 12, 2026, 01:01 PM