generating-stored-procedures
Pass
Audited by Gen Agent Trust Hub on Oct 30, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes Python scripts (
database_connection_test.pyandstored_procedure_deployer.py) that utilizesubprocess.runto execute standard database CLI tools (psql,mysql, andsqlcmd). These commands are constructed using list-based arguments, which is a secure practice that prevents shell command injection. The scripts facilitate database connectivity tests and the deployment of SQL procedures as part of the skill's core functionality.- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process and deploy user-provided SQL code, which represents a potential attack surface for indirect prompt injection. However, this is mitigated by the inclusion of a syntax validator script (stored_procedure_syntax_validator.py) and comprehensive security guidelines provided inreferences/database_security_guidelines.md. The validator performs static analysis to flag risky patterns like dynamic SQL and lack of schema qualification. - Ingestion points: SQL files provided by the user are read by the validation and deployment scripts in the
scripts/directory. - Boundary markers: The skill does not use specific boundary markers for SQL content but relies on the agent's interpretation and the bundled validation tools.
- Capability inventory: The skill has the ability to execute SQL against a database via
psql,mysql, orsqlcmdthrough thesubprocesscalls in the bundled scripts. - Sanitization: The
stored_procedure_syntax_validator.pyscript provides a layer of sanitization by checking for common security pitfalls and bad practices in the SQL code before deployment.
Audit Metadata