Masriyan/Claude-Code-CyberSecurity-Skill
GitHub: Masriyan/Claude-Code-CyberSecurity-Skill
面向网络安全专业人员的 Claude Code 技能合集,通过结构化指令文件让 AI 在 19 个安全领域提供专家级运营辅助。
Stars: 190 | Forks: 37
## 更新测试
## 技能合集
| # | 技能 | 领域 | 核心能力 |
|:-:| ----- | ------ | ---------------- |
| 01 | [侦察与 OSINT](skills/01-recon-osint/) | 侦察 | 子域名枚举、DNS 分析、技术指纹识别、Google dorking、WHOIS |
| 02 | [漏洞扫描器](skills/02-vulnerability-scanner/) | 评估 | 依赖审计、配置审查、CVSS 评分、结构化漏洞报告 |
| 03 | [漏洞利用开发](skills/03-exploit-development/) | 攻击 | PoC 模板、payload 生成、缓冲区溢出、Web 漏洞利用 payload |
| 04 | [逆向工程](skills/04-reverse-engineering/) | 分析 | 二进制分类、汇编解读、固件 RE、协议逆向、CTF |
| 05 | [恶意软件分析](skills/05-malware-analysis/) | 威胁分析 | 静态分析、YARA 生成、沙箱设置、行为分析、IOC 提取 |
| 06 | [威胁狩猎](skills/06-threat-hunting/) | 狩猎 | IOC 提取、ATT&CK 映射、狩猎假设、Sigma + SIEM 查询库 |
| 07 | [事件响应](skills/07-incident-response/) | IR 与取证 | PICERL 剧本、证据收集、时间线分析、内存取证、IR 报告 |
| 08 | [网络安全](skills/08-network-security/) | 网络 | PCAP 分析、Suricata/Snort 规则、防火墙审计、信标检测 |
| 09 | [Web 安全](skills/09-web-security/) | Web | OWASP Top 10、注入测试、API 安全、JWT 分析、安全标头 |
| 10 | [云安全](skills/10-cloud-security/) | 云 | AWS/Azure/GCP 审计、Dockerfile 审查、K8s 加固、IaC 扫描 |
| 11 | [CSOC 自动化](skills/11-csoc-automation/) | SOC 运营 | 告警分类、剧本 YAML、升级工作流、轮班报告、KPI 追踪 |
| 12 | [日志分析与 SIEM](skills/12-log-analysis/) | 日志分析 | SIEM 查询库 (Splunk/KQL/EQL)、Sigma 规则、异常检测、关联分析 |
| 13 | [密码分析](skills/13-crypto-analysis/) | 密码学 | TLS 审计、密码套件分析、哈希识别、加密代码审查、PQC 指南 |
| 14 | [红队行动](skills/14-red-team-ops/) | 红队 | 授权规划、C2 设计、AD 攻击、OPSEC、社会工程学、报告 |
| 15 | [蓝队防御](skills/15-blue-team-defense/) | 蓝队 | Linux/Windows 加固、检测工程、基线、补丁管理 |
| 16 | [AI 与 LLM 安全](skills/16-ai-llm-security/) | AI 安全 | Prompt 注入、OWASP LLM Top 10、RAG 与 agent/tool-use 安全、模型供应链、AI 红队 |
| 17 | [移动安全](skills/17-mobile-security/) | 移动 | Android/iOS 测试、MASVS/MASTG、APK/IPA 静态分析、Frida/objection、移动恶意软件分类 |
| 18 | [OT / ICS / SCADA 安全](skills/18-ot-ics-security/) | 工业 | Purdue 模型、Modbus/DNP3/S7 分析、IEC 62443、ATT&CK for ICS、安全第一方法论 |
| 19 | [GRC 与合规](skills/19-grc-compliance/) | 治理 | 风险评分、NIST CSF 2.0/ISO 27001/SOC 2 映射、差距分析、审计证据、策略生成 |
## 快速开始
### 1. 克隆仓库
```
git clone https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill.git
cd Claude-Code-CyberSecurity-Skill
```
### 2. 将技能安装到 Claude Code
Claude Code 从两个位置加载技能:
| 位置 | 范围 | 路径 |
|----------|-------|------|
| **全局** | 所有项目 | `~/.claude/skills/` |
| **项目** | 仅此项目 | `./.claude/skills/` |
```
# 全局安装(推荐 — 处处可用)
mkdir -p ~/.claude/skills
cp -r skills/* ~/.claude/skills/
# 或者 symlink 用于开发(更改自动同步)
ln -sf "$(pwd)/skills/"* ~/.claude/skills/
# 或者安装到特定项目
mkdir -p /path/to/project/.claude/skills
cp -r skills/* /path/to/project/.claude/skills/
```
### 3. 使用 Claude Code
打开 Claude Code 并自然交谈。Claude 会根据您的询问激活相关技能:
```
claude
```
**示例交互:**
```
# Recon(Skill 01 激活)
> Enumerate all subdomains for example.com and fingerprint the web stack
# Vulnerability Assessment(Skill 02 激活)
> Audit the Python dependencies in my project for known CVEs
# Malware Analysis(Skill 05 激活)
> Generate YARA rules from this suspicious PE file and extract all IOCs
# Threat Hunting(Skill 06 激活)
> Map these TTPs to MITRE ATT&CK and write Splunk SPL queries to hunt for them
# Blue Team(Skill 15 激活)
> Give me hardening commands to secure this Ubuntu 24.04 server following CIS Level 1
# Incident Response(Skill 07 激活)
> Create a ransomware incident response playbook for our SOC team
# AI/LLM Security(Skill 16 激活)
> Threat-model this RAG chatbot against the OWASP LLM Top 10 and test it for prompt injection
# Mobile Security(Skill 17 激活)
> Analyze this APK for exported components and hardcoded secrets against OWASP MASVS
# OT/ICS Security(Skill 18 激活)
> From this capture, which hosts are sending Modbus write commands to the PLCs?
# GRC & Compliance(Skill 19 激活)
> Run a SOC 2 gap analysis and map our controls to NIST CSF 2.0
```
您也可以**显式指定技能名称**:
```
> Use the reverse-engineering skill to interpret this ARM assembly
> Use the log-analysis skill to build a Sentinel KQL query for DCSync detection
> Use the blue-team-defense skill to audit this Dockerfile
```
## v3.0 的新增内容
**更庞大、更敏锐、更强大 — 新增四个领域,并对原有的 15 个技能进行了全面升级:**
- **4 项新技能 (16–19)** — AI 与 LLM 安全、移动安全、OT/ICS/SCADA 安全,以及 GRC 与合规,每项都包含完整的方法论、输出模板和可运行的脚本
- **AI/LLM 安全** — OWASP LLM Top 10 (2025) + MITRE ATLAS、Prompt 注入测试工具、RAG/agent/tool-use 审查,以及模型供应链 (`pickle`) 扫描器
- **移动安全** — OWASP MASVS/MASTG、自动化 APK 静态分类(manifest、导出组件、机密扫描)、Frida/objection 工作流
- **OT/ICS/SCADA** — Purdue 模型审查、被动工业协议分析 (Modbus/DNP3/S7)、ATT&CK for ICS,以及具有安全第一关卡 IEC 62443 对齐
- **GRC 与合规** — 风险登记册评分(定性 + ALE)、跨框架控制交叉比对(NIST CSF 2.0 ↔ ISO 27001 ↔ SOC 2 ↔ 800-53 ↔ CIS v8)、差距分析和策略生成
- **"v3.0 增强(2026 更新)"** 部分已添加到每个原始技能中 — 最新技术手段(JA4+、CVSS 4.0 + EPSS + CISA KEV、最终定稿的 FIPS 203/204/205 PQC、AD CS ESC1–ESC14、OCSF 检测即代码、云攻击路径思维等)
- **更强大的脚本** — 红队授权规划器现在支持与 ATT&CK 对齐并导出 Markdown;加固检查器的检查项翻倍(sysctl、SSH 加密、kernel 模块)并添加了修复提示;修复了潜在的权限处理 bug
- **内置授权与安全关卡** — 攻击性 (03, 14) 和高风险 (16, 18) 技能在继续之前需要显式的授权/安全确认
## 项目结构
```
Claude-Code-CyberSecurity-Skill/
├── README.md
├── INSTALL.md
├── USAGE.md
├── CONTRIBUTING.md
├── CHANGELOG.md
├── SECURITY.md
├── LICENSE
├── .gitignore
│
└── skills/
├── 01-recon-osint/ SKILL.md + scripts/ + examples/ + resources/
├── 02-vulnerability-scanner/ SKILL.md + scripts/ + examples/
├── 03-exploit-development/ SKILL.md + scripts/ + examples/
├── 04-reverse-engineering/ SKILL.md + scripts/ + examples/
├── 05-malware-analysis/ SKILL.md + scripts/ + examples/
├── 06-threat-hunting/ SKILL.md + scripts/ + examples/
├── 07-incident-response/ SKILL.md + scripts/ + examples/
├── 08-network-security/ SKILL.md + scripts/ + examples/
├── 09-web-security/ SKILL.md + scripts/ + examples/
├── 10-cloud-security/ SKILL.md + scripts/ + examples/
├── 11-csoc-automation/ SKILL.md + scripts/ + examples/
├── 12-log-analysis/ SKILL.md + scripts/ + examples/
├── 13-crypto-analysis/ SKILL.md + scripts/ + examples/
├── 14-red-team-ops/ SKILL.md + scripts/ + examples/
├── 15-blue-team-defense/ SKILL.md + scripts/ + examples/
├── 16-ai-llm-security/ SKILL.md + scripts/ + examples/
├── 17-mobile-security/ SKILL.md + scripts/ + examples/
├── 18-ot-ics-security/ SKILL.md + scripts/ + examples/
└── 19-grc-compliance/ SKILL.md + scripts/ + examples/
```
## 前置条件
| 需求 | 版本 | 用途 |
|-------------|---------|---------|
| Claude Code | 最新版 | AI 编码助手 — [安装指南](https://docs.anthropic.com/en/docs/claude-code) |
| Python | 3.10+ | 自动化脚本 |
| Git | 2.x+ | 仓库管理 |
### 可选工具(由特定技能增强)
- **nmap** — 端口扫描和服务检测(技能 01、08)
- **Burp Suite** — Web 安全测试(技能 09)
- **Ghidra / IDA Free** — 逆向工程(技能 04)
- **Wireshark / tshark** — 网络流量分析(技能 08)
- **Volatility 3** — 内存取证(技能 07)
- **YARA** — 恶意软件模式匹配(技能 05、06)
- **Trivy** — 容器和 IaC 扫描(技能 10)
- **Checkov / tfsec** — Terraform 安全(技能 10)
- **Sigma CLI** — SIEM 平台间的规则转换(技能 06、12、15)
- **garak / promptfoo** — LLM 漏洞扫描和红队评估(技能 16)
- **apktool / jadx / Frida / objection** — 移动应用逆向与插桩(技能 17)
- **带 ICS 协议解析的 tshark** — Modbus/DNP3/S7 协议分析(技能 18)
## 许可证
MIT 许可证 — 详情请参阅 [LICENSE](LICENSE)。
## 免责声明
标签:AI辅助, Claude Code, DNS 反向解析, IP 地址批量处理, LLM提示词, 安全运营, 应用安全, 扫描框架, 技能库, 插件系统, 数字取证, 网络安全, 自动化脚本, 隐私保护