lov-clean-mac
Pass
Audited by Gen Agent Trust Hub on Aug 27, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/disk_optimizer.pyutilizessubprocess.runto execute system utilitiesdu(for accurate disk usage calculation) andrsync(for transactional file migration). These executions are implemented using argument lists rather than shell strings, effectively preventing command injection vulnerabilities. The commands are scoped to the skill's primary purpose of disk management. - [INDIRECT_PROMPT_INJECTION]: The skill represents a surface for indirect injection as it scans and processes local file system metadata (file and directory names).
- Ingestion points: The
inventorycommand inscripts/disk_optimizer.pyreads directory structures and file names to identify cleanup candidates. - Boundary markers: The skill uses structured JSON output for inventory and planning results, and relies on an explicit multi-step workflow (
inventory->plan->execute). - Capability inventory: The skill has the capability to move files to the Trash and delete specifically marked
.cleanupitems from the Trash. - Sanitization: The script includes a hardcoded
PROTECTED_PARTSlist that excludes sensitive directories (e.g.,.git,Keychains,Mail,Messages) and applies dual-path normalization (resolvedandlexical) to ensure file operations do not escape intended boundaries. - [SAFE]: The skill implements a 'transactional' migration model (Copy -> Verify -> Move to Trash -> Link), ensuring that source data is only removed after a successful integrity check. It also features a specific protection layer for application-managed recording workspaces (e.g., Screen Studio), preventing accidental deletion of project-critical metadata.
Audit Metadata