Modelling IEC 62443 zones and conduits in NetBox

Step by step: document IEC 62443 zones, conduits and flows in NetBox with the open-source netbox-ot plugin, then export the zone register.

To document IEC 62443 zones and conduits in NetBox, install the open-source plugin netbox-ot. It adds zones, conduits and flows as NetBox objects next to the devices and prefixes that are already there. Create the zones, add their devices and prefixes, join the zones with conduits, record each flow with a verdict, and export the zone register per site as CSV or JSON.

Zones and conduits in two sentences

IEC 62443-3-2 asks for the system under consideration to be divided into zones and conduits, for the risk of each to be assessed, and for a target security level (SL-T) to be set and documented for each. A zone is a group of assets with the same security requirements; a conduit is the communication between zones, itself subject to shared requirements, and the only way traffic should pass from one zone to another.

The standard itself is a paid document. The public summaries are the IEC webstore abstract of part 3-2 and the description in the CISA asset inventory guidance listed under Sources.

Why the register belongs next to the inventory

A zone drawing in a slide deck goes stale the day a device moves. In NetBox a zone is a list of real devices, virtual machines and prefixes, so the zone model changes with the inventory and every change lands in the change log. One system then answers both “what is this device” and “which zone is it in, and what may reach it”.

Install the plugin

netbox-ot is on PyPI (0.4.1 at the time of writing). It needs NetBox 4.7 and no other plugin or service. For a NetBox installed from source in /opt/netbox:

cd /opt/netbox
echo "netbox-ot" | sudo tee -a local_requirements.txt
sudo venv/bin/pip install netbox-ot

Enable it in /opt/netbox/netbox/netbox/configuration.py. If PLUGINS already lists other plugins, add "netbox_ot" to that list:

PLUGINS = ["netbox_ot"]
PLUGINS_CONFIG = {
    "netbox_ot": {},   # defaults; see Configuration below
}

Create the tables and restart:

sudo venv/bin/python netbox/manage.py migrate
sudo venv/bin/python netbox/manage.py collectstatic --no-input
sudo systemctl restart netbox netbox-rq

An OT menu appears. The installation guide in the repository also has a netbox-docker recipe.

Look at the demo plant first

One command creates a fictional plant with zones, conduits, flows, a remote-access path for a service provider, industrial services, risk assessments and a few things the checks will flag. --delete removes exactly what the command created.

sudo /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py ot_demo
sudo /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py ot_demo --delete

Open the site IEC 62443 demo plant and its Access map and Zone register tabs.

The walk, step by step

  1. Create zones. Under OT > Zones, give each zone a name, a site and a type: OT, safety (SIS), DMZ, enterprise or external/supplier. Add the Purdue level, the SL-T and the accountable person. Security levels are vectors with one level from 0 to 4 per foundational requirement; the form takes one number for all seven or seven numbers such as 2,2,2,1,2,1,1.
  2. Assign devices and prefixes. A zone has member devices, virtual machines and prefixes. The plugin does not force one zone per asset, but the consistency checks report assets in no zone or in two, and addresses that sit in another zone’s prefix.
  3. Set Purdue levels. After migrate the plugin creates the custom field ot_purdue_level on devices and virtual machines, with the values 0, 1, 2, 3, 3.5, 4 and 5. A zone’s own level is its lowest one: a zone with a PLC (1) and an HMI (2) counts as level 1.
  4. Define conduits. Under OT > Conduits, a conduit joins two or more zones, has its own SL-T and SL-A, an accountable person, and the devices or virtual machines that enforce it: firewalls, data diodes, gateways.
  5. Record flows. Under OT > Flows, a flow runs from a source zone to a destination zone, in one direction. It has a protocol, ports in NetBox’s tcp/102 format, the access the requests have (read, write, control, program), a remote access flag, the ordered hops it passes and the conduit that carries it. Since 0.4.0 it also has a connection model, for OPC UA Reverse Connect and for paths through an MQTT broker.
  6. Give each flow a verdict. Allowed is yes, no or unknown, and unknown is the default. A verdict records who decided it (a NetBox contact) and when, and can have a review date and an expiry date, for example for temporary supplier access.
  7. Read the access map. The Access map tab on a site lists every flow into zones at Purdue level 2 or below, ordered by what needs action: not allowed first, then allowed but expired, unknown, allowed.
  8. Run the checks and export the register. OT > Consistency checks lists what is inconsistent or missing. The Zone register tab on the site shows zones, conduits and flows with their security levels, owners, risk and verdicts. It prints, and exports as CSV per table or as JSON.

