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
dufor calculating directory sizes,trashfor moving files to the system bin,pgrepandosascriptfor managing application states, and package manager CLIs such asnpm,pip,uv, andbrewfor 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
~/Downloadsdirectory 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_downloadsfunction withinscripts/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_patternsdefined inconfig.jsonto ensure sensitive documents (legal, financial, personal) are never processed or exposed.
Audit Metadata