Works with the AI Agents you already use
PostgreSQL Config Security Audit
by CashonlyTian
PostgreSQL configurations often ship with dangerous defaults or carry "quick fix" settings from tutorials that expose data to the public internet.
$7
PostgreSQL Config Security Audit
Example session with this skill installed
Audit the PostgreSQL configuration files in the ./config directory for the 'FinTech-Core' project. Include my brand 'SecureOps' in the report.
- Read your context and instructions
- Compiled the postgresql config security
I have completed the security audit for the PostgreSQL configuration files located in ./config. The scanner ran 10 checks.
PostgreSQL Security Audit Results: FinTech-Core (unsafe demo)
| Check | Score | Status |
|---|---|---|
| Overall Score | 2/100 | Grade: F, Risk: CRITICAL, 37 findings |
| 1. Network exposure — listen_addresses '*' | 0/15 | CRITICAL: Listening on all interfaces |
| 2. Authentication — trust auth in pg_hba.conf | 0/15 | CRITICAL: trust auth found |
| 3. Password hashing — md5, not SCRAM-SHA-256 | 0/10 | CRITICAL: weak password hashing |
| 4. SSL encryption — SSL off | 0/10 | CRITICAL: no encryption in transit |
| 5. Data protection — fsync off | 0/10 | CRITICAL: durability off |
| 6. WAL durability — wal_level minimal | 0/10 | CRITICAL: minimal WAL |
| 7. Resource limits — no statement_timeout | 0/10 | WARNING: no statement timeout |
| 8. Logging — logging off | 0/10 | WARNING: no audit logging |
| 9. Secrets hygiene — passwords in primary_conninfo | 0/5 | CRITICAL: plaintext passwords found |
| 10. Crash recovery — full_page_writes | 2/5 | WARNING: partially configured |
Per-check scores sum to exactly 2/100.
Top 3 Prioritized Fixes
Restrict Network Access: Change listen_addresses from '*' to 'localhost' or a specific internal IP in postgresql.conf.
2. Stronger Auth: Remove trust lines from pg_hba.conf, replace md5 with scram-sha-256.
3. Enable SSL and fsync: Turn SSL on, set fsync on and wal_level to replica, and set statement_timeout.
The full visual scorecard has been generated as a score-card PNG and the detailed fix report is available in the fix report.
Clean demo — hardened config
| Check | Score | Status |
|---|---|---|
| Overall Score | 100/100 | Grade: A, 0 findings |
| All 10 checks | 15/15, 15/15, 10/10, 10/10, 10/10, 10/10, 10/10, 10/10, 5/5, 5/5 | PASS |
A hardened config scores 100/100, grade A, with 0 findings.
Connects securely to your tools. The creator never sees your data.
About this skill
PostgreSQL configurations often ship with dangerous defaults or carry "quick fix" settings from tutorials that expose data to the public internet. This skill audits postgresql.conf and pg_hba.conf files to identify critical vulnerabilities before they reach production.
What it does
- Network Exposure Analysis checks for
listen_addressesset to*or public IPs and ensures unix sockets are outside/tmp. - Authentication Audit flags
trustormd5methods inpg_hba.confand verifiesscram-sha-256encryption. - Data Protection Validation confirms
fsync,full_page_writes, andwal_levelsettings are configured for crash recovery. - Encryption Verification checks for active SSL, TLS version enforcement, and mandatory encryption for password traffic.
- Resource Hardening identifies missing query timeouts and unbounded connection limits that lead to DoS conditions.
- Secret Detection scans for plaintext passwords in
primary_conninfoorarchive_commandstrings.
How it works
- Identify Path by providing the local directory containing the PostgreSQL configuration files.
- Execute Scan using the internal Python engine to parse files without connecting to a live database or the network.
- Review Scorecard to see the 0 to 100 score, letter grade, and risk level generated in the report.
- Implement Fixes following the prioritized list, starting with high-impact network and auth changes.
Frameworks & tools
This skill analyzes standard PostgreSQL configuration formats. It uses a local Python-based parser to evaluate settings against a 10-point security framework.
Why this beats prompting it yourself
Generic prompts often miss subtle risks like insecure dynamic_library_path settings or weak WAL levels for replication. This tool provides a deterministic scoring system and a visual scorecard that ensures consistent auditing across different projects.
Use cases
- Audit a configuration file generated by an AI agent or found in a public repository.
- Verify production readiness for a self-hosted database instance.
- Generate security scorecards for client handovers or compliance documentation.
- Perform a final check on
pg_hba.confrules before deploying to the internet.
Known limitations
Does not audit live database state, roles, or grants. Only scans local postgresql.conf and pg_hba.conf files. Does not perform CVE version scans.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Only audits postgresql.conf and pg_hba.conf files. Does not connect to live databases. Skips files over 2 MB and ignores .git or node_modules directories.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 days ago
- Software
Python 3Pillow