Security Headers Audit — A–F grading
by Mr Vempire
Audit HTTP security headers and generate client-ready A-F graded reports with concrete remediation steps.
$7
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
| Header | Observed Value | Assessment | Fix Recommendation |
|---|---|---|---|
| HSTS | Missing | FAIL | max-age=31536000; includeSubDomains; preload |
| CSP | default-src * 'unsafe-inline' | WEAK | Use nonces/hashes; remove 'unsafe-inline' |
| X-Frame-Options | SAMEORIGIN | PASS | N/A |
| X-Content-Type | nosniff | PASS | N/A |
| Referrer-Policy | Missing | FAIL | strict-origin-when-cross-origin |
| Cookie Flags | HttpOnly (Missing Secure) | FAIL | Add 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
- Enable HSTS: Add the
Strict-Transport-Securityheader to all HTTPS responses to enforce encrypted connections. - Harden CSP: Replace the wildcard
default-srcwith a whitelist of trusted domains and implement a nonce-based system for scripts. - Set Cookie Flags: Update the application middleware to ensure all
Set-Cookieheaders include theSecureflag.
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.pyto 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, andSameSiteattributes. - Remediation mapping provides the exact configuration values needed to fix each identified weakness.
How it works
- Execute the
headers-audit.pyscript against a list of target URLs including home pages, login routes, and API endpoints. - Analyze raw response headers against the provided grading criteria and pass/fail assessments.
- Validate header behavior via manual browser checks for framing and script execution.
- 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
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 5 days ago
Permissions
Allowed Hosts
What's inside
Frequently Asked Questions
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.