alibabacloud-ecs-sec-inspect
Linux 服务器安全入侵检测与取证工具,专为 AI Agent 设计。自动判断服务器是否被入侵, 提供完整证据链和可执行修复建议。50+ 安全分析器,10 个数据采集器,103+ MITRE ATT&CK 技术映射,支持 3 种部署模式。 当用户询问服务器安全、入侵检测、系统审计、恶意软件检测、安全事件响应时使用。 每当需要判断服务器是否被入侵、检查后门木马、分析安全事件时,优先使用此技能。 务必在发现安全异常时主动调用此技能,即使用户没有明确要求安全检查。
npx skills add aliyun/alibabacloud-ecs-troubleshoot-skills --skill alibabacloud-ecs-sec-inspect --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# sec-inspect > **Linux 服务器安全入侵检测与取证工具 | Linux Server Security Intrusion Detection & Forensics Tool** --- ## First Run Setup | 首次运行 **AI Agent 首次使用本 Skill 时,MUST 执行以下权限申请(一次性,后续无需重复):** ```bash cd /data/sec-inspect && sudo python3 scripts/setup_permissions.py --auto ``` 这将自动: 1. 检测系统已安装的 AI 工具(Claude Code, Qoder, OpenCode, Windsurf, Cursor, Gemini CLI, Trae) 2. 配置最小权限集(sudo, read all, write workspace) 3. 备份已有配置 4. 验证权限生效 配置完成后重启 AI 工具即可永久生效。验证权限: ```bash cd /data/sec-inspect && python3 scripts/setup_permissions.py --verify ``` --- ## Quick Start | 快速开始 **完整流程: 权限申请 → 环境初始化 → 执行扫描 → 反思验证 → 输出结果** ### Step 1: 环境初始化(首次) ```bash cd /data/sec-inspect && sudo bash scripts/setup.sh ``` 自动完成:检测/安装 Python >= 3.11、创建 workspace、安装 Skill 到 AI 工具目录。 ### Step 2: 执行扫描 ```bash # 推荐(源码模式) cd /data/sec-inspect && sudo python3 -m scripts.main --output-dir /data/sec-inspect/workspace # 编译版(需 Python 3.11 精确匹配) cd /data/sec-inspect && sudo python3 scripts/main.pyz --output-dir /data/sec-inspect/workspace ``` > **pyz 失败处理**:若出现 `bad magic number` 错误,详见 [references/python-runtime.md](references/python-runtime.md) ### Step 3: 查看报告 报告输出到 `/data/sec-inspect/workspace/{YYYY-MM-DD}/report/`: | 文件 | 格式 | 用途 | |
- First Run Setup | 首次运行
- Quick Start | 快速开始
- Step 1: 环境初始化(首次)
- Step 2: 执行扫描
- Step 3: 查看报告
- Step 4: Post-Scan Reflection(MANDATORY)
- What Can It Do? | 能做什么?
- Detection Capabilities | 检测能力
- Key Features | 核心特性
- Prerequisites | 前置条件
- Security Model | 安全模型
- Required Permissions | 最小权限集
- Command Line | 命令行参考
- Core Parameters | 核心参数
cd /data/sec-inspect && sudo python3 scripts/setup_permissions.py --auto cd /data/sec-inspect && python3 scripts/setup_permissions.py --verify cd /data/sec-inspect && sudo bash scripts/setup.sh cd /data/sec-inspect && sudo python3 -m scripts.main --output-dir /data/sec-inspect/workspace cd /data/sec-inspect && sudo python3 scripts/main.pyz --output-dir /data/sec-inspect/workspace cd /data/sec-inspect && sudo python3 -m scripts.main --format both cd /data/sec-inspect && sudo python3 -m scripts.main --full-report cd /data/sec-inspect && sudo python3 -m scripts.main --force cd /data/sec-inspect && python3 -m scripts.main --list-analyzers cd /data/sec-inspect && python3 -m scripts.main --show-assets all
What does the alibabacloud-ecs-sec-inspect skill do?
Linux 服务器安全入侵检测与取证工具,专为 AI Agent 设计。自动判断服务器是否被入侵, 提供完整证据链和可执行修复建议。50+ 安全分析器,10 个数据采集器,103+ MITRE ATT&CK 技术映射,支持 3 种部署模式。 当用户询问服务器安全、入侵检测、系统审计、恶意软件检测、安全事件响应时使用。 每当需要判断服务器是否被入侵、检查后门木马、分析安全事件时,优先使用此技能。 务必在发现安全异常时主动调用此技能,即使用户没有明确要求安全检查。
How do I install it?
Run `npx skills add aliyun/alibabacloud-ecs-troubleshoot-skills --skill alibabacloud-ecs-sec-inspect --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From aliyun/alibabacloud-ecs-troubleshoot-skills, a repository with 160 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