The checks also run from the command line, with an exit code for a nightly job or a CI pipeline, and the register is available from the API:

manage.py ot_check [--site <slug>] [--severity ...] [--check ...] [--fail-on error|warning|info|never] [--json]
GET /api/plugins/ot/register/?site_id=<id>

IEC 62443 terms and the plugin’s objects

IEC 62443 term In netbox-ot
Zone Zone, with type, Purdue level, members, parent zone (sub-zones)
Conduit Conduit: the zones it joins and the devices that enforce it
Communication through a conduit Flow, with Flow hops for the path, and a verdict
Target and achieved security level (SL-T, SL-A) Vector fields on zones and conduits
Capability security level (SL-C) Custom field ot_sl_capability on devices and device types
Foundational requirements The seven positions of each vector: IAC, UC, SI, DC, RDF, TRE, RA
Risk assessment (initial, detailed) Risk assessment on a zone or conduit, draft or approved
System requirement (part 3-3) System requirement and Requirement status per zone or conduit, since 0.4.0
Zone attributes wireless, temporarily connected devices Fields on the zone

Purdue levels are not an IEC 62443 term. The plugin records them because the access map filters on them.

Limits

  • A register, not an audit. The plugin stores what an assessment decided and points at gaps. The risk assessment remains the work of people.
  • Not a certificate. Nothing in it certifies a plant, a system or a product.
  • Not monitoring. It captures no traffic and runs no sensor. Its importer reads Zeek logs or observation files that another tool wrote.
  • Alpha. The data model may still change. Every breaking change comes with a migration and a note under Breaking Changes in the changelog.
  • Versions. 0.3.x and 0.4.x support NetBox 4.7.0 and later 4.7 releases, with 4.8 allowed, on Python 3.12 or 3.13. Up to 0.2.0 the plugin was called netbox-iec62443; 0.3.0 takes such an installation over in place.

Sources

Packetflow maintains netbox-ot and builds secure OT platforms for industrial plants. For help with a zone model, send the NetBox version, what needs to be modelled and a sketch of the plant network through the contact page. The other open tools are listed under open tooling.

Back to all articles

Frequently asked questions

  • Can NetBox model IEC 62443 zones and conduits?

    Not out of the box: NetBox has sites, VLANs, prefixes and devices, but no zone or conduit object. The open-source plugin netbox-ot adds zones, conduits, flows, risk assessments and a zone register as NetBox objects. They get the same lists, filters, change log, REST API and GraphQL as the rest of NetBox.

  • What is the difference between a conduit and a flow in netbox-ot?

    A conduit is the IEC 62443-3-2 object: it joins two or more zones, has its own target security level and names the devices that enforce it. A flow is one directed path through it, with a protocol, ports, what the requests do and a verdict. A flow without a conduit is a path nobody documented, and the access map lists it under Needs attention.

  • Which NetBox versions does netbox-ot support?

    Versions 0.3.x and 0.4.x need NetBox 4.7.0 or a later 4.7 release, with Python 3.12 or 3.13. NetBox 4.8 is admitted because the test suite runs weekly against NetBox's development branch. The project lowers that limit again if the next release breaks the plugin.

  • Does netbox-ot make a plant IEC 62443 compliant?

    No. It is a register: it records the zones, conduits, flows, security levels and decisions that an assessment produces, and it checks that record for gaps. It does not assess risk for you, issue a certificate or watch the network.

  • Are the IEC 62443-3-3 requirement texts included?

    No. The plugin ships the identifiers SR 1.1 to SR 7.8 and their foundational requirement only, because the texts and the level table are copyrighted. The wording and levels are loaded from the user's own licensed copy with the ot_requirements command and stay in that installation.

  • Can the model be filled from a network capture?

    Partly. The ot_import command reads Zeek logs or a documented JSON format and creates zones, flows and industrial services for devices NetBox already knows. It never creates devices, and every imported flow starts with the verdict unknown until a person decides.

Tell us about your project

Packetflow comes back with a design and a price, within one working day.