Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    PostgreSQL Config Security Audit

    by CashonlyTian

    1

    PostgreSQL configurations often ship with dangerous defaults or carry "quick fix" settings from tutorials that expose data to the public internet.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    PostgreSQL Config Security Audit

    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)

    CheckScoreStatus
    Overall Score2/100Grade: F, Risk: CRITICAL, 37 findings
    1. Network exposure — listen_addresses '*'0/15CRITICAL: Listening on all interfaces
    2. Authentication — trust auth in pg_hba.conf0/15CRITICAL: trust auth found
    3. Password hashing — md5, not SCRAM-SHA-2560/10CRITICAL: weak password hashing
    4. SSL encryption — SSL off0/10CRITICAL: no encryption in transit
    5. Data protection — fsync off0/10CRITICAL: durability off
    6. WAL durability — wal_level minimal0/10CRITICAL: minimal WAL
    7. Resource limits — no statement_timeout0/10WARNING: no statement timeout
    8. Logging — logging off0/10WARNING: no audit logging
    9. Secrets hygiene — passwords in primary_conninfo0/5CRITICAL: plaintext passwords found
    10. Crash recovery — full_page_writes2/5WARNING: 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

    CheckScoreStatus
    Overall Score100/100Grade: A, 0 findings
    All 10 checks15/15, 15/15, 10/10, 10/10, 10/10, 10/10, 10/10, 10/10, 5/5, 5/5PASS

    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_addresses set to * or public IPs and ensures unix sockets are outside /tmp.
    • Authentication Audit flags trust or md5 methods in pg_hba.conf and verifies scram-sha-256 encryption.
    • Data Protection Validation confirms fsync, full_page_writes, and wal_level settings 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_conninfo or archive_command strings.

    How it works

    1. Identify Path by providing the local directory containing the PostgreSQL configuration files.
    2. Execute Scan using the internal Python engine to parse files without connecting to a live database or the network.
    3. Review Scorecard to see the 0 to 100 score, letter grade, and risk level generated in the report.
    4. 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.conf rules 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    No, this skill operates as a static analyzer. It parses your `postgresql.conf` and `pg_hba.conf` files locally to identify risks without ever needing credentials or an active connection to your database.

    The skill provides a 0-100 security score, a letter grade (A-F), and a prioritized list of 'High', 'Medium', and 'Low' risk findings with specific instructions on how to remediate each issue.

    This skill is designed to work with standard PostgreSQL configuration formats (versions 9.6 through 16+) and is compatible with major AI agents that support local file system access and Python-based tools.

    While it scans for common misconfigurations like `trust` authentication and public network exposure, it does not audit internal database objects like user roles, row-level security policies, or specific SQL permissions.

    Yes, the tool is specifically designed to detect plaintext secrets or sensitive connection strings accidentally left in parameters like `primary_conninfo` or `archive_command`.

    New in LLM Ops