postgres-pro
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/backup_pg.pyscript usessubprocess.runto execute system utilities such aspg_dump,psql, andpg_restorefor database management tasks. - [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: User-provided database names and backup names are passed to the management methods in
scripts/backup_pg.py. - Boundary markers: None present in the script logic.
- Capability inventory: The script possesses the capability to execute shell commands and interact with the database engine via
subprocess.runcalls topsql. - Sanitization: The
_create_databasemethod inscripts/backup_pg.pyuses string interpolation (f"CREATE DATABASE {database};") to build a command forpsql -c. This does not sanitize thedatabasevariable, allowing a malicious user to potentially inject SQL fragments if the input is not validated by the agent. - [PRIVILEGE_ESCALATION]: Documentation in
EXAMPLES.mdandREFERENCE.mdincludes instructions for usingsudoto perform necessary administrative tasks, such as modifying system configuration files (postgresql.conf) and managing the PostgreSQL service viasystemctl.
Audit Metadata