Skip to content
OpenSmartRoute
Skillv1.0.0

analyzing-security-headers

Analyze HTTP security headers of web domains to identify vulnerabilities and misconfigurations. Use when you need to audit website security headers, assess header compliance, or get security recommend

by jeremylongshore(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from jeremylongshore/tons-of-skills-marketplace (plugins/security/security-headers-analyzer/skills/analyzing-security-headers/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill analyzing-security-headers. Copyright stays with the author (MIT).

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

Error Cause Solution
Failed to connect to domain DNS resolution failure, firewall block, or domain down Verify domain spelling and DNS records; test alternate protocols
SSL certificate verification failed Expired, self-signed, or mismatched certificate Note TLS issue in report; indicates HSTS not properly enforced
Too many redirects Redirect loop between HTTP and HTTPS Report the redirect chain and analyze headers at each hop
HTTP 429 Too Many Requests Rate limiting by target server Implement backoff; queue domain for delayed re-analysis
Headers differ between HTTP and HTTPS Inconsistent server configuration Report both sets; highlight critical differences and flag HSTS gap

Examples

  • "Analyze security headers for https://tonsofskills.com 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

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-analyzing-sec-715648/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

jeremylongshore-tons-of-skills-marketplace-analyzing-sec-715648.ocm.jsonjson
{
  "ocm": "1",
  "id": "jeremylongshore-tons-of-skills-marketplace-analyzing-sec-715648",
  "kind": "skill",
  "name": "analyzing-security-headers",
  "description": "Analyze HTTP security headers of web domains to identify vulnerabilities and misconfigurations. Use when you need to audit website security headers, assess header compliance, or get security recommendations for web applications. Trigger with phrases like \"analyze security headers\", \"check HTTP headers\", \"audit website security headers\", or \"evaluate CSP and HSTS configuration\".",
  "publisher": "jeremylongshore",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "legal"
    ],
    "tags": [
      "skill-md",
      "security",
      "compliance",
      "audit",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Analyze HTTP security headers of web domains to identify vulnerabilities and misconfigurations. Use when you need to audit website security headers, assess header compliance, or get security recommendations for web applications. Trigger with phrases like \"analyze security headers\", \"check HTTP headers\", \"audit website security headers\", or \"evaluate CSP and HSTS configuration\"."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/jeremylongshore/tons-of-skills-marketplace",
      "path": "plugins/security/security-headers-analyzer/skills/analyzing-security-headers/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/jeremylongshore/tons-of-skills-marketplace/blob/HEAD/plugins/security/security-headers-analyzer/skills/analyzing-security-headers/SKILL.md",
      "key": "jeremylongshore/tons-of-skills-marketplace/plugins/security/security-headers-analyzer/skills/analyzing-security-headers/SKILL.md"
    },
    "compatibility": "Designed for Claude Code",
    "allowed_tools": [
      "Read,",
      "WebFetch,",
      "WebSearch,",
      "Grep"
    ],
    "license": "MIT"
  },
  "instructions": "# Analyzing Security Headers\n\n## Overview\n\nEvaluate 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.\n\n## Prerequisites\n\n- Target URL or domain name accessible over the network\n- Authorization to perform HTTP requests against the target domain\n- Network connectivity for both HTTP and HTTPS protocols\n- Optional: write access to `${CLAUDE_SKILL_DIR}/security-reports/` for persisting results\n\n## Instructions\n\n1. Accept ",
  "cost": {
    "context_tokens": 1075
  }
}

Fetch it by URL: GET /api/v1/registry/jeremylongshore-tons-of-skills-marketplace-analyzing-sec-715648/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.