New

Modbus/TCP on the Wire: Baselines, Function Codes and Reconnaissance

Part of

Path OT Traffic Analyst course 3 of 5 Finish the path: badge + 100 pts
Path ICS Forensics & Threat Hunter course 1 of 5 Finish the path: badge + 100 pts
Challenges Practise this: 8 challenges Free, 155 pts
Beginner · 10 hours

Topics:

Courses taught
189
Learners reached
854
Reviews received
210
Courses taught
165
Learners reached
419
Reviews received
68
Leaderboard rank
#1,377
Open every Plus course

Plus opens every Plus course and puts the shield on your name. From USD 5 a month.

Join Plus
LevelBeginner
Duration10 hours
Lessons29 across 5 modules
CertificateYes, on completion
AccessIncluded with Plus
Last updated20 Nov 2026

Requirements

  • Basic Wireshark display filters and tshark field extraction
  • TCP and Ethernet basics
  • Wireshark and tshark installed on a computer you administer
  • Knowing what Modbus is helps; the ICS Modbus course is a suggested companion, not a prerequisite
Curriculum

About this course

This course teaches you to read Modbus/TCP traffic in a packet capture and to tell ordinary plant traffic from reconnaissance. You start with the frame layout and the common function codes, then build baselines from masters, devices, function codes and polling rhythm.

You then learn how unit ID sweeps, address walks, function code probing, ping scans, port scans and floods look on the wire, and how to write a detection that fires on them without firing on the baseline. The last module maps unlabelled captures to MITRE ATT&CK for ICS techniques and ends with a one page finding another analyst can reproduce.

All work is passive: you open capture files in Wireshark and tshark on your own computer and never send traffic to any controller or network. Practice captures built by KSEC for this course let you apply each skill, and public research datasets are linked for you to fetch from their own pages. No hosted lab is offered; if you want a lab of your own, the course points you to the official project documentation.

It is written for network defenders, SOC analysts and OT security staff who know what Modbus is and want to analyse it in captures.

What you'll learn

  • Read a Modbus/TCP frame and decode requests, responses and exceptions by function code
  • Build a passive asset inventory and a baseline of masters, devices, function codes and polling cadence
  • Recognise unit ID sweeps, address walks and function code probing, and name the host doing them
  • Tell a ping scan, a port scan and a request flood from ordinary polling
  • Write a detection rule with a stated false positive check against a baseline
  • Match unlabelled captures to ATT&CK for ICS techniques and write a one page finding another analyst can reproduce

Who this course is for

  • Network defenders who monitor industrial networks
  • SOC analysts who need to explain Modbus traffic
  • OT security staff who know what Modbus is and want to analyse it in captures
  • Not for anyone looking to send traffic to a live controller

Reviews of courses you have completed earn 5 points, whatever the rating. How reviews work

No reviews yet. Be the first once you complete the course.

Course discussion

Ask questions, share notes, and chat with other learners. This thread is part of the OnlySecurity community forum, separate from the in-course Q&A so general discussion does not crowd lesson-specific questions.

Discussion forum
Open the thread on the OnlySecurity community to take part.
Open forum →

Curriculum

29 lessons across 5 modules

Course Content

Reading Modbus/TCP in a capture
The authorised-use rules and gate quiz, triage of a capture, the MBAP header and the read codes, the write codes and the tables they change, and matching responses to requests and reading exceptions.

  • What this course is, and authorised use
  • Gate: authorised use
  • Triage: what is in this capture?
  • Frame anatomy and reading FC1 to FC4
  • Writes: FC5, FC6, FC15, FC16
  • Responses and exceptions
  • Quiz: Reading Modbus/TCP in a capture

Baselines
Build a baseline of a Modbus/TCP network from captures alone: masters, servers and unit ids, function codes, polling cadence and addresses. Profile large captures, tune write detections for routine engineering work, and compare two normals.

Reconnaissance
How active Modbus reconnaissance shows up in a capture: unit-ID sweeps, address walks, function-code probing, Diagnostics and Read Device Identification, and how to name the single host behind them. Described from the defender's side only, as evidence in captures you open in Wireshark and tshark.

Network-layer reconnaissance and floods
Recognise reconnaissance and floods below and beside Modbus: ICMP and ARP sweeps, SYN scans with their open, closed and filtered replies, and the rate, variety and response tests that tell a flood from a fast poller.

Detection, mapping, reporting
Turn a baseline into a detection with stated false positive and true positive checks, match unlabelled captures to candidate ATT&CK for ICS techniques with the evidence for each, and write a one page finding another analyst can reproduce.

Earn a certificate

Showcase your dedication by completing this course and earning a certificate that highlights your skills.

selected template
Plus Join Plus