storage-analyzer-khazix
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes system-level commands to perform its core functions.
- Evidence:
scripts/scan.pyusessubprocess.runto calldu,diskutil,sw_vers, andunamefor gathering disk usage and system metadata. - Evidence:
scripts/server.pyusessubprocess.runto executeosascriptfor trashing files on macOS andopenorexplorerfor revealing files in the OS file manager. - [DYNAMIC_EXECUTION]: The skill implements a local HTTP server that performs file system modifications based on requests from the web-based report.
- Evidence:
scripts/server.pystarts aThreadingHTTPServeron127.0.0.1. It processes POST requests to/actionto perform file deletions or moves. - Mitigations: The server uses a random session token, validates the
Hostheader to prevent DNS rebinding, and strictly validates all target paths against an allowlist generated during the initial scan. It also enforces that operations are scoped to the user's home directory or the/Applicationsfolder. - [INDIRECT_PROMPT_INJECTION]: The skill processes uncontrolled file and directory names from the local disk, which could be exploited via indirect prompt injection.
- Ingestion points:
scripts/scan.pyreads file and directory names from the disk usingos.listdirandos.scandir. - Boundary markers: The agent is provided instructions to interpret the resulting JSON output and categorize items into priority tiers.
- Capability inventory:
scripts/server.pyprovides the capability to delete, trash, or open files within$HOMEbased on the agent's categorization. - Sanitization: The
scripts/server.pyutility uses realpath resolution and a session-based allowlist to ensure only items identified during the scan can be manipulated.
Audit Metadata