Works with the AI Agents you already use
Caddyfile Security Audit
Misconfigured Caddyfiles often leak sensitive files, expose internal ports, or ship with weak TLS settings.
$7
Caddyfile Security Audit
Example session with this skill installed
Audit the Caddyfile in ./deploy/proxy for the 'shop-api' project. Use the brand 'Internal Audit' and output the scorecard.
- Read your context and instructions
- Compiled the caddyfile security audit
- Generated the document
I have completed the security audit for the
shop-api project located in ./deploy/proxy. The scan analyzed 10 key security areas including TLS strength, header enforcement, and proxy risks.
Audit Results: shop-api
Score: 13/100
Grade: F
Risk Level: CRITICAL
Findings: 26
| Check | Status | Points |
|---|---|---|
| HTTPS Enforced | Pass | 15/15 |
| TLS Strength | Fail (TLS 1.1 allowed) | 0/10 |
| Security Headers | Partial (Missing CSP, HSTS) | 5/15 |
| Server Info | Pass | 5/5 |
| Sensitive Files | Fail (Exposed .env) | 0/15 |
| Proxy SSRF | Pass | 10/10 |
| Directory Listing | Pass | 5/5 |
| Request Limits | Fail (No max_size set) | 0/10 |
| Auth Protection | Fail (Plaintext basicauth) | 0/10 |
| Admin API Hygiene | Pass | 2/5 |
Top 3 Prioritized Fixes:
- Restrict Sensitive Files: Add a handle to
abortorrespond 403for paths matching.envand.git. - Hash Passwords: Replace plaintext
basicauthpasswords with bcrypt hashes. - Set Request Limits: Define
request_body max_size 10MBto prevent unbounded uploads.
The full report has been generated atscan-report.mdand the visual scorecard is available atscan-2024-05-20.png.
Next steps
- Review the
scan-report.mdfor specific line numbers where.envfiles are exposed. - Update your
basicauthblock using thecaddy hash-passwordutility. - Re-run the audit after applying fixes to verify the new score.
Clean demo (after fixes)
Score: 100/100
Grade: A
Risk Level: LOW
Findings: 0
scan-2024-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
Misconfigured Caddyfiles often leak sensitive files, expose internal ports, or ship with weak TLS settings. This skill audits your Caddy configuration files locally to identify security gaps before you deploy them.
What it does
- HTTPS & TLS Verification identifies plain-HTTP sites, weak protocols like TLS 1.0, and insecure cipher suites.
- Security Header Audit checks for the presence of HSTS, X-Frame-Options, CSP, and other essential defense headers.
- Sensitive File Protection detects exposed
.env,.git, or backup files and ensures they are properly denied. - Proxy & SSRF Detection flags reverse proxies targeting variables or sensitive internal ports like Docker and Redis.
- Access & Auth Review finds unprotected admin paths and ensures
basicauthuses bcrypt hashes instead of plaintext. - Resource Limit Checks identifies missing request body size limits and excessive server timeouts.
How it works
- Point the tool to the local directory containing your
Caddyfile,*.caddyfile, or*.caddyfiles. - Run the audit script to perform a local-only scan of the configuration logic and directives.
- Review the generated PNG scorecard for a high-level grade (0-100) and risk assessment.
- Use the detailed Markdown report to view prioritized fixes, with sensitive credentials automatically masked.
Frameworks & tools
This skill is built for Caddy web server environments. It uses a Python-based scanner to parse Caddyfile directives and produces Markdown reports and PNG visualizations.
Why this beats prompting it yourself
Standard LLM prompts often miss Caddy-specific defaults, such as the fact that a missing max_size directive allows unlimited request bodies. This skill uses a structured 10-check scoring system that ensures consistent coverage across TLS, headers, and proxy safety without the hallucination risks of generic security advice.
Use cases
- Auditing a Caddyfile generated by an AI agent before moving it to production.
- Onboarding third-party projects to ensure their proxy settings don't expose internal databases.
- Generating a security scorecard for client handovers or compliance documentation.
- Hardening existing configurations by identifying missing security headers and version leaks.
Known limitations
The scanner audits config files only and does not connect to a running server to verify live behavior. It does not resolve remote import URLs or handle complex header inheritance in nested handles.
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.
Audits files only; does not verify live server state. Remote imports are not resolved. Header inheritance is approximated at the site level. Files over 2MB are skipped.
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 today
- Software
Python 3Pillow