security-headers
FreeNo executable scriptsNot checkedUse when auditing HTTP security headers (CSP with nonce/hash and strict-dynamic, HSTS, frame-ancestors, Referrer-Policy, Permissions-Policy, COOP/COEP/CORP)…
by Fusengine★ 36 GitHub starsAbout this skill
It can also verify the headers and cookies a running URL actually serves (curl fast path, then one fuse-browser session when rendering is needed), only on URLs the owner named.
Security Headers Skill
Severity input
The severity scale for findings is the one in rules/security-rules.md; this section is an
input to it. A missing hardening header with no shown attack path is not a finding — it
goes to the report's "Hardening notes" section, without severity. It becomes a finding only
with a concrete attack path (XSS sink + no effective CSP, frameable
state-changing page, credentialed CORS reflection on private data, session cookie without
Secure on an HTTP-reachable site). Absence of X-XSS-Protection or X-Frame-Options
(when frame-ancestors is set) is never a finding.
Workflow
Detect the framework and where headers are set:
Framework Where to look Next.js next.config.*headers(),proxy.ts(formerlymiddleware.ts)Laravel Custom middleware appended in bootstrap/app.php; web server configAstro astro.config.*security.csp, adapterstaticHeaders,src/middleware.*, host configTanStack Start src/start.tsrequest middleware,setResponseHeader(s)callsExpress helmetusage,res.setHeaderDjango SECURE_*,X_FRAME_OPTIONS, CSP middleware settingsAny Reverse proxy / CDN config (nginx add_header … always, Vercel/Netlify headers files)Compare each header, cookie and CORS rule with Headers Reference.
Live check (only if the owner gave a URL) with Live Verification — config in code can be overridden by the proxy/CDN; the served response wins.
Refute each candidate in a second read-only pass (header set at another layer? route excluded on purpose? API-only JSON where CSP is irrelevant?).
Report to
docs/security/YYYY-MM-DD-<scope>.mdin the audited repository, with recommended snippets from Config Templates.
Finding format (shared contract)
id (HDR-NNN), title, severity (CRITICAL / HIGH / MEDIUM / LOW), confidence 1-10 (only ≥ 8
reported; lower → "needs manual review"), CWE, standard (OWASP Top 10:2025 A02 Security
Misconfiguration or A01 for CORS data exposure; OWASP ASVS 5.0.0 v5.0.0-3.x.y), file:line
or URL, evidence (header line, secrets redacted), exploit scenario, recommendation.
References
- Headers Reference — values, sources, severity rules, cookies, CORS
- Config Templates — Next.js, Laravel, Astro, TanStack Start (verified); Express, Django (not re-verified)
- Live Verification — curl + fuse-browser procedure for an owner-named URL
Install security-headers in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the security-headers skill do?
Use when auditing HTTP security headers (CSP with nonce/hash and strict-dynamic, HSTS, frame-ancestors, Referrer-Policy, Permissions-Policy, COOP/COEP/CORP), cookie attributes or CORS — in code (Next.js, Laravel, Astro, TanStack Start, Express, Django) or live on a URL the owner names.
How do I install the security-headers skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the security-headers skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic