database-migrations-sql-migrations
Warn
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted user requirements via the
$ARGUMENTSplaceholder to generate sensitive database scripts and automation code. - Ingestion points: The
$ARGUMENTSvariable inSKILL.mdandresources/implementation-playbook.mdserves as the entry point for user-defined migration needs. - Boundary markers: No boundary markers or instructions are present to ensure the agent distinguishes between its instructions and potentially malicious requirements.
- Capability inventory: The skill is granted
Bash,Write,Edit, andReadtools, providing it the ability to create and execute the generated SQL, Python, and Shell scripts. - Sanitization: There is no evidence of sanitization or validation of the input provided through
$ARGUMENTS. - [DYNAMIC_EXECUTION]: The skill provides code templates in
resources/implementation-playbook.mdthat utilize unsafe string interpolation for SQL construction, which can lead to SQL injection vulnerabilities. - Evidence: The Python
ParallelMigratorclass demonstrates unsafe table name interpolation:f"INSERT INTO v2_{table_name} ..."andf"SELECT ... FROM {table_name}". - Evidence: The
validate_post_migrationfunction similarly interpolates table names directly into queries:f"SELECT COUNT(*) FROM {table['name']}". - [COMMAND_EXECUTION]: The skill includes a shell script template for database rollbacks that is susceptible to injection if parameters are not carefully controlled.
- Evidence: In
resources/implementation-playbook.md, therollback_migration.shscript uses shell variables$MIGRATION_VERSIONand$DATABASEdirectly in commands likepg_dump -d $DATABASEandpsql -d $DATABASE -f ...without validation or escaping.
Audit Metadata