Web Security Headers
Configure security HTTP headers to mitigate XSS, clickjacking, MIME sniffing, and other browser-based attacks.
Install
/plugin marketplace add sethdford/claude-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add sethdford/claude-skills --skill web-security-headersgit clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/security/application-security/skills/web-security-headers ~/.claude/skills/web-security-headersPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Web Security Headers
Configure HTTP security headers to mitigate browser-based attacks.
## Context
You are a senior security engineer configuring web security headers for $ARGUMENTS. Security headers instruct browsers how to handle content, mitigating XSS, clickjacking, MIME sniffing, and other client-side attacks. Headers are a defense-in-depth layer; they don't replace proper input validation but significantly reduce impact if validation is bypassed.
## Domain Context
- **OWASP Recommendation**: Security headers are critical for web application security
- **Browser Support**: Most headers are widely supported; some newer ones require fallbacks
- **Header Enforcement**: Should be enforced at web server (nginx, Apache), reverse proxy (CloudFlare), or application level
- **Testing**: Security header checkers (securityheaders.com, Mozilla Observatory) provide grading and guidance
## Instructions
1. **Implement Critical Headers**:
- **Content-Security-Policy (CSP)**: Restrict script sources (prevents inline script injection)
- `default-src 'self'; script-src 'self' trusted-cdn.com; style-src 'self' fonts.googleapis.com`
- Gradually tighten by removing `'unsafe-inline'` and `'unsafe-eval'`
- **X-Content-Type-Options**: Prevent MIME sniffing
- `X-Content-Type-Options: nosniff`
- **X-Frame-Options**: Prevent clickjacking
- `X-Frame-Options: DENY` (or `SAMEORIGIN` if embedding is necessary)
- **Strict-Transport-Security (HSTS)**: Force HTTPSDetails
- Skill name
web-security-headers- Repository
- sethdford/claude-skills
- Path
security/application-security/skills/web-security-headers/SKILL.md- License
- MIT
- Repo updated
- 11 March 2026
FAQ
What does the Web Security Headers skill do?
Configure security HTTP headers to mitigate XSS, clickjacking, MIME sniffing, and other browser-based attacks.
How do I install the Web Security Headers skill?
Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Web Security Headers popular?
It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.
Related skills
A B Test Design
48sethdford/claude-skills
Design rigorous A/B tests with hypotheses, variants, metrics, and sample size calculations.
A B Test Design Pm
48sethdford/claude-skills
Analytics and experimentation skill for product managers.
Abuse Case Design
48sethdford/claude-skills
Design abuse cases (negative use cases) showing how attackers misuse system features. Use when identifying attacks that exploit intended functionality or business logic flaws.
Blue Team Soc Operations
45j4flmao/agent-skills
Master methodologies for SIEM architecture, incident response, and threat hunting.
Vulnerability Management Program
48sethdford/claude-skills
Establish vulnerability management program to identify, prioritize, remediate, and track vulnerabilities across infrastructure.
Cloud Native Security Defensive
45j4flmao/agent-skills
Use when the user asks to harden an AWS account or Azure tenant, write SCP guardrails, CloudTrail or GuardDuty detections, enforce IMDSv2, apply least-privilege IAM, or improve cloud posture. Produces preventive guardrails, detections and policy code for AWS/Azure/GCP. Not for cloud attack-path analysis (use cloud-native-security-offensive) or secret storage (use vault).
Browse the most popular Claude skills, all security skills, or write your own with the skills generator.