device-assistant
Warn
Audited by Gen Agent Trust Hub on Aug 19, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: Path traversal vulnerability in
scripts/handler.sh. Thesearch_error_codefunction constructs a cache file path using themanufacturer,model, anderror_codevariables without sanitizing for directory traversal characters (e.g.,../). This allows an attacker to potentially read or overwrite.jsonfiles outside the intended cache directory when the agent performs an error lookup. Evidence inscripts/handler.sh:cache_key=$(echo -n "${manufacturer}-${model}-${error_code}" | tr ' ' '-' | tr '[:upper:]' '[:lower:]')followed bycache_file="$CACHE_DIR/error-${cache_key}.json"andcat "$cache_file". - [PROMPT_INJECTION]: Vulnerability to indirect prompt injection. The skill stores user-provided device metadata such as nicknames and notes in
devices.jsonand later retrieves and displays this information to the agent without sanitization or boundary markers. A malicious user could store instructions in these fields that target the agent when it later retrieves device information. 1. Ingestion points:addandupdatecommands inscripts/handler.shaccepting arbitrary JSON data. 2. Boundary markers: Absent in the output generated by theinfoandlistcommands. 3. Capability inventory: The skill has file system read/write access and shell execution capabilities. 4. Sanitization: No sanitization or validation of string fields against prompt injection patterns.
Audit Metadata