data-analyst
Pass
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/query.shutility wraps command-line database clients (sqlite3,psql,mysql) to execute queries. The script uses shell interpolation for the$queryand$DB_CONNECTIONvariables, which presents a risk of command injection if the AI agent constructs these values using untrusted or unvalidated input. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external sources such as SQL databases, CSV files, and Excel spreadsheets. This creates a vulnerability where malicious instructions could be embedded in the data being analyzed (e.g., in table rows or spreadsheet cells).
- Ingestion points:
scripts/query.sh(database results) andscripts/analyze_template.py(CSV/Excel loading). - Boundary markers: None identified; instructions do not advise the agent to treat data as untrusted.
- Capability inventory: Shell execution (
query.sh), Python execution (analyze_template.py), and file system writes. - Sanitization: None; the skill lacks filtering or escaping for external content before processing.
- [DYNAMIC_EXECUTION]: The
scripts/data-init.shscript dynamically generates a Python script (analyze_template.py) and useschmod +xto make it executable. While this is part of the workspace setup process, the runtime generation of executable code is a pattern that can be abused to execute arbitrary logic.
Audit Metadata