ProtoStackv0.1

Interactive Protocol Visualizer

Internet of Things (IoT)Professional trackIntermediateOSI: Application LayerDefault Port: 502Standard: Modbus Organization / IEC Standard

Modbus TCP

— Modbus Protocol

Modbus 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.

Read first: TCPContent reviewed 2026-11-18

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

Simulated

Defensive education. Every step runs in this page; no traffic is generated or sent.

Attack library

Unauthorised register write

Injection

Modbus has no authentication, so anyone who can reach port 502 can write coils or registers.

Attackersimulated
Modbus TCPtarget
Attack step 1 of 3
Reach the PLC

The attacker gains access to the control network.

What a defender can see

Connections to port 502 from IT segments.

Impact if unmitigated

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)