data-analysis

Fail

Audited by Gen Agent Trust Hub on Apr 28, 2026

Risk Level: HIGHCOMMAND_EXECUTIONDATA_EXFILTRATIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The scripts/analyze.py script accepts an unsanitized --output-file parameter. The script uses os.makedirs(os.path.dirname(output_file), exist_ok=True) and then writes data to the specified path, allowing for arbitrary file creation or overwriting of sensitive system files (e.g., ~/.bashrc) if the agent is directed to do so.
  • [DATA_EXFILTRATION]: The skill allows the agent to execute arbitrary SQL queries via the --sql parameter passed to scripts/analyze.py. DuckDB's engine can be used to read any local file the agent has access to by using SQL functions like read_csv_auto(), read_json_auto(), or read_blob(), potentially exposing credentials or private data.
  • [COMMAND_EXECUTION]: The Python script uses os.system() to execute shell commands for installing missing dependencies (duckdb and openpyxl). While these are well-known packages, runtime execution of shell commands for environment modification is a security risk.
  • [EXTERNAL_DOWNLOADS]: The script automatically runs INSTALL spatial; LOAD spatial; within DuckDB. This command triggers a download of the spatial extension from remote DuckDB servers at runtime.
  • [PROMPT_INJECTION]: The SKILL.md file contains a 'NOTE' explicitly instructing the agent: 'Do NOT read the Python file, just call it with the parameters.' This is a concealment pattern designed to prevent the agent from auditing the script's behavior or identifying the security flaws mentioned above.
  • [PROMPT_INJECTION]: The documentation includes an 'Enhanced Capabilities (v2.0)' section claiming support for advanced features like forecast, anomaly, and cluster. However, the provided scripts/analyze.py code does not implement any of these actions, representing deceptive metadata regarding the skill's actual functionality.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Apr 28, 2026, 01:27 AM
Security Audit — agent-trust-hub — data-analysis