pytidb
Pass
Audited by Gen Agent Trust Hub on Mar 18, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill contains templates that represent surfaces for Indirect Prompt Injection, where untrusted data could influence agent behavior.
- Ingestion points: User-provided questions in
templates/text2sql.py, conversation history intemplates/memory_lib.py, and retrieved database context intemplates/rag.py. - Boundary markers:
templates/rag.pyuses visual delimiters (---------------------) in the prompt template to separate context from instructions. - Capability inventory: The skill scripts perform database queries (
db.query), record insertions (table.insert), and external LLM calls usinglitellmandopenai(all contained withintemplates/andscripts/). - Sanitization:
templates/text2sql.pyimplements anis_readonly_sqlcheck that validates if the query starts with read-only keywords like SELECT, SHOW, or DESCRIBE. - [COMMAND_EXECUTION]: The
templates/text2sql.pyscript executes dynamic SQL generated by an external LLM. - Evidence: The script calls
db.query(sql)on the string generated by the OpenAI API. - Mitigation: The implementation includes a mandatory human-in-the-loop confirmation step (
input("Execute this query? [y/N] ")) before any generated SQL is sent to the database.
Audit Metadata