AN

analyzing-security-headers

Evaluate website security headers against OWASP guidelines and security baselines.

Install

mkdir -p .claude/skills/analyzing-security-headers && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8272" && unzip -o skill.zip -d .claude/skills/analyzing-security-headers && rm skill.zip

Installs to .claude/skills/analyzing-security-headers

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Analyze HTTP security headers of web domains to identify vulnerabilities
72 charsno explicit “when” trigger
Beginner

Key capabilities

  • Audit HTTP security headers
  • Assess CSP and HSTS compliance
  • Identify information-leaking headers
  • Validate cookie security attributes
  • Generate remediation configuration snippets

How it works

The skill fetches HTTP response headers for a domain and evaluates them against security baselines to generate a grade and remediation plan.

Inputs & outputs

You give it
Target domain or URL
You get back
Security headers analysis report

When to use analyzing-security-headers

  • Audit website security headers
  • Assess CSP and HSTS compliance
  • Identify information-leaking HTTP headers
  • Validate browser security baselines

About this skill

Analyzing Security Headers

Overview

Evaluate HTTP response headers for web applications against OWASP Secure Headers Project recommendations and browser security baselines. Identify missing, misconfigured, or information-leaking headers across both HTTP and HTTPS responses.

Prerequisites

  • Target URL or domain name accessible over the network
  • Authorization to perform HTTP requests against the target domain
  • Network connectivity for both HTTP and HTTPS protocols
  • Optional: write access to ${CLAUDE_SKILL_DIR}/security-reports/ for persisting results

Instructions

  1. Accept the target domain. If only a domain name is provided, default to https://. For batch analysis, accept a newline-separated list.
  2. Fetch response headers using WebFetch for both HTTP and HTTPS endpoints. Record the full redirect chain and final destination URL.
  3. Evaluate critical headers -- flag any that are missing or misconfigured:
    • Strict-Transport-Security: require max-age>=31536000, includeSubDomains, and preload eligibility
    • Content-Security-Policy: check for unsafe-inline, unsafe-eval, overly broad default-src, and missing frame-ancestors
    • X-Frame-Options: require DENY or SAMEORIGIN
    • X-Content-Type-Options: require nosniff
    • Permissions-Policy: verify camera, microphone, geolocation restrictions
  4. Evaluate important headers -- report status and recommendations:
    • Referrer-Policy: recommend strict-origin-when-cross-origin or no-referrer
    • Cross-Origin-Embedder-Policy (COEP), Cross-Origin-Opener-Policy (COOP), Cross-Origin-Resource-Policy (CORP)
  5. Check for information disclosure -- flag Server, X-Powered-By, X-AspNet-Version, and any header revealing technology stack or version numbers.
  6. Inspect cookie attributes on Set-Cookie headers: verify Secure, HttpOnly, SameSite=Lax|Strict, and __Host-/__Secure- prefix usage.
  7. Calculate a security grade: A+ (95-100), A (85-94), B (75-84), C (65-74), D (50-64), F (<50) based on weighted presence and correctness of each header.
  8. Generate per-header remediation directives with configuration examples for Nginx, Apache, and Cloudflare.

See ${CLAUDE_SKILL_DIR}/references/implementation.md for the five-phase implementation workflow.

Output

  • Headers Analysis Report: overall grade, per-header status (present/missing/misconfigured), and risk impact
  • Remediation Checklist: prioritized fixes with server configuration snippets
  • Cookie Security Assessment: attribute compliance for each Set-Cookie header
  • Comparison Table: side-by-side HTTP vs. HTTPS header differences

Error Handling

ErrorCauseSolution
Failed to connect to domainDNS resolution failure, firewall block, or domain downVerify domain spelling and DNS records; test alternate protocols
SSL certificate verification failedExpired, self-signed, or mismatched certificateNote TLS issue in report; indicates HSTS not properly enforced
Too many redirectsRedirect loop between HTTP and HTTPSReport the redirect chain and analyze headers at each hop
HTTP 429 Too Many RequestsRate limiting by target serverImplement backoff; queue domain for delayed re-analysis
Headers differ between HTTP and HTTPSInconsistent server configurationReport both sets; highlight critical differences and flag HSTS gap

Examples

  • "Analyze security headers for https://claudecodeplugins.io and explain any CSP or HSTS issues."
  • "Check headers for example.com on both HTTP and HTTPS and provide an Nginx remediation config."
  • "Batch-analyze headers for five staging domains and rank them by security grade."

Resources

When not to use it

  • When the target domain is not accessible over the network
  • When the user lacks authorization to scan the target

Prerequisites

Target URL or domain nameNetwork connectivity

Limitations

  • Rate limiting by target server may require backoff
  • SSL certificate issues may indicate HSTS gaps

How it compares

It automates the comparison of headers against OWASP recommendations compared to manual inspection of individual response headers.

Compared to similar skills

analyzing-security-headers side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
analyzing-security-headers (this skill)025dReviewBeginner
security-requirement-extraction72moNo flagsIntermediate
api-fuzzing-for-bug-bounty96moReviewAdvanced
secure-workflow-guide32moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

security-requirement-extraction

wshobson

Derive security requirements from threat models and business context. Use when translating threats into actionable requirements, creating security user stories, or building security test cases.

759

api-fuzzing-for-bug-bounty

davila7

This skill should be used when the user asks to "test API security", "fuzz APIs", "find IDOR vulnerabilities", "test REST API", "test GraphQL", "API penetration testing", "bug bounty API testing", or needs guidance on API security assessment techniques.

929

secure-workflow-guide

trailofbits

Guides through Trail of Bits' 5-step secure development workflow. Runs Slither scans, checks special features (upgradeability/ERC conformance/token integration), generates visual security diagrams, helps document security properties for fuzzing/verification, and reviews manual security areas.

331

cross-site-scripting-and-html-injection-testing

davila7

This skill should be used when the user asks to "test for XSS vulnerabilities", "perform cross-site scripting attacks", "identify HTML injection flaws", "exploit client-side injection vulnerabilities", "steal cookies via XSS", or "bypass content security policies". It provides comprehensive techniques for detecting, exploiting, and understanding XSS and HTML injection attack vectors in web applications.

322

defense-in-depth-validation

mrgoonie

Validate at every layer data passes through to make bugs impossible

319

semgrep-rule-creator

trailofbits

Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static analysis detections.

416

Search skills

Search the agent skills registry