disk-cleaner
Fail
Audited by Gen Agent Trust Hub on Oct 5, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/mole_cleaner.pycontains a method to install the Homebrew package manager using a shell subshell to download and run a script fromraw.githubusercontent.com. While this involves executing remote code, the source is the official Homebrew repository, a well-known service for macOS developers. - [INDIRECT_PROMPT_INJECTION]: The skill's report generation logic in
scripts/mole_cleaner.pydisables Jinja2's automatic HTML escaping. This creates a vulnerability surface where filenames on the disk could be crafted to include malicious JavaScript, leading to an XSS vulnerability when the generated HTML report is opened. - Ingestion points: File paths and directory metadata retrieved from the system via the
moutility and read into the report data structures. - Boundary markers: None identified; data is interpolated directly into templates.
- Capability inventory: The script possesses capabilities for local file writing and executing system commands via the
subprocessmodule. - Sanitization: Filenames are not sanitized or escaped; autoescaping is explicitly disabled in the template environment.
- [COMMAND_EXECUTION]: The skill uses
subprocess.runto interact with various system utilities such asdfandmofor disk monitoring and cleaning operations. - [EXTERNAL_DOWNLOADS]: The skill automates the download of the Homebrew installation script from its public GitHub repository.
Recommendations
- HIGH: Downloads and executes remote code from: https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh - DO NOT USE without thorough review
Audit Metadata