Works with the AI Agents you already use
Nginx Config Security Audit
by CashonlyTian
Deploying a misconfigured Nginx server can expose sensitive environment variables, internal services, and unencrypted user credentials.
$7
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
| Category | Score | Status |
|---|---|---|
| TLS Enabled | 0/15 | FAILED - Plain HTTP listeners found |
| Sensitive Locations | 0/15 | FAILED - .env and .git folders accessible |
| Open Proxy | 5/10 | WARNING - Variable proxy_pass detected |
| Security Headers | 5/15 | WARNING - HSTS and CSP missing |
| Server Tokens | 0/5 | FAILED - 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.mdto 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_passtargets are hardcoded to prevent SSRF vulnerabilities.
scan-2025-05-20.png
PDF · document
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_passusage 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
- Point the agent to a local directory containing your Nginx configurations (
nginx.conf,sites-available, orconf.d). - The agent runs a local-only Python scanner to evaluate 10 security categories including TLS strength, request limits, and alias safety.
- Review the generated
scan-report.mdfor a prioritized list of findings and thescan-YYYY-MM-DD.pngvisual score-card. - 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
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 5 days ago
- Software
Python 3Pillow