storage-analyzer

Pass

Audited by Gen Agent Trust Hub on Nov 16, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The agent processes filesystem metadata (directory and file names) to classify items into 'Green' (safe to auto-clear), 'Yellow', or 'Red' categories. There is a risk that maliciously crafted filenames could attempt to influence the agent's categorization logic during the analysis phase.
  • Ingestion points: The agent reads the JSON output from scripts/scan.py containing directory and file names.
  • Boundary markers: Absent. The skill does not explicitly instruct the agent to ignore instructions embedded in the processed path strings.
  • Capability inventory: scripts/server.py provides capabilities for file deletion (shutil.rmtree, os.remove), moving to trash (osascript on macOS, SHFileOperationW on Windows), and opening directories (open, explorer).
  • Sanitization: No specific sanitization or filtering is applied to filenames before they are presented to the agent for classification.
  • [COMMAND_EXECUTION]: The skill uses subprocess.run to execute various system utilities for scanning and filesystem interaction.
  • Evidence: scripts/scan.py executes du, diskutil, sw_vers, uname, and sysctl to gather system and disk information.
  • Evidence: scripts/server.py executes osascript to move files to the macOS Trash and open/explorer to reveal files in the system file manager.
  • [DYNAMIC_EXECUTION]: The skill implements a local API that performs destructive filesystem operations based on a JSON configuration generated dynamically by the AI agent.
  • Evidence: scripts/server.py provides a /action endpoint that deletes or moves files to the trash based on the trash_paths list populated by the agent in the analysis report.
  • Guards: The script implements several security controls: a random session token required for all POST requests, Host header validation to prevent DNS rebinding, and a realpath-based allowlist that restricts operations to the user's home directory and application folder.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 16, 2026, 12:35 AM