Communitygithub.com

ot-ics

用于授权 OT/ICS 安全评估,覆盖 Purdue 模型分区、PLC/SCADA 暴露面、工业协议发现以及安全的被动优先评估。

ot-ics 是什么?

该技能专为进行授权的 OT/ICS(操作技术/工业控制系统)安全评估而设计。它强调在真实工业环境中必须遵循的严格安全准则,以防止评估活动导致物理危害。核心理念是“被动优先”,即在未获得明确书面授权的情况下,禁止对 PLC 等关键设备进行任何写操作或高频率主动扫描。该技能工作流遵循 Purdue 模型,从网络分区与资产识别、被动流量分析(如 SPAN 端口镜像),到受限的只读主动验证,最后涵盖固件和补丁面分析。它集成了 Wireshark、Nmap(受限)以及专用 OT 安全工具(如 Claroty/Nozomi),并强调每一步操作都需记录证据,一旦发现异常立即停止并通报。该技能适用于主流 AI 编码平台,如 Claude Code,帮助安全团队在确保安全的前提下高效完成工控环境评估。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaoxuya520/reverse-skill/tree/main/skills/ot-ics

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OT / ICS 安全评估

立即执行(读完后立刻执行)

  1. NOW: 读取 ../field-journal/precedent-pentest.md — 工控环境误操作可致物理危害
  2. NOW: 书面授权必须写明:站点、网段、是否允许主动扫描/写寄存器
  3. NOW: 初始化案例;默认 被动优先;在 ready_for_act 前禁止对 PLC 写操作
  4. NEXT: 索引工具;多数工控工具需手动连接隔离实验网络
  5. ACT: 资产与分区识别 → 暴露面分析 → 只读验证

适用场景

  • 工控/SCADA/DCS 安全评估(授权)
  • Purdue 模型分区与跨区通道分析
  • Modbus/DNP3/S7/EtherNet/IP 等协议暴露检测
  • 工程师站、HMI、历史库、跳板主机评估
  • IT/OT 融合边界(防火墙规则、单向网关)

安全铁律(必须遵守)

严禁在未明确允许时:
- 对 PLC 写线圈/寄存器
- 全网高频率扫描生产 OT 网络
- 中断安全仪表系统(SIS)相关路径
优先顺序:只读识别、流量镜像、离线固件/配置分析

工作流

阶段 1 — 分区与资产

□ 绘制 Purdue L0–L5 草图:现场设备 → 控制 → 监督 → 站点 DMZ → 企业
□ 资产清单:PLC/RTU/HMI/工程师站/历史库/Jump host
□ 协议与端口基线(仅针对授权网段)

阶段 2 — 被动与只读

□ 配置 SPAN/端口镜像,抓取 PCAP → 使用 protocol-reverse / Wireshark 工控解析器分析
□ 离线审计配置与工程文件(如 TIA/RSLogix 导出等)
□ 记录默认口令与明文协议(如 Modbus 无认证)为发现项,不写入或修改值

阶段 3 — 受限主动探测(仅授权)

□ 低速识别,仅在维护窗口内进行
□ 优先使用只读功能码
□ 每一步都记录证据;发现异常立即停止并通报

阶段 4 — 固件/补丁面分析

□ 识别控制器固件版本 → 映射到 CVE(不盲目刷写固件)
□ 联合 firmware-pentest 技能进行离线镜像分析

工具链

工具用途注意
Wireshark 工控解析器被动解析需要端口镜像流量
Nmap NSE(受限)识别控制速率与时间窗口
Claroty/Nozomi 等资产发现商业/现场环境使用
PLC 厂商工程软件配置审计离线优先
binwalk / Ghidra固件分析离线

参考

  • references/ot-safe-assessment.md
  • ../firmware-pentest/ ../protocol-reverse/ ../network 通过 pentest-tools 工具

路由上下文

上游: MASTER R28
下游: 固件深度分析 firmware-pentest;协议分析 protocol-reverse;IT 横向移动 windows-ad/attack-chain
同级: 不要使用普通 Web 扫描默认参数来攻击 OT 系统

任务完成自检

  • 是否默认采用被动/只读方式,并记录了授权边界?
  • 是否避免了对控制回路的写操作(除非明确允许)?
  • 发现项是否包含对物理/过程影响的说明?
  • 是否更新了检查清单 / 日志?

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

apk-reverse

在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。

attack-chain

Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.

binary-diff

|

binary-ninja-reverse

Use for authorized binary analysis in Binary Ninja, including HLIL/MLIL/LLIL inspection, strings/imports/exports, cross-references, types, patch review, Python API automation, and optional Binary Ninja MCP or localhost HTTP integration.

browser-automation

|

browser-extension-reverse

Use for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery.

case-review

Reviews a reverse-skill case package for scope readiness, Evidence to Finding to Path traceability, work item coverage, timeline references, and optional artifact hash integrity before report handoff.

cloud-k8s

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

code-audit

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

ctf-sandbox

Thin PRIMARY for CTF / AWD / 靶场 multi-type orchestration. Hands off to the sidecar CTF-Sandbox-Orchestrator. Use when the user says CTF, AWD, 靶场, or 比赛题 and no more specific pwn/APK/IDA route already won.

database-security

Use for authorized database security assessment covering PostgreSQL/MySQL/MSSQL/Mongo/Redis exposure, authz, UDF/command paths, and misconfiguration review.

diagram-generator

generate, refine, validate, and render diagrams from natural language, notes, code snippets, schemas, tables, or existing diagram source. use for flowcharts, swimlanes, sequence diagrams, state diagrams, er diagrams, class diagrams, architecture/c4-style diagrams, dependency graphs, gantt charts, mind maps, user journeys, sankey-style flows, org charts, network graphs, and other visual models. supports mermaid by default, graphviz dot for complex graph layout, plantuml for uml-heavy engineering diagrams, and svg output when direct markup is more reliable.

digital-forensics

Use for authorized digital forensics including memory dumps, disk timelines, PCAP investigation, artifact triage, and IR evidence preservation.

docs-generator

|

dotnet-reverse

.NET / C# 二进制逆向。当目标是 .NET assembly(PE 头含 CLR、.exe/.dll 托管程序)、C# 编译产物(含 NativeAOT)、红队 Sharp* 工具(Rubeus / SharpHound / SharpHound 等)、.NET 混淆程序(ConfuserEx / SmartAssembly / Babel / Eazfuscator)、.NET loader / info-stealer / 套壳 malware 时使用。优先用 dnSpyEx + de4dot,需要 AI 直接操作时联动 dnSpy MCP。不用于纯 native 二进制(走 reverse-engineering / ida-reverse)。

edr-bypass-re

|

email-security

Use for authorized email security review including phishing analysis, header authentication (SPF/DKIM/DMARC), BEC patterns, and mailbox token abuse research.

firmware-pentest

|

ghidra-reverse

Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.

相关技能