detecting-dnp3-protocol-anomalies

Featured

Detect anomalies in DNP3 (Distributed Network Protocol 3) communications used in SCADA systems by monitoring for unauthorized control commands, firmware update attempts, protocol violations, and deviations from baseline traffic patterns using deep packet inspection and machine learning approaches.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Detecting DNP3 Protocol Anomalies ## When to Use - When monitoring SCADA systems in the energy sector where DNP3 is the primary protocol - When building detection rules for DNP3-based attacks against RTUs and substations - When investigating suspected unauthorized control commands sent via DNP3 - When deploying IDS with DNP3 deep packet inspection at utility substations - When responding to alerts from OT monitoring platforms about DNP3 traffic anomalies **Do not use** for non-DNP3 protocol monitoring (see detecting-modbus-command-injection-attacks for Modbus), for DNP3 Secure Authentication configuration (separate implementation), or for protocol-agnostic network anomaly detection. ## Prerequisites - Network TAP/SPAN on DNP3 communication segments (TCP port 20000 or serial) - Baseline of normal DNP3 traffic patterns (masters, outstations, poll intervals, function codes) - Suricata or Zeek with DNP3 protocol parser enabled - Understanding of DNP3 function codes and object groups used in the environment - DNP3 communication topology map (master-to-outstation relationships) ## Workflow ### Step 1: Analyze DNP3 Traffic for Anomalies ```python #!/usr/bin/env python3 """DNP3 Protocol Anomaly Detector. Monitors DNP3 communications for unauthorized control commands, protocol violations, and deviations from established baselines. Supports both TCP and serial DNP3 deployments. """ import struct import sys import json from collections import defaultdict from datetime import...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category