# Security Headers Audit — A–F grading

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

Security Headers Audit — A–F grading is a paid AI agent skill on Agensi by Mr Vempire, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Mr Vempire](https://www.agensi.io/creators/mr-vempire)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/security-headers-audit-a-f-grading
- Tags: security, python, penetration-testing, web-security, devops

## 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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Security Headers Audit — A–F grading skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific security risks does the Security Headers Audit address?

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.

### What is included in the purchase of this skill?

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.

### How does this skill's analysis differ from a standard AI prompt for security checking?

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.

### Which AI agents or environments are compatible with this tool?

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.

### Can the generated reports be customized for different web servers?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
