get-stock-image
Fail
Audited by Gen Agent Trust Hub on Jul 10, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script accepts a user-provided output file path (
out) and writes the downloaded image data to that location without any validation or path sanitization. This creates a path traversal vulnerability where an attacker could overwrite sensitive system files or configuration files (e.g.,~/.bashrc,~/.ssh/authorized_keys), potentially leading to unauthorized persistence or system instability.\n - Evidence:
get_stock.py - The
outargument is defined inargparseand used directly inopen(out, "wb")within the_downloadfunction.\n- [CREDENTIALS_UNSAFE]: The skill's credential loading logic searches for and reads API keys from multiple sensitive locations on the file system, including~/workspace/projects/n8n/.envand~/.env. Accessing environment files from other projects or the root of a user's home directory poses a significant risk of cross-project sensitive data exposure.\n - Evidence:
get_stock.py - The
_load_envfunction hardcodes paths to sensitive.envfiles in the user's home and workspace directories.\n- [EXTERNAL_DOWNLOADS]: The skill fetches image content and metadata from several established stock photo service providers, including Unsplash, Pexels, Pixabay, Wikimedia Commons, and Openverse.\n - Evidence:
get_stock.py - The functions
pexels,unsplash,pixabay,commons, andopenverseperform network requests to the official API domains of these well-known services.
Recommendations
- AI detected serious security threats
Audit Metadata