🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

HTTP Header Analyzer

by @hostilespider

Analyze HTTP security headers and TLS configuration. Find missing headers, weak ciphers, and misconfigurations in web applications.

Versionv1.0.0
Downloads410
TERMINAL
clawhub install http-header-analyzer

πŸ“– About This Skill


name: http-header-analyzer description: Analyze HTTP security headers and TLS configuration. Find missing headers, weak ciphers, and misconfigurations in web applications. metadata: {"openclaw":{"emoji":"πŸ”’","requires":{"bins":["curl"]}}}

HTTP Header Analyzer

Check HTTP security headers and TLS configuration. Find missing protections and misconfigurations.

Quick Start

# Analyze a single URL
python3 {baseDir}/scripts/analyze-headers.py https://example.com

Check multiple targets

python3 {baseDir}/scripts/analyze-headers.py -f urls.txt

JSON output

python3 {baseDir}/scripts/analyze-headers.py https://example.com --json

Headers Checked

| Header | Purpose | Risk if Missing | |--------|---------|-----------------| | Strict-Transport-Security | Forces HTTPS | Medium | | Content-Security-Policy | XSS protection | Medium-High | | X-Frame-Options | Clickjacking protection | Medium | | X-Content-Type-Options | MIME sniffing protection | Low | | X-XSS-Protection | XSS filter (legacy) | Low | | Referrer-Policy | Controls referrer leakage | Low | | Permissions-Policy | Feature restrictions | Low | | Cross-Origin-Opener-Policy | Cross-origin isolation | Low | | Cross-Origin-Embedder-Policy | Cross-origin isolation | Low | | Cross-Origin-Resource-Policy | Cross-origin protection | Low |

Options

  • URL β€” Target URL(s) to analyze
  • -f FILE β€” File with URLs (one per line)
  • --json β€” JSON output
  • --follow β€” Follow redirects (default: yes)
  • --timeout SECS β€” Request timeout (default: 10)
  • --user-agent UA β€” Custom User-Agent
  • --check-tls β€” Also check TLS certificate info
  • --severity LEVEL β€” Minimum severity to report: low, medium, high
  • Output

    === https://example.com ===
    βœ… Strict-Transport-Security: max-age=31536000; includeSubDomains
    βœ… Content-Security-Policy: default-src 'self'
    ❌ X-Frame-Options: MISSING (clickjacking risk)
    βœ… X-Content-Type-Options: nosniff
    ❌ Referrer-Policy: MISSING
    ⚠️  Server: nginx/1.18.0 (version exposed)

    Score: 3/6 security headers present Risk: MEDIUM

    πŸ’‘ Examples

    # Analyze a single URL
    python3 {baseDir}/scripts/analyze-headers.py https://example.com

    Check multiple targets

    python3 {baseDir}/scripts/analyze-headers.py -f urls.txt

    JSON output

    python3 {baseDir}/scripts/analyze-headers.py https://example.com --json

    βš™οΈ Configuration

  • URL β€” Target URL(s) to analyze
  • -f FILE β€” File with URLs (one per line)
  • --json β€” JSON output
  • --follow β€” Follow redirects (default: yes)
  • --timeout SECS β€” Request timeout (default: 10)
  • --user-agent UA β€” Custom User-Agent
  • --check-tls β€” Also check TLS certificate info
  • --severity LEVEL β€” Minimum severity to report: low, medium, high