返回 Skill 列表
extension
分类: 开发与工程无需 API Key

analyzing-security-headers

分析网站域名的HTTP安全头,以识别漏洞和错误配置。当您需要审核网站安全头、评估头合规性或获取Web应用程序的安全建议时使用。可以通过诸如“分析安全头”、“检查HTTP头”、“审核网站安全头”或“评估CSP和HSTS配置”等短语触发。

person作者: jakexiaohubgithub

Analyzing Security Headers

Overview

This skill provides automated assistance for the described functionality.

Prerequisites

Before using this skill, ensure:

  • Target URL or domain name is accessible
  • Network connectivity for HTTP requests
  • Permission to scan the target domain
  • Optional: Save results to {baseDir}/security-reports/

Instructions

  1. Collect the target URL/domain and environment context (CDN/proxy, redirects).
  2. Fetch response headers (HTTP/HTTPS) and capture redirects/cookies.
  3. Compare headers to recommended baselines and score gaps.
  4. Provide concrete remediation steps and verify fixes.

See {baseDir}/references/implementation.md for detailed implementation guide.

Output

The skill produces:

Primary Output: Security headers analysis report

Report Structure:

# Security Headers Analysis - example.com

## Error Handling

See `{baseDir}/references/errors.md` for comprehensive error handling.

## Examples

See `{baseDir}/references/examples.md` for detailed examples.

## Resources

- OWASP Secure Headers Project: https://owasp.org/www-project-secure-headers/
- MDN Security Headers Guide: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#security
- Security Headers Scanner: https://securityheaders.com/
- CSP Reference: https://content-security-policy.com/
- HSTS Preload: https://hstspreload.org/