file-watcher
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/file_watcher.pyusessubprocess.runwithshell=Trueto execute arbitrary shell commands passed via the--execargument. While functional for a file-watching utility, this provides a mechanism for executing code whenever file changes are detected. - [INDIRECT_PROMPT_INJECTION]: The skill monitors the file system for changes, creating an attack surface where external events (like file creation or modification) trigger automated shell command execution.
- Ingestion points: The script monitors the local file system using
os.walkandos.statinscripts/file_watcher.pyto detect changes. - Boundary markers: The script does not implement safety boundaries or user confirmation for each event-triggered execution; it runs the command automatically when the monitored state changes.
- Capability inventory: Includes directory traversal (
os.walk), file metadata retrieval (os.stat), and shell command execution (subprocess.run). - Sanitization: No validation or sanitization is performed on the trigger events or the command provided to the
--execargument.
Audit Metadata