360 Secure SkillHub
360 安全技能中心

Siteaudit

核心功能:一站式完成站点可用性检测(响应时间、状态码)、TLS证书检查(有效期、签发方等)、安全头评级(6类关键头A-F分级),识别站点宕机、证书即将过期、弱安全头等风险。典型场景:网站健康巡检、HTTPS配置验证、域名安全全景审查。输入为单个/多个域名,支持命令行调用,输出含文本/JSON格式,纯Python无依赖,可通过退出码实现自动化集成。

rogue-agent1
rogue-agent1
热度 39.40
最近更新 2026-05-11 17:37:27
分类:安全依赖:代码执行应用场景:DevOps / 报告撰写 / 自动化脚本

安装技能

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

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