Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Caddyfile Security Audit

    1

    Misconfigured Caddyfiles often leak sensitive files, expose internal ports, or ship with weak TLS settings.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Caddyfile Security Audit

    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

    CheckStatusPoints
    HTTPS EnforcedPass15/15
    TLS StrengthFail (TLS 1.1 allowed)0/10
    Security HeadersPartial (Missing CSP, HSTS)5/15
    Server InfoPass5/5
    Sensitive FilesFail (Exposed .env)0/15
    Proxy SSRFPass10/10
    Directory ListingPass5/5
    Request LimitsFail (No max_size set)0/10
    Auth ProtectionFail (Plaintext basicauth)0/10
    Admin API HygienePass2/5

    Top 3 Prioritized Fixes:

    1. Restrict Sensitive Files: Add a handle to abort or respond 403 for paths matching .env and .git.
    2. Hash Passwords: Replace plaintext basicauth passwords with bcrypt hashes.
    3. Set Request Limits: Define request_body max_size 10MB to prevent unbounded uploads.
      The full report has been generated at scan-report.md and the visual scorecard is available at scan-2024-05-20.png.
      Next steps
    • Review the scan-report.md for specific line numbers where .env files are exposed.
    • Update your basicauth block using the caddy hash-password utility.
    • 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

    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

    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 basicauth uses bcrypt hashes instead of plaintext.
    • Resource Limit Checks identifies missing request body size limits and excessive server timeouts.

    How it works

    1. Point the tool to the local directory containing your Caddyfile, *.caddyfile, or *.caddy files.
    2. Run the audit script to perform a local-only scan of the configuration logic and directives.
    3. Review the generated PNG scorecard for a high-level grade (0-100) and risk assessment.
    4. 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. 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 today

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    No, the audit runs entirely on your local machine. The tool parses your Caddyfile directives locally to ensure that sensitive configuration data, server paths, and infrastructure details never leave your environment.

    You will receive the Python-based scanning engine, the 10-point security scoring logic, and templates for both the Markdown fix reports and the PNG visual scorecards. It also includes documentation on how to integrate the scanner into your existing CI/CD or development workflow.

    Yes, the scanner is designed to mask sensitive credentials and secret keys automatically within the generated reports. This allows you to share the security scorecard or fix list with team members without exposing your actual passwords or tokens.

    This skill is optimized for Caddy v2.x. While it can identify basic syntax and logic errors common to many web servers, the specific security checks—such as directive-specific defaults and TLS settings—are tailored exclusively for the Caddyfile format.

    The skill specifically flags missing directives that Caddy doesn't enforce by default, such as request body limits and specific security headers. Unlike a general LLM, this tool uses a structured scoring system to ensure no critical Caddy-specific vulnerability is overlooked due to AI hallucination.

    New in LLM Ops