database-testing
Pass
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The provided code examples demonstrate an attack surface where data retrieved from a database is used to construct shell commands.
- Ingestion points: In
references/migration-tests.md, a query retrieves themigration_namefrom the_prisma_migrationstable. - Boundary markers: The code does not use boundary markers or delimiters when interpolating the database value into the shell command string.
- Capability inventory: The script uses
execSyncfrom thenode:child_processmodule to execute commands on the host system. - Sanitization: There is no evidence of sanitization, escaping, or validation of the
latestvariable before it is used to build the command string forpsql. - [COMMAND_EXECUTION]: The skill's reference files contain numerous instances of shell command execution to interface with database CLI tools.
- Evidence:
references/migration-tests.mdusesexecSyncto runnpx prisma migrate deploy,psql, andpg_dumpcommands for migration testing and schema snapshotting.
Audit Metadata