security-audit
スター11
フォーク0
更新日2026年5月28日 04:37
服务器安全审计技能,全面检查系统安全配置、漏洞风险、入侵迹象,生成安全评估报告
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SKILL.md
readonlyメニュー
服务器安全审计技能,全面检查系统安全配置、漏洞风险、入侵迹象,生成安全评估报告
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
诊断DNS解析问题,检查DNS配置,提供DNS优化建议。
帮助用户管理Docker广场应用的安装、部署和运维
检查服务器SSL证书状态、有效期、配置安全性,确保证书合规。
备份恢复技能,提供网站文件、数据库、配置文件的备份策略和恢复指导
数据库管理技能,诊断数据库运行状态、性能问题,提供备份、优化和故障排查指导
防火墙管理技能,配置和管理服务器防火墙规则,确保端口安全和服务可访问性
| name | security_audit |
| description | 服务器安全审计技能,全面检查系统安全配置、漏洞风险、入侵迹象,生成安全评估报告 |
对服务器进行全面的安全检查和风险评估,发现潜在的安全隐患并提供加固建议。
iptables/ufw/firewalld 防火墙、/etc/passwd 用户管理、journalctl 日志netsh advfirewall 防火墙、net user 用户管理、事件查看器日志get_firewall_status、get_ssh_config、get_open_ports 等已处理平台差异get_firewall_status 检查防火墙状态和规则get_ssh_config 检查SSH安全配置(仅Linux)get_open_ports 检查开放端口get_login_history 检查登录历史和异常登录execute_command 执行 find / -perm -4000 -o -perm -2000 2>/dev/null 检查SUID/SGID文件
Windows: 调用 execute_command 执行 powershell "Get-ChildItem -Path C:\ -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.Attributes -match 'System' } | Select-Object FullName | Format-Table -AutoSize"execute_command 执行 cat /etc/passwd | grep -E '/bin/bash|/bin/sh' 检查可登录用户
Windows: 调用 execute_command 执行 net userexecute_command 执行 lastb 2>/dev/null | head -20 检查失败登录记录
Windows: 调用 execute_command 执行 powershell "Get-EventLog -LogName Security -EntryType FailureAudit -Newest 20 2>$null | Format-Table TimeGenerated,Message -AutoSize"get_system_info 检查是否有异常资源占用execute_command 执行 uname -r 获取内核版本execute_command 执行 lsmod | grep -E "algif_aead|esp4|esp6|espintcp|rxrpc" || echo "NO_VULN_MODULES_LOADED" 检查漏洞模块加载状态execute_command 执行 cat /etc/modprobe.d/*.conf 2>/dev/null | grep -E "install.*(algif_aead|esp4|esp6|rxrpc).*/bin/false" || echo "NO_MITIGATION_FOUND" 检查缓解措施execute_command 执行 cat /proc/sys/kernel/unprivileged_userns_clone 2>/dev/null; cat /proc/sys/user/max_user_namespaces 2>/dev/null 检查用户命名空间限制重点检查以下高危内核漏洞:
如需完整检测流程和漏洞知识库,调用 Skills 工具加载 linux_vuln_check 技能。
panel_site_list 检查网站安全配置execute_command 执行 find /ruyi/wwwroot -name "*.php" -type f -mtime -1 2>/dev/null | head -20 检查最近修改的PHP文件
Windows: 调用 execute_command 执行 powershell "Get-ChildItem D:\RuyiSoft\wwwroot -Recurse -Filter *.php -ErrorAction SilentlyContinue | Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-1) } | Select-Object FullName,LastWriteTime | Format-Table -AutoSize"get_system_logs 查看Web错误日志中的异常请求# 服务器安全审计报告
## 安全评分
- 综合评分:xx/100
- 防火墙:安全/注意/危险
- SSH安全:安全/注意/危险(仅Linux)
- 端口安全:安全/注意/危险
- 登录安全:安全/注意/危险
- 内核漏洞:安全/注意/危险(仅Linux)
## 内核漏洞检测结果(仅Linux)
| 漏洞 | CVE | 状态 | 风险等级 |
|------|-----|------|----------|
| Copy Fail | CVE-2026-31431 | 受影响/已缓解/已修补 | 高 |
| Dirty Frag | QVD-2026-24699 | 受影响/已缓解/已修补 | 高 |
| Fragnesia | CVE-2026-46300 | 受影响/已缓解/已修补 | 高 |
## 高危风险
| 风险项 | 描述 | 修复建议 |
|--------|------|----------|
## 中危风险
| 风险项 | 描述 | 修复建议 |
|--------|------|----------|
## 安全项
- 已正确配置的安全项列表
## 加固建议
1. 具体可操作的加固步骤