Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

Segmenting OT networks with zones and conduits

After this lesson: I can decide whether a flow between two zones is allowed by a deny-by-default table.

65 min lesson3 commandsIndustrial control system security lab: a simulated PLC, Modbus, HMI and conduit

Why the office should never reach the pump

Segmenting an OT network means splitting a plant's machines into zones and controlling every path between them. OT, operational technology, is the computing that runs physical things.

If any laptop can reach a PLC, Modbus will obey it. Zones and conduits decide who can reach what. You build and test them in your own lab only.

By the end of this lesson

Note

I can decide whether a flow between two zones is allowed by a deny-by-default table.

Key words

WordWhat it means
OToperational technology, computing that runs physical things
Zonea group of machines with the same trust and rules
Conduitthe one controlled path between two zones
Deny by defaultrefuse everything a rule does not allow
DMZa buffer zone between the business network and the plant

The cells students fill in are left blank in this preview.

The one rule

Warning

Test filters and conduits only in your own lab copy. Probing a real plant's firewall, even to check it, needs written permission from its owner. Without it, it can be a crime under the Computer Misuse Act 1990.

Zones group machines, conduits join them

A zone is a group of machines with the same trust: the controllers, the operators' screens, the engineering stations, the business network.

Zones meet only through conduits: a firewall, a gateway or a one-way link. A conduit has a short list of what may pass. Everything else is refused, which is deny by default. The network security module taught firewalls; a conduit is one with a plant's rules.

Try it: a conduit that passes reads only

Code: python
ALLOWED = [1, 2, 3, 4]       # the conduit's allow-list: reads only
requests = [3, 4, 6, 5, 8]

for fc in requests:
    if fc in ALLOWED:
        print("function", fc, "pass to the PLC")
    else:
        print("function", fc, "deny, exception 1")
# The HMI now needs function 6 for one setpoint. What is the smallest change, and what does it cost?

The lab's conduit passes four functions

The lab's gateway sits in front of the PLC on port 5021. The HMI talks to the PLC only through it.

Its allow-list holds functions 1 to 4, the reads, for unit 1. A write gets exception 1 and a line in denied.log. The next Run tries both kinds through the gateway, then sends the same write straight to the PLC.

Send reads and writes through the conduit

Command
docker exec work python3 steps/conduit.py

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Read what the conduit refused

Command
docker exec gateway tail -n 2 denied.log

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

A common mistake

Warning

Many people think adding a filter protects the PLC. It protects only the paths that go through it. In the lab every container shares one flat network, so the work box reached the PLC directly and its write was accepted. A conduit works only when it is the sole path.

A conduit table, read top to bottom

A real site writes its conduits as a table: from which zone, to which zone, which service, and allow or deny. The first rule that matches decides. If none matches, the flow is denied.

The next Run checks six flows against four allow rules. Only the flows that a rule names get through.

Decide six flows from a conduit table

Command
docker exec work python3 steps/zones.py

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Worked example: what the lab decided

FromToServiceVerdict
enterprisedmzhttpsallow
enterprisecontrolmodbus-writedeny (no rule)
operationscontrolmodbus-readallow
operationscontrolmodbus-writedeny (no rule)
engineeringcontrolmodbus-writeallow

The cells students fill in are left blank in this preview.

About this lab and its source: Industrial control system security lab: a simulated PLC, Modbus, HMI and conduit

Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.