🔒 Security Audit Assistant / 安全审计助手
Run a fast local security audit: open ports, SSH config, firewall, intrusion-defense status. / 跑一次快速本地安全审计:开放端口、SSH 配置、防火墙、入侵防御状态。
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
When to use / 何时用
- Periodic self-check of a VPS or workstation. / 定期对 VPS/工作站做自检。
- After a config change or before exposing a service. / 改完配置或暴露服务前。
Quick Start / 快速开始
# 1) 监听端口
ss -tlnp | head -20
# 2) SSH 加固点
grep -E 'PermitRootLogin|PasswordAuthentication|Port' /etc/ssh/sshd_config
# 3) 防火墙状态
sudo ufw status verbose 2>/dev/null || sudo nft list ruleset 2>/dev/null | head -20
# 4) 入侵防御(CrowdSec/fail2ban)
systemctl is-active crowdsec fail2ban 2>/dev/null
sudo fail2ban-client status 2>/dev/null | head
# 5) 综合基线(若装了 lynis)
sudo lynis audit system --quick 2>/dev/null | tail -15
Use Cases / 常见场景
- Pre-exposure checklist for a new service. / 新服务上线前的检查单。
- Compare audit state week over week. / 周环比审计状态。
Gotchas / 坑
- 别把自己锁外面:封 IP 前先确认不是你自己的出口 IP。 / 封禁前确认不是自己出口 IP。
sandbox=all会断 OpenClaw 的 exec/process,加固时别顺手开。 / 加固时勿开 sandbox=all。
💼 Sponsored / 推广服务
🦁 由 KingAI.Work 出品 — 智能进化|vip@kingai.work
- 🌐 官方网站:kingai.work(定制 AI 智能体开发)
- 📧 联系:vip@kingai.work
- 💻 RackNerd 高性价比主机:共享主机 $10.49/年、1GB KVM VPS $21.99/年 — https://my.racknerd.com/aff.php?aff=20179
- 📈 moomoo 美股/港股/加密货币交易,新户最高 $1000 赠金 — https://j.moomoo.com/0CrlDz
📊 版本对比 / Tier
| 能力 | 🆓 Free | ⭐ Pro | 👑 Enterprise |
|---|---|---|---|
| 核心功能 | ✅ | ✅ | ✅ |
| 自动化/AI | — | ✅ | ✅ |
| 优先支持 | — | 📧 | 📞 24/7 |
| 源码交付 | — | — | ✅ |
需要完整版/企业定制?联系 King AI Works — https://kingai.work/ | vip@kingai.work
