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.pycontaining 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.pyprovides capabilities for file deletion (shutil.rmtree,os.remove), moving to trash (osascripton macOS,SHFileOperationWon 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.runto execute various system utilities for scanning and filesystem interaction. - Evidence:
scripts/scan.pyexecutesdu,diskutil,sw_vers,uname, andsysctlto gather system and disk information. - Evidence:
scripts/server.pyexecutesosascriptto move files to the macOS Trash andopen/explorerto 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.pyprovides a/actionendpoint that deletes or moves files to the trash based on thetrash_pathslist 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