Modbus TCP
— Modbus ProtocolModbus is an industrial protocol developed by Modicon (Schneider Electric) in 1979 to connect industrial electronic devices like PLCs, variable frequency motor drives, and factory sensors. In modern factories, Modbus TCP encapsulates legacy serial frames inside TCP port 502.
Interactive Session: How Modbus TCP Works
Step through the packet exchange sequence between nodes.
Interactive Execution Sandbox
Interact with a live or clearly-labelled simulated instance of Modbus TCP.
Threat Model & Attack Simulation
How this protocol is attacked in practice, what defenders can see, and which control stops it.
Threat model & attack simulation
SimulatedDefensive education. Every step runs in this page; no traffic is generated or sent.
Unauthorised register write
InjectionModbus has no authentication, so anyone who can reach port 502 can write coils or registers.
Reach the PLC
The attacker gains access to the control network.
Connections to port 502 from IT segments.
Physical process disruption or equipment damage.
Defences that matter
- Segment OT from IT
- Modbus-aware firewalls and allowlists
- Deep packet inspection for write operations
This is a conceptual model for defenders, not an exploit toolkit. It contains no payloads, tooling or instructions for attacking systems you do not own.
Protocol Specification & Architecture
Key characteristics, real-world deployment patterns, and trade-offs.
Core Technical Features
- Master/Slave (Client/Server) request-response architecture
- Four memory tables: Discrete Inputs, Coils (outputs), Input Registers, and Holding Registers
- Function codes: Read Coils (01), Read Holding Registers (03), Write Single Register (06)
- Modbus TCP adds a 7-byte MBAP (Modbus Application Protocol) header
Real-World Use Cases
- Factory assembly line PLC automation
- Solar inverter power generation monitoring
- Building HVAC chiller control systems
Advantages & Strengths
- Supported by practically 100% of industrial hardware and SCADA software worldwide
- Ultra-simple register model
Limitations & Vulnerabilities
- Zero authentication, encryption, or integrity verification (must be isolated on air-gapped industrial OT networks)