360 Secure SkillHub
360 安全技能中心

HTTP Header Analyzer

该 Skill 通过 python3 脚本向给定 URL 发起请求,检查 HSTS、CSP、X-Frame-Options 等安全响应头是否存在并给出通过/缺失标记与风险评分;支持批量读取 URL 文件、JSON 输出、重定向跟随、超时与 User-Agent 设置,--check-tls 时额外检查 TLS 证书信息,依赖 curl。

hostilespider
hostilespider
热度 33.22
最近更新 2026-05-11 17:38:03
分类:安全依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 报告撰写 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add http-header-analyzer
Metadata
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