db-query
Fail
Audited by Gen Agent Trust Hub on Jun 22, 2026
Risk Level: HIGHCREDENTIALS_UNSAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill explicitly instructs the agent to read application configuration files to obtain database credentials.
- Evidence: In
references/query-examples.md, the commandkubectl --context=<ctx-prod> exec -n <namespace> <pod> -- cat /app/dist/src/config/production.config.jsis provided to find thehost,user, andpassword. - [COMMAND_EXECUTION]: The skill uses high-privilege
kubectl execcommands to interact with remote application pods and execute code. - Evidence:
SKILL.mdandreferences/query-examples.mdprovide templates for runningkubectl execto read sensitive files and execute SQL queries vianode -e. - [COMMAND_EXECUTION]: SQL queries are constructed using unsafe string concatenation, which creates a significant risk of SQL injection.
- Evidence:
SKILL.mdstates "PgBouncer does NOT support parameterized queries — use inline SQL with quoted values." - Evidence: In
scripts/query.js, SQL strings for--describeand--existsare built using string interpolation:sql =SELECT ... WHERE table_name = '${opts.describe}'``. - [DATA_EXFILTRATION]: The skill reads sensitive information, including database credentials and production table data, from a protected cluster environment into the agent's context.
- [PROMPT_INJECTION]: The skill has an Indirect Prompt Injection surface where malicious data retrieved from a database could influence agent behavior.
- Ingestion points: SQL query results processed in
scripts/query.jsandreferences/query-examples.md. - Boundary markers: No delimiters or warnings are used to separate untrusted database content from instructions.
- Capability inventory: High-privilege access via
Bashtool andkubectl exec. - Sanitization: No evidence of escaping or validation of database content before presentation to the agent.
Recommendations
- AI detected serious security threats
Audit Metadata