Works with the AI Agents you already use
HAProxy Config Security Audit
by CashonlyTian
Deploying a load balancer with a default or copied configuration often leaves critical infrastructure exposed to the internet.
$7
HAProxy Config Security Audit
Example session with this skill installed
Audit the haproxy.cfg in ./config/lb/ for the 'Edge-Proxy' project. Use the default accent color and include 'Acme-Infra' in the footer.
- Read your context and instructions
- Compiled the haproxy config security
- Generated the document
I have completed the security audit for the
Edge-Proxy HAProxy configuration. The scan analyzed 10 critical security areas to determine your current risk profile.
Audit Results: Edge-Proxy (unsafe demo)
Score: 0/100
Grade: F
Risk Level: CRITICAL
Total findings: 34 — all 10 checks fail
| Category | Score | Findings | Status |
|---|---|---|---|
| Network Exposure | 0/15 | 3 | FAIL: Frontends bind to 0.0.0.0 on every interface |
| Authentication | 0/15 | 2 | FAIL: Stats page on 0.0.0.0:8404 with a weak password |
| TLS Encryption | 0/15 | 3 | FAIL: TLS 1.0 and RC4 offered |
| Security Headers | 0/10 | 6 | FAIL: HSTS, CSP and other security headers missing |
| Request Protection | 0/10 | 3 | FAIL: No request-rate or size protection |
| Resource Limits | 0/10 | 5 | FAIL: Connection and timeout limits missing |
| Admin Stats | 0/10 | 4 | FAIL: Stats page exposed on 0.0.0.0:8404 |
| Secrets Hygiene | 0/5 | 2 | FAIL: Weak / hardcoded credentials in config |
| Logging | 0/5 | 3 | FAIL: Access and error logging not configured |
| Backend TLS | 0/5 | 3 | FAIL: Backends in cleartext or with ssl verify none |
Top 3 Prioritized Fixes
- Secure the Stats Page: Restrict the stats bind to
127.0.0.1and implement auserlistwith hashed passwords.
Enable Backend Verification: Change ssl verify none to ssl verify required and provide the appropriate CA bundle; stop sending backend traffic in cleartext.
3.
Enforce Modern TLS: Disable TLS 1.0 / 1.1 and RC4, and add http-request redirect scheme https unless { ssl_fc } to all public-facing frontends.
Deliverables:
- Scorecard Image:
scan-2023-10-27.png - Detailed Report:
scan-report.md
Audit Results: Edge-Proxy (clean demo)
Score: 100/100
Grade: A
Risk Level: LOW
Total findings: 0 — all 10 checks pass
| Category | Score | Findings | Status |
|---|---|---|---|
| Network Exposure | 15/15 | 0 | PASS |
| Authentication | 15/15 | 0 | PASS |
| TLS Encryption | 15/15 | 0 | PASS |
| Security Headers | 10/10 | 0 | PASS |
| Request Protection | 10/10 | 0 | PASS |
| Resource Limits | 10/10 | 0 | PASS |
| Admin Stats | 10/10 | 0 | PASS |
| Secrets Hygiene | 5/5 | 0 | PASS |
| Logging | 5/5 | 0 | PASS |
| Backend TLS | 5/5 | 0 | PASS |
Next steps
- Review the
scan-report.mdfor the specific line numbers causing the failures. - Apply the top 3 fixes to your
haproxy.cfg. - Re-run the scan to verify the updated score and grade.
scan-2023-10-27.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 load balancer with a default or copied configuration often leaves critical infrastructure exposed to the internet. This skill audits your haproxy.cfg for security gaps before they reach production, identifying risks like plaintext backends and open stats pages.
What it does
- Network exposure analysis identifies frontends binding to public interfaces or missing HTTPS redirects.
- TLS hardening checks verify minimum TLS 1.2 versions, cipher suite strength, and certificate bindings.
- Authentication auditing flags open stats pages, weak passwords, and plaintext credentials in userlists.
- Resource limit verification ensures global connection limits and request timeouts are properly configured to prevent DoS.
- Security header validation checks for HSTS, CSP, and secure cookie flags in HTTP responses.
- Backend security review confirms backends use encrypted traffic with proper certificate verification.
How it works
- Provide the local directory containing your
haproxy.cfgfile for a non-intrusive local scan. - The scanner evaluates 10 specific security domains, assigning a score from 0-100 based on risk weight.
- Review the generated PNG scorecard for a high-level summary of your security grade and risk level.
- Follow the prioritized
scan-report.mdto fix the highest-impact vulnerabilities first.
Frameworks & tools
This tool specifically audits HAProxy configuration files. It uses a Python-based scanning engine to perform static analysis on local files without requiring network access or live server connections.
Why this beats prompting it yourself
Generic LLM prompts often miss subtle HAProxy directives like URI normalization or specific stick-table rate limiting syntax. This skill uses a structured 10-point scoring system that ensures consistent, objective grading and prevents sensitive password values from being exposed in audit logs.
Use cases
- Auditing a configuration generated by another AI agent before deployment.
- Reviewing legacy load balancer settings for modern TLS compliance.
- Generating a security scorecard for client handovers or internal compliance.
- Sanity-checking
haproxy.cfgsnippets copied from online tutorials.
Known limitations
Audits local config files only and does not check running instances or network state. It does not scan for CVEs in the HAProxy binary or audit Docker/Terraform files.
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.
Local config files only. No live server auditing. No binary CVE scanning. Skips files over 2MB and standard ignore directories like .git or node_modules.
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