re-ics

re-ics is a skill for Claude Code from dslsdzc/rev-skills. It costs 46 tokens per session (3,430 once invoked), scanned B, original, Apache-2.0.

A guide to analyzing industrial control system traffic, including Modbus, DNP3, and OPC UA, the communication protocols used by equipment such as PLCs, HMIs, and SCADA systems.

In plain words
What is it for?
Use it to parse packet captures, rebuild PLC or RTU point lists, study industrial device communications, and support authorized security testing.
Why use it?
It helps turn captured network traffic into understandable device actions and data points. It also sets boundaries for testing these sensitive systems safely and with authorization.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to parse packet captures, rebuild PLC or RTU point lists, study industrial device communications, and support authorized security testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-ics
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dslsdzc/rev-skills --skill re-ics
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re-ics

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ics/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-ics)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ics"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-ics

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ics"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,430 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 26
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.03430
Opus 5 $0.00023 $0.01715
Sonnet 5 $0.00009 $0.00686
Haiku 4.5 $0.00005 $0.00343

Measured 9d ago against content hash 709a462a1b2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

re-ics scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Linux: `apt install wireshark tshark` / `dnf install wireshark-cli wireshark` / `pacman -S wireshark-cli wireshark-qt`(Arch 已拆分为 wireshark-cli + wireshark-qt;Debian 安装时选"允许非 root 抓包",或 `sudo dpkg-reconfigure wireshark-
.claude/skills/re-ics/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

工控协议逆向(ICS/SCADA)

何时使用 / 何时不用

  • 用:拿到工控(ICS/SCADA)流量(pcap / 实时抓包)需要解析 Modbus / DNP3 / OPC UA 语义
  • 用:从流量重建 PLC/RTU 的点表(线圈/寄存器/对象映射)
  • 用:工控设备(PLC/HMI/RTU)固件与通信分析(配合 [[re-firmware]])
  • 用:授权范围内的 ICS 安全测试(见步骤 5 边界)
  • 不用:流量是密文/带加密层(先 [[re-crypto-id]] → [[re-crypto-keys]] → [[re-crypto-decrypt]])
  • 不用:非工控自定义协议(那是 [[re-proto-rev]])
  • 不用:只需要抓包(那是 [[re-netcap]])

工具准备

所有工具先验证再使用。ICS 分析红线:只测授权系统、默认隔离网络([[platform-tips]] 最高原则)——测试环境严禁接生产 OT 网络(见步骤 5)。

wireshark / tshark —— ICS 解析器主力(modbus/dnp3/opcua dissector 内置)

  • Linux: apt install wireshark tshark / dnf install wireshark-cli wireshark / pacman -S wireshark-cli wireshark-qt(Arch 已拆分为 wireshark-cli + wireshark-qt;Debian 安装时选"允许非 root 抓包",或 sudo dpkg-reconfigure wireshark-common 后把用户加入 wireshark 组)
  • macOS: brew install --cask wireshark(含 tshark CLI;或 brew install wireshark 仅 CLI)
  • Windows: choco install wireshark(或官方安装包);WSL 内用 Linux 版
  • 验证: tshark --versiontshark -G fields | grep -iE 'modbus|dnp3|opcua' 列出 ICS 字段名(各版本字段名可能有微调,以该输出为准)

scapy —— modbus 层解析与构造(contrib 层)

  • 全平台: pip install scapy(Python 3,推荐)
  • Linux: apt install python3-scapy(Debian 系;含 contrib 层)
  • 验证: python3 -c "from scapy.contrib.modbus import ModbusADURequest, ModbusADUResponse; print('ok')"
  • 注意:modbus 层在 scapy.contrib.modbus(非默认层,需显式 import,ModbusADURequest/ModbusADUResponse + ModbusPDU0X*Request/Response 各功能码类);scapy 各版本均无 DNP3 / OPC UA 层 → DNP3/OPC UA 用 Wireshark 解析或写自定义解析器(见步骤 4)
  • 读 pcap 用 rdpcap(纯 Python 解析,无需 libpcap)

python3 —— 解析脚本运行环境

  • 安装与验证见 [[re-proto-rev]] 工具准备

操作步骤

按顺序执行,每步记下结果。前提:流量已捕获([[re-netcap]])且为明文(密文先走 [[re-crypto-decrypt]])。

  1. 协议识别(端口 + 特征)
    tshark -r cap.pcap -T fields -e tcp.dstport | sort | uniq -c | sort -rn   # 端口统计
    tshark -r cap.pcap -q -z io,phs                                          # 协议分层统计(dissector 命中情况)
    
    • 端口速查:Modbus/TCP 502(Modbus over TLS 802)、DNP3 20000/TCP,UDP,SCTP(安全 DNP3 dnp-sec 19999/TCP,UDP,SCTP)、OPC UA 二进制 4840/TCP、S7comm 102、EtherNet/IP 44818、BACnet/IP 47808/UDP
    • 端口仅作初判(工控常走非标端口),用特征确认:Modbus/TCP 事务 = transId(2) + protoId 0x0000(2) + len(2) + unitId(1) + 功能码(1);DNP3 链路帧首 2 字节固定 05 64;OPC UA 二进制头 3 字节消息类型(HEL/ACK/OPN/CLO/MSG)

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 114 lines · 46 tokens per session scan B 709a462a1b2e

Subscribe to this mod's changes

re-ics is a skill published in the GitHub repository dslsdzc/rev-skills (54 stars, last pushed 14d ago), licensed Apache-2.0. It adds 46 tokens to every session and 3,430 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

reverse-engineering-arm-binaries

Reverse engineers ARM/AArch64 malware by identifying the architecture and instruction set state (ARM/Thumb), parsing ELF/Mach-O ARM headers, and orienting analysis around the ARM calling convention. Activates for requests to reverse ARM binaries, analyze AArch64 malware, or handle ARM/Thumb instruction-set decoding.

meltedinhex/analyst-ai-pack · 69 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

ot-ics-attack

A guide to assessing operational technology and industrial control systems such as SCADA, DCS, and PLC environments. These systems monitor and control physical processes and often use specialized network protocols.

wgpsec/AboutSecurity · 81 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

plurigrid/asi · 40 tokens