db-pr-battery
Warn
Audited by Gen Agent Trust Hub on Jul 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/battery.shexecutes the string values of the--gen-typesand--reset-cmdarguments directly in a shell context. This allows for arbitrary command execution if an attacker can influence the parameters passed to the script. - [PROMPT_INJECTION]: The skill ingests and executes SQL from migration and test files, creating a surface for indirect prompt injection. 1. Ingestion points: Database migration files (
$MIGRATION) and pgTAP test files ($TESTS) processed inbattery.sh. 2. Boundary markers: No boundary markers or instructions to ignore embedded commands are present. 3. Capability inventory: Database access viapsqland shell command execution via theGEN_TYPEShook. 4. Sanitization: External file content is passed directly to execution tools without validation or filtering. - [COMMAND_EXECUTION]: The script performs directory operations (
mkdirandrmdir) on a file path provided via the--lockargument, which could be leveraged to create or remove directories in unintended locations if the path is not properly validated.
Audit Metadata