performing-security-headers-audit

Audit HTTP security headers and cookie attributes to identify missing browser-level protections.

4|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/braydos-h/BreachPilot --skill performing-security-headers-audit-braydos-h
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performing-security-headers-audit
Source: https://github.com/braydos-h/BreachPilot/tree/main/skills/performing-security-headers-audit
Command: npx skills add https://github.com/braydos-h/BreachPilot --skill performing-security-headers-audit-braydos-h

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve? Web applications often ship without critical HTTP security headers like HSTS, CSP, and X-Frame-Options, leaving users exposed to XSS, clickjacking, SSL stripping, and session hijacking. This Skill systematically audits response headers and cookie attributes to find missing or misconfigured browser-level protections. ## Core Features & Use Cases - Header Analysis: Checks HSTS, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy against recommended values, flagging dangerous directives like unsafe-inline and wildcards. - Cookie Security Audit: Verifies Secure, HttpOnly, and SameSite attributes on session cookies and detects information disclosure via Server and X-Powered-By headers. - Graded Reporting: Produces a letter-grade assessment with severity-ranked findings and prioritized remediation recommendations. - Use Case: During an authorized web application penetration test, run the audit against login and account pages to quickly identify that the session cookie lacks the Secure flag and the CSP allows unsafe-inline scripts, then deliver a prioritized hardening report. ## Quick Start Audit the security headers of https://target.example.com including the /login and /account pages and give me a graded report with remediation priorities.

Frequently Asked Questions about performing-security-headers-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit HTTP security headers on a website?▼

Fetch response headers with curl -s -I or the included Python agent, then check for HSTS, Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy. Online scanners like SecurityHeaders.com and Mozilla Observatory provide quick letter-grade assessments.

What is a good Content-Security-Policy configuration?▼

A strong CSP avoids unsafe-inline and unsafe-eval in script-src, uses nonces or hashes for legitimate inline scripts, and includes a default-src fallback directive. Wildcard origins and report-only mode without enforcement are common weaknesses flagged during audits.

What cookie attributes should session cookies have?▼

Session cookies should set Secure so they only travel over HTTPS, HttpOnly to block JavaScript access, and SameSite=Strict or Lax to control cross-site sending. The __Host- prefix additionally requires Secure, Path=/, and no Domain attribute.

Does this audit require authorization to run?▼

Yes, the Skill requires written authorization scoping the target application, though header review is considered low-risk since it only reads HTTP responses. It is intended for authorized penetration tests, compliance assessments, and your own deployments.

Why is missing HSTS a security risk?▼

Without HSTS, attackers on the network can perform SSL stripping to downgrade HTTPS connections to HTTP and intercept traffic. The recommended value is max-age=31536000 with includeSubDomains and preload for browser preload list eligibility.