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 out argument is defined in argparse and used directly in open(out, "wb") within the _download function.\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/.env and ~/.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_env function hardcodes paths to sensitive .env files 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, and openverse perform network requests to the official API domains of these well-known services.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Jul 10, 2026, 11:25 PM