postgres-advanced
Pass
Audited by Gen Agent Trust Hub on Apr 8, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes
subprocess.runto call thepg_dumputility for creating database backups. It adheres to security best practices by passing arguments as a list to prevent shell injection and enforcing a five-minute timeout. (Evidence:pg_tool/services/backup.py) - [COMMAND_EXECUTION]: The skill executes SQL queries provided by the agent via the
pg querycommand. To prevent unauthorized or destructive operations, it implements a heuristic safety scanner that blocks commands likeDROP,ALTER, andTRUNCATE, as well as multi-statement execution. (Evidence:pg_tool/services/safety.py,pg_tool/services/query.py) - [SAFE]: Database schema migrations are loaded dynamically using
importlib.import_moduleandpkgutil.iter_modules. This implementation is restricted to local modules within the specificpg_tool.migrationspackage, following standard patterns for plugin or migration management. (Evidence:pg_tool/migrations/__init__.py) - [SAFE]: Database connection credentials (DSN) are managed via the
PG_DSNenvironment variable. The skill documentation and implementation provide clear guidance on avoiding hardcoded secrets and leveraging environment-based configuration for secure state management. (Evidence:pg_tool/config.py,SKILL.md)
Audit Metadata