Communitygithub.com

ot-ics

用於授權的 OT/ICS 安全評估,涵蓋 Purdue 模型分區、PLC/SCADA 暴露面、工業協定發現和安全優先的被動評估。

ot-ics 是什麼?

這是一個專為 OT/ICS 安全評估設計的 AI 代理技能,遵循 Purdue 模型分區方法,強調被動優先的安全原則。它適用於對 PLC、SCADA、DCS 等工業控制系統進行授權的安全測試,支援 Modbus、DNP3、S7、EtherNet/IP 等常見工業協定的發現與暴露評估。該技能明確要求在未獲書面授權時禁止對 PLC 進行寫操作或高頻掃描,並強制使用 SPAN/流量鏡像、離線固件分析、配置審計等被動或只讀技術。它與 firmware-pentest、protocol-reverse 等工具鏈整合,能在 Cursor、Codex 或 Claude Code 等平台上執行,並透過路由上下文與 MASTER R28 協調,確保評估過程不影響生產系統安全。

相容平台~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. 現在: 讀取 ../field-journal/precedent-pentest.md — 工控環境誤操作可致物理危害
  2. 現在: 書面授權必須寫清:站點、網段、是否允許主動掃描/寫暫存器
  3. 現在: case-init;預設 passive-first;ready_for_act 前禁止對 PLC 寫操作
  4. 下一步: tool-index;多數工控工具需手動與隔離實驗網
  5. 行動: 資產與分區識別 → 暴露面 → 唯讀驗證

適用場景

  • 工控/SCADA/DCS 安全評估(授權)
  • Purdue 模型分區與跨區通道
  • Modbus/DNP3/S7/EtherNet/IP 等協定暴露
  • 工程師站、HMI、歷史庫、跳板主機
  • IT/OT 融合邊界(防火牆規則、單向閘)

安全鐵律(必遵守)

禁止在未明確允許時:
- 對 PLC 寫線圈/暫存器
- 全網高速率掃描生產 OT
- 中斷安全儀表系統(SIS)相關路徑
優先:唯讀識別、流量鏡像、離線韌體/配置分析

工作流程

階段 1 — 分區與資產

□ Purdue L0–L5 草圖:現場設備 → 控制 → 監督 → 站點 DMZ → 企業
□ 資產清單:PLC/RTU/HMI/工程師站/歷史庫/跳板主機
□ 協定與埠基線(僅授權網段)

階段 2 — 被動與唯讀

□ SPAN/鏡像 PCAP → protocol-reverse / Wireshark 工控解析器
□ 配置與工程檔案離線審計(TIA/RSLogix 匯出等)
□ 預設口令與明文協定(Modbus 無認證)記錄為 Finding,不寫盤改值

階段 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

任務完成自檢

  • 是否預設被動/唯讀並記錄授權邊界?
  • 是否避免對控制迴路寫操作(除非明確允許)?
  • Finding 是否含物理/過程影響說明?
  • Checklist / journal?

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.

相關技能