Security Headers Audit — A–F grading

    by Mr Vempire

    1

    Audit HTTP security headers and generate client-ready A-F graded reports with concrete remediation steps.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Security Headers Audit — A–F grading

    Example session with this skill installed

    Run a security headers audit on https://example-webapp.com/login and generate a graded report with fixes.

    • Read your context and instructions
    • Compiled the security headers audit

    I have completed the security headers audit for the requested target. The site received an overall grade of

    D due to missing HSTS and a weak CSP.

    Security Headers Audit Report: example-webapp.com

    Overall Grade: D

    HeaderObserved ValueAssessmentFix Recommendation
    HSTSMissingFAILmax-age=31536000; includeSubDomains; preload
    CSPdefault-src * 'unsafe-inline'WEAKUse nonces/hashes; remove 'unsafe-inline'
    X-Frame-OptionsSAMEORIGINPASSN/A
    X-Content-TypenosniffPASSN/A
    Referrer-PolicyMissingFAILstrict-origin-when-cross-origin
    Cookie FlagsHttpOnly (Missing Secure)FAILAdd Secure and SameSite=Lax to all session cookies

    Grade Justification

    The site earns a

    D because the Content Security Policy uses wildcards and unsafe keywords, providing no real protection against XSS. Additionally, the lack of HSTS on a login page allows for protocol downgrade attacks, and session cookies are sent over plain HTTP.

    Technical Recommendations

    1. Enable HSTS: Add the Strict-Transport-Security header to all HTTPS responses to enforce encrypted connections.
    2. Harden CSP: Replace the wildcard default-src with a whitelist of trusted domains and implement a nonce-based system for scripts.
    3. Set Cookie Flags: Update the application middleware to ensure all Set-Cookie headers include the Secure flag.

    Next steps

    • Apply the recommended HSTS header in your Nginx or Apache configuration.
    • Refactor the CSP to remove 'unsafe-inline' and test for site breakage.
    • Re-run headers-audit.py to verify the new grade.

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

    About this skill

    Websites often lack critical defense-in-depth layers, leaving them vulnerable to XSS, clickjacking, and protocol downgrades. This skill audits HTTP security headers and produces a professional, A through F graded report based on industry standards.

    What it does

    • Standardized grading assigns a definitive A-F score based on a specific rubric, ensuring security posture is measurable.
    • Header inspection audits HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy.
    • Deep CSP analysis evaluates the actual value of Content Security Policies rather than just checking for their presence.
    • Cookie flag verification checks session cookies for Secure, HttpOnly, and SameSite attributes.
    • Remediation mapping provides the exact configuration values needed to fix each identified weakness.

    How it works

    1. Execute the headers-audit.py script against a list of target URLs including home pages, login routes, and API endpoints.
    2. Analyze raw response headers against the provided grading criteria and pass/fail assessments.
    3. Validate header behavior via manual browser checks for framing and script execution.
    4. Generate a client-ready Markdown report using the provided template, documenting grades and required fixes.

    Frameworks & tools

    This skill utilizes a Python audit script (headers-audit.py) using the standard library and curl for header retrieval. It works with any web server (Nginx, Apache) or CDN configuration.

    Why this beats prompting it yourself

    Generic prompts often miss the nuances of header values, like a CSP that exists but is effectively useless due to unsafe-inline. This skill uses a strict, multi-page grading logic that ensures the lowest grade defines the site's overall posture.

    Use cases

    • Performing a technical audit during a web penetration test engagement.
    • Verifying security header persistence after a major deployment or CI/CD pipeline change.
    • Providing a standalone security health check for client-facing websites.

    Known limitations

    This skill requires written authorization before testing any target. It does not replace a full vulnerability assessment and cannot detect server-side flaws like SQL injection.

    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

    Permissions

    Terminal / Shell
    Network Access

    Allowed Hosts

    example.com
    Listed5 days ago

    What's inside

    Creator

    Mr Vempire

    Mr Vempire

    32 skills on Agensi

    Frequently Asked Questions

    This skill identifies missing or poorly configured HTTP security headers that protect against XSS, clickjacking, and protocol downgrades, providing an A-F grade and specific remediation code to fix them.

    You will receive the proprietary `headers-audit.py` script, a standardized A-F grading rubric, and a professional Markdown reporting template for presenting results to clients.

    Unlike basic AI prompts, this skill uses a strict multi-page logic that analyzes the actual value of a policy (like CSP) rather than just its presence, ensuring you don't receive a 'pass' for an insecure configuration.

    This skill is compatible with any AI agent capable of executing Python scripts and accessing the web via `curl`, making it ideal for technical assistants and automated DevSecOps workflows.

    Yes, while it provides general remediation steps, the report includes the exact configuration values needed for implementation across various environments like Nginx, Apache, or CDNs.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.