amazon aurora dsql
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes SQL statements from untrusted external sources, including database dumps, ORM migrations, and user-provided DDL. This represents a surface for indirect prompt injection where malicious instructions could be embedded in SQL comments or data structures to influence agent behavior.
- Ingestion points: SQL input, externally-sourced SQL files (pg_dump, ORM migrations) referenced in
SKILL.md. - Boundary markers: The skill mandates the use of
dsql_lintfor validation andsafe_query.build()for query construction. - Capability inventory: Direct SQL execution via MCP tools (
readonly_query,transact), local bash script execution (scripts/), and shell command execution viapsqlfallback. - Sanitization: Implements a SQL builder (
safe_query.py) that uses allow-lists and regex for values and dedicated identifier quoting for table/column names. - [COMMAND_EXECUTION]: The skill provides bash scripts in the
scripts/directory for cluster management (creation, deletion, listing) and bulk data loading. It also defines a fallback procedure that executes shell commands using theawsCLI to generate IAM authentication tokens and thepsqlclient for database connectivity. - [EXTERNAL_DOWNLOADS]: The skill references documentation and code samples from official AWS domains (
docs.aws.amazon.com) and theawslabsGitHub organization. These references target trusted vendor resources and are documented neutrally.
Audit Metadata