profinet
यह क्या करती है
यह गाइड PROFINET के सुरक्षा जाँचों को कवर करती है, एक फ़ील्डबस जो फ़ैक्ट्रियों में नेटवर्क की सबसे निचली परत पर काम करता है। यह लिखित मंज़ूरी वाली प्लांट सुरक्षा टीमों के लिए है, क्योंकि बदलाव उत्पादन रोक सकते हैं।
कब इस्तेमाल करें
- ✓जब अधिकृत प्लांट समीक्षा को किसी segment पर PROFINET डिवाइसों की सूची चाहिए।
- ✓जब बिना उनकी सेटिंग बदले देखना हो कि कौन-से डिवाइस मौजूद हैं।
- ✓जब टीम समझना चाहती है कि डिवाइस का नाम या पता बदलना उत्पादन को कैसे बाधित कर सकता है।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ics-ot/profinet/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“कृपया केवल-पढ़ने वाली discovery से हमारे फ़ैक्ट्रियों के segment पर PROFINET डिवाइस सूचीबद्ध करें और बताएँ कि हर एक क्या है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट स्थानीय segment पर केवल-पढ़ने वाले discovery अनुरोध भेजता है, हर मिले डिवाइस की सूची बनाता है, और उसका नाम व प्रकार नोट करता है। कोई बदलाव नहीं भेजा जाता।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
PROFINET Attack Playbook (EtherType 0x8892 / DCP)
PROFINET is the dominant European/Siemens fieldbus for deterministic real-time process automation — deployed in Siemens SIMATIC PLC networks, Beckhoff TwinCAT, Phoenix Contact, and virtually all post-2005 EU manufacturing. Unlike Modbus or EtherNet/IP, PROFINET RT operates at Layer 2 (EtherType 0x8892) — there is no IP header, no routing, and no firewall coverage at the IP layer. The attacker must be on the same Ethernet broadcast domain (OT L2 segment, or have a SPAN/TAP into it). DCP (Discovery and basic Configuration Protocol) provides unauthenticated device enumeration, naming, IP assignment, and factory-reset — all without credentials.
SAFETY FIRST
DCP Set commands (station-name reassignment, IP change, factory-reset) immediately disrupt the IO-controller ↔ IO-device association. When an IO-device loses its expected station name, the PROFINET IO controller goes to BF (Bus Fault) state and the process typically enters a safe/halt state or continues with the last-known values depending on watchdog configuration. This is a process-disruption event. Confirm written scope authorization before any DCP Set or RT frame injection. DCP Identify (read) is safe.
Prerequisites
- Physical or logical access to the OT L2 segment (direct port, rogue switch, SPAN, compromised HMI/engineering workstation on the same VLAN).
- Wireshark with
pn_dcpdissector (ships by default — filter:pn_dcp). - Python with
scapyfor DCP crafting (orpython-profinetlibrary).
# Verify interface sees PROFINET frames
sudo tcpdump -i eth0 ether proto 0x8892 -c 20
# If frames appear: you are on the OT segment
# Install scapy (already on Kali)
pip install scapy
# python-profinet (alternative higher-level library)
pip install profinet
Phase 1 — Discover: DCP Identify-All broadcast
DCP Identify-All is a Layer-2 broadcast to 01:0E:CF:00:00:00 (PROFINET multicast). All devices on the segment reply with their station name, IP, MAC, device type, vendor, order number, firmware.
Wireshark passive discovery
# Capture DCP traffic — Identify requests and responses
sudo wireshark -i eth0 -f "ether proto 0x8892" -k
# Filter in Wireshark: pn_dcp.block_type == 0x0101 (NameOfStation)
# Filter for Identify responses: pn_dcp.service_id == 5 && pn_dcp.service_type == 1
Active DCP Identify-All broadcast (Scapy)
from scapy.all import Ether, sendp, sniff
import struct, socket, time
PROFINET_ETHERTYPE = 0x8892
DCP_MULTICAST_MAC = "01:0e:cf:00:00:00"
IFACE = "eth0" # replace with your OT interface
def build_dcp_identify_all(xid=1):
"""Build a PROFINET DCP Identify-All request frame."""
# PROFINET Real-Time header: FrameID 0xFEFE (DCP Identify)
frame_id = struct.pack(">H", 0xFEFE)
# DCP header: ServiceID=5 (Identify), ServiceType=0 (Request), XID, Reserved, DCPDataLength
dcp_header = struct.pack(">BBHHHH",
0x05, # ServiceID: Identify
0x00, # ServiceType: Request
xid, # XID
0x0000, # Reserved
0x0000, # ResponseDelay (0=immediate broadcast)
0x0004, # DCPDataLength (4 bytes for the suboption block)
)
# DCP block: Option=All (0xFF), Suboption=All (0xFF), DCPBlockLength=0
dcp_block = struct.pack(">BBH", 0xFF, 0xFF, 0x0000)
payload = frame_id + dcp_header + dcp_block
frame = Ether(dst=DCP_MULTICAST_MAC, src="00:11:22:33:44:55", type=PROFINET_ETHERTYPE) / payload
return frame
def dcp_identify_all(iface=IFACE, timeout=3):
frame = build_dcp_identify_all()
sendp(frame, iface=iface, verbose=False)
print(f"[*] DCP Identify-All sent on {iface}, listening {timeout}s for responses...")
responses = sniff(
iface=iface,
filter=f"ether proto {hex(PROFINET_ETHERTYPE)}",
timeout=timeout,
count=200,
)
devices = []
for pkt in responses:
raw = bytes(pkt.payload)
frame_id = struct.unpack(">H", raw[:2])[0]
if frame_id == 0xFEFE and len(raw) > 10:
# This is a DCP response — parse it
src_mac = pkt.src
# Extract NameOfStation from block (simple heuristic parse)
# Full parsing requires walking DCP blocks; Wireshark's pn_dcp is most reliable
devices.append({"mac": src_mac, "raw_len": len(raw)})
print(f" Response from {src_mac} ({len(raw)} bytes) — open in Wireshark for details")
return devices
dcp_identify_all()
अक्सर पूछे जाने वाले सवाल
PROFINET अलग कैसे है?
गाइड कहती है कि यह नेटवर्क की सबसे निचली परत पर काम करता है, इसलिए यह केवल उसी स्थानीय segment से पहुँच योग्य है।
बदलाव का जोखिम क्या है?
डिवाइस का नाम या पता बदलने से कंट्रोलर और डिवाइस का लिंक टूट सकता है, जिसे गाइड प्रक्रिया में बाधा कहती है।
एकमात्र सुरक्षित कदम क्या है?
केवल-पढ़ने वाली discovery, जिसे गाइड सुरक्षित बताती है।
जानकारी
लेखक का मूल विवरण
PROFINET (L2 EtherType 0x8892 / DCP) attack playbook — DCP Identify-All broadcast enumeration, device fingerprinting, station-name and IP reassignment (breaks IO-controller mapping), flash-LED physical location, factory-reset, RT frame injection/replay for cyclic-IO spoofing. Siemens/EU fieldbus peer of S7Comm; requires same L2 broadcast domain.
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #14040
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।