Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Nginx Config Security Audit

    by CashonlyTian

    1

    Deploying a misconfigured Nginx server can expose sensitive environment variables, internal services, and unencrypted user credentials.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Nginx Config Security Audit

    Nginx Config Security Audit

    Example session with this skill installed

    Audit the Nginx configuration files located in the ./config/nginx directory for project 'api-gateway-v2'. Use my brand 'SecureOps' and the accent color #0055ff.

    • Read your context and instructions
    • Compiled the nginx config security
    • Generated the document

    Audit complete for project

    api-gateway-v2. I have scanned the configuration files in ./config/nginx. The audit identified several high-risk exposures related to sensitive file access and missing encryption.

    Score: 42/100
    Grade: D
    Risk Level: HIGH

    Findings Summary

    • Critical: 3 (Cleartext HTTP, Exposed .env, Open Proxy)
    • Warning: 5 (Missing HSTS, Version Leaks, No Rate Limits)
    • Info: 2 (Missing custom error pages)

    Security Audit Results

    CategoryScoreStatus
    TLS Enabled0/15FAILED - Plain HTTP listeners found
    Sensitive Locations0/15FAILED - .env and .git folders accessible
    Open Proxy5/10WARNING - Variable proxy_pass detected
    Security Headers5/15WARNING - HSTS and CSP missing
    Server Tokens0/5FAILED - version leaking enabled

    Top 3 Recommended Fixes:
    1.

    Enable TLS: Configure all server blocks to listen on port 443 with valid SSL certificates and redirect port 80 traffic.
    2. Restrict Sensitive Paths: Add location ~ /\.(env|git) { deny all; } to prevent credential leaks.
    3. Disable Version Leaks: Set server_tokens off; in the http context to prevent Nginx version fingerprinting.

    The visual score-card has been generated at scan-2025-05-20.png and the full technical breakdown is available in scan-report.md.

    Next steps

    • Review scan-report.md to see the exact line numbers for the .env exposure.
    • Apply the TLS redirect and re-run the audit to improve the grade to a B or higher.
    • Verify that proxy_pass targets are hardcoded to prevent SSRF vulnerabilities.

    scan-2025-05-20.png

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Deploying a misconfigured Nginx server can expose sensitive environment variables, internal services, and unencrypted user credentials. This skill audits Nginx configuration files before deployment to identify security vulnerabilities, misconfigurations, and data leak risks.

    What it does

    • Vulnerability scanning detects weak TLS ciphers, legacy protocols like SSLv3, and missing security headers like HSTS or CSP.
    • Exposure detection flags unprotected sensitive paths such as .env, .git, and unauthenticated admin panels.
    • Proxy risk analysis identifies SSRF risks from variable proxy_pass usage and cleartext upstreams to internal services.
    • Safety scoring generates a 0-100 security score, letter grade, and risk level based on 10 specific security checks.
    • Visual reporting produces a shareable PNG score-card and a prioritized Markdown report with specific line references.

    How it works

    1. Point the agent to a local directory containing your Nginx configurations (nginx.conf, sites-available, or conf.d).
    2. The agent runs a local-only Python scanner to evaluate 10 security categories including TLS strength, request limits, and alias safety.
    3. Review the generated scan-report.md for a prioritized list of findings and the scan-YYYY-MM-DD.png visual score-card.
    4. Apply the recommended fixes and re-run the scan to verify the updated configuration reaches a safe score.

    Frameworks & tools

    This tool uses a Python-based static analysis engine to parse Nginx configuration syntax. It generates visual reports using system fonts like DejaVu Sans or Noto Sans.

    Why this beats prompting it yourself

    Generic prompts often miss subtle Nginx inheritance rules, such as how add_header behaves in location blocks. This skill applies a rigid, 10-point scoring rubric that ensures no check, from server_tokens leaks to SSRF proxy risks, is overlooked.

    Use cases

    • Auditing Nginx configs generated by other AI agents before deployment.
    • Performing a security baseline check during the onboarding of legacy third-party sites.
    • Generating professional security score-cards for client handovers or compliance reports.
    • Preventing accidental exposure of internal Docker or database ports through open proxies.

    Known limitations

    Does not follow include directives to external paths; all files must be in the target folder. It scans static files only and cannot verify if a running server has actually loaded the config.

    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.

    Does not resolve external include paths. Static file analysis only; cannot verify live server state. Findings capped at 200. Does not support files over 2MB.

    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 5 days ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    This skill identifies critical risks like weak TLS ciphers, legacy protocol usage, exposed sensitive files (like .env or .git), and Server-Side Request Forgery (SSRF) vulnerabilities in proxy settings. It solves the problem of manual, error-prone audits by providing a 10-point rubric and a visual security scorecard.

    No, the skill uses a local-only Python engine to scan your files, ensuring your sensitive configuration data and infrastructure details never leave your local environment. It is designed for maximum privacy during the audit process.

    While the skill parses all files in the provided directory, it currently does not follow 'include' directives pointing to external paths. For a complete audit, ensure all relevant configuration snippets are placed within the target folder before running the scan.

    This skill is designed to work with any AI agent capable of executing Python-based tools and accessing local directories. It is ideal for LLM-integrated DevOps workflows where you need to verify AI-generated configurations.

    You receive the full Python-based static analysis engine, the visual reporting module for PNG scorecards, and the Markdown report generator. The purchase includes the logic for all 10 security checks and instructions for integrating it into your agent's workflow.

    This skill performs a static analysis of the configuration files themselves, meaning it can catch errors before you ever deploy. It does not monitor or verify the state of a live, running Nginx instance.

    New in LLM Ops