autorag-query
Pass
Audited by Gen Agent Trust Hub on Mar 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a local Python script (
query_executor.py) using theuv runcommand to perform database operations. - [PROMPT_INJECTION]: The skill implements a Text-to-SQL workflow which is vulnerable to indirect prompt injection. A user could potentially craft natural language inputs designed to influence the generated SQL query.
- Ingestion points: User-provided natural language queries are processed by the agent to generate SQL code.
- Boundary markers: The
SKILL.mdfile provides clear instructions to the agent to only generateSELECTstatements and exclude specific columns. - Capability inventory: The skill has the capability to execute SQL queries via
sqlalchemyand read theschema.sqlreference file. - Sanitization: The
query_executor.pyscript includes avalidate_queryfunction that checks for forbidden DDL/DML keywords (e.g.,DROP,DELETE,INSERT) and dangerous system functions. It also wraps queries in a subquery to enforce aLIMITand uses execution timeouts.
Audit Metadata