360 Secure SkillHub
360 安全技能中心

Siteaudit

纯 Python 单命令网站审计工具:对域名发起 HTTP HEAD 请求检测可用性与响应时间,检查 TLS 证书有效期、剩余天数、签发者与协议版本,并按 6 项关键安全响应头给出 A–F 评级;标记宕机、慢响应、证书即将过期和响应头薄弱等问题,支持 JSON 输出,退出码区分健康与异常。

分类:安全
rogue-agent1
rogue-agent1
热度 26.59
最近更新 2026-05-11 17:37:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add rogue-agent1/siteaudit
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
siteaudit
description
Comprehensive website audit combining uptime check, TLS certificate inspection, and security headers grading in one command. Use when asked to audit a website, check site health, verify HTTPS setup, or get a full security overview of a domain. Reports response time, cert expiry, header grades, and flags issues. Zero dependencies — pure Python.

siteaudit 🔍

All-in-one website health audit: uptime + TLS + security headers.

Commands

# Audit one or more sites
python3 scripts/siteaudit.py github.com openclaw.ai example.com

# JSON output for automation/cron
python3 scripts/siteaudit.py --json mysite.com

Checks Performed

  1. Uptime — HTTP HEAD request, response time in ms, status code
  2. TLS Certificate — expiry date, days remaining, issuer, protocol version
  3. Security Headers — grades A-F based on 6 critical headers (HSTS, CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy)

Issue Detection

  • ❌ Site DOWN (connection/5xx errors)
  • ⚠️ Slow response (>2s)
  • ❌ TLS errors
  • ⚠️ Certificate expiring within 14 days
  • ⚠️ Weak security headers (grade D or F)

Exit Codes

  • 0: All sites healthy
  • 1: One or more issues detected