querying-local-postgres
Pass
Audited by Gen Agent Trust Hub on Jun 24, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the
Bashtool to executepsqlfor database interactions. This is the intended and primary function of the skill. - [EXTERNAL_DOWNLOADS]: The skill uses
npx dotenvto load environment variables. This may involve fetching thedotenv-clipackage from the npm registry, which is a well-known and trusted package repository. - [CREDENTIALS_UNSAFE]: The documentation includes a hardcoded connection string (
postgres://posthog:posthog@localhost:5432/posthog). These are the default, well-documented credentials for the PostHog local development environment (typically running via Docker Compose) and do not represent a compromise of sensitive or production information. - [PROMPT_INJECTION]: The skill processes user-supplied input via
$ARGUMENTSto generate SQL queries. This vulnerability surface is well-mitigated by the mandatory use ofPGOPTIONS='-c default_transaction_read_only=on', which ensures the database engine itself rejects any modification attempts, regardless of the generated SQL content.
Audit Metadata