New

Modbus Packet Forensics: Hidden Data, Odd Operations and Covert Channels

Part of

Path ICS Forensics & Threat Hunter course 3 of 5 Finish the path: badge + 100 pts
Challenges Practise this: 8 challenges Free, 275 pts
Intermediate · 11 hours

Topics:

Courses taught
189
Learners reached
854
Reviews received
209
Courses taught
165
Learners reached
418
Reviews received
68
Leaderboard rank
#1,377
Free
Free access this course
LevelIntermediate
Duration11 hours
Lessons24 across 5 modules
CertificateYes, on completion
AccessLifetime
Last updated20 Nov 2026

Requirements

  • Modbus/TCP basics: function codes, unit ids, registers and coils
  • Basic Wireshark display filters and tshark field extraction
  • Wireshark and tshark installed on a computer you administer
  • Optional: Python 3 or CyberChef for the decoding lessons
Curriculum

About this course

Most Modbus captures look like ordinary polling, and the interesting part is the small thing that is not. This course teaches a repeatable method for finding it. You triage an unknown capture before decoding anything, read the conversation between masters and devices, then work through the places data hides: register and coil values, function codes that should not be there, file records, engineering sessions, extra masters and the gaps between requests.

The course runs over five modules: triage before decode, including units behind a gateway and Modbus on a non-standard port; reading the conversation, from a poll baseline to values carried in registers and coils; fields that should not carry data, such as unusual function codes, file record reads, unit id sweeps and an engineering session inside Modbus; behaviour over time, from an incident timeline to out-of-hours activity, slow scans, timing channels and a second master; and a capstone that runs the whole method on a long capture.

Every exercise is passive. You work on your own computer with Wireshark and tshark, on capture files generated by KSEC for this course and on public exercise captures you fetch from their own pages. The course never teaches sending a Modbus frame, replaying a capture or building a covert channel, and no hosted lab is offered. You finish by writing a one page finding another analyst can reproduce, mapped to MITRE ATT&CK for ICS with a confidence statement.

It is written for ICS and OT security analysts, SOC and incident response staff, network and forensics practitioners and CTF players who already know the basics of Modbus and Wireshark.

What you'll learn

  • Triage an unknown capture with capinfos, a protocol hierarchy and conversation tables, and separate Modbus from background noise
  • Map hosts and unit ids behind a gateway, including captures that need Decode As
  • Build a poll baseline and name the one request that does not belong
  • Decode data carried in register values, coil sequences and written-then-read registers
  • Recognise unusual function codes, file record reads and engineering sessions inside Modbus traffic
  • Find slow scans, out-of-hours activity, extra masters and timing channels, and tell them from natural jitter
  • Run the whole method on a long capture and write up a finding with ATT&CK for ICS mapping and a confidence statement

Who this course is for

  • ICS and OT security analysts
  • SOC and incident response staff who handle industrial networks
  • Network and forensics practitioners who read packet captures
  • CTF players who already know the basics of Modbus and Wireshark and want to read captures more carefully

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

24 lessons across 5 modules

Course Content

Triage before decode
The first five minutes of any capture with capinfos, the protocol hierarchy and conversation tables, separating Modbus from noise and measuring the polling floor, and mapping hosts and unit ids behind a gateway, including Modbus on a non-standard port. It opens with the authorised-use rules and a gate quiz.

  • What this course is, authorised use, and the first five minutes of any capture
  • Gate: authorised use
  • Noise, filtering and what the floor looks like
  • Through the gateway: unit ids and who is really behind an address
  • Quiz: Triage before decode

Reading the conversation
Read the conversation between masters and devices: build a poll baseline and name the request that does not belong, then decode what register values, written-then-read registers and coil sequences carry.

Fields that should not carry data
Function codes that do not belong in a poll, file record reads, unit id sweeps and ownership, and engineering sessions carried inside Modbus, each recognised and described from a capture without sending anything.

Behaviour over time
Read a Modbus capture across time rather than frame by frame: rebuild an incident from values, find out of hours activity, uncover a slow scan and a timing channel, and spot a second master or a ghost device.

Capstone and reporting
Run the whole method in order on a long, unfamiliar capture, slice it to keep it manageable and rank the leads by evidence and confidence, then answer three questions from one capture 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
Free