Skip to main content

 netbox-ot

An OT asset and security register in NetBox: IEC 62443 zones, conduits and flows, who can reach your PLCs and who decided that is allowed.

Built and maintained by Packetflow, industrial networks and OT infrastructure from Belgium.

Formerly netbox-iec62443: 0.3.0 takes an existing installation over in place, see Upgrading from netbox-iec62443.

Live demo: netbox-ot.packetflow.be, log in as demo / demo. A fictional plant with the companion plugins beside netbox-ot (netbox-lifecycle, netbox-inventory, netbox-access-paths, netbox-topology-views). You can change anything; it is reset every two hours, so don't enter real data.

PyPI CI License

A NetBox plugin for OT networks. It models IEC 62443 zones and conduits, the flows that run through them, and Purdue levels on devices and virtual machines. On top of that it builds an access map: every known flow into the controller zones, each with an "allowed?" verdict and who decided it.

It is meant for the people who run production networks: plant and maintenance engineers, OT/IT teams and the integrators who work for them. Keep zones, conduits and industrial protocols in the same NetBox as the rest of your inventory. See at a glance who can reach the PLCs, including supplier remote access over 4G routers, TeamViewer, VPN or an MSP's jump host, and decide per flow whether that is allowed. Then hand an auditor the zone register.

The access map of the demo plant: what needs attention first, and every flow into the controller zones by Purdue level, coloured by its verdict

Features

  • Zones and conduits per IEC 62443-3-2: zone types (OT, safety/SIS, DMZ, enterprise, supplier), Purdue levels, SL-T and SL-A vectors over the seven foundational requirements, accountable people, sub-zones, the devices that enforce a conduit, and risk assessments. Data model
  • Flows: what actually runs from one zone into another (protocol, ports, read/write/control/program access, remote access, the path of hops it takes, how the ends connect: client/server, OPC UA Reverse Connect or through an MQTT broker) with a verdict: allowed yes/no/unknown, decided by whom, review and expiry dates.
  • Access map per site: the flows into the controller zones, worst first, with what needs attention and a diagram. Access map
  • OT overview per site: achieved against target security level per foundational requirement as a radar chart, the zones furthest below target, requirement statuses and risk before and after countermeasures. OT overview
  • Consistency checks and a printable zone register (CSV, JSON) for the audit, also as an API and a command with an exit code for CI. Checks and register
  • Industrial services and fieldbuses: Modbus, S7comm, PROFINET, EtherNet/IP, OPC UA, DNP3, IEC 61850 and more, linked to NetBox application services. Industrial systems
  • Importer for passive captures: Zeek logs (with or without CISA ICSNPP) or a documented JSON format, with a list of the hosts NetBox does not know yet. Importer
  • Risk assessments per IEC 62443-3-2 for a zone or conduit: the steps, threat scenarios, unmitigated, residual and tolerable risk on your own risk matrix, a recorded acceptance of a residual risk, and a risk register per site and tenant. Risk assessments
  • System requirements (IEC 62443-3-3) and their status per zone or conduit, for the audit; identifiers ship, the texts and levels come from your own copy of the standard. System requirements
  • Machine drawing per site, location or tag: devices in their zones, cables with ports, addresses with 1:1 NAT, firmware and every connection that leaves the machine, as SVG, print and CSV for the technical file of the Machinery Regulation. Machine drawing
  • Vendor-neutral firewall rules from the allowed flows. Firewall rules
  • Lifecycle: end of support per device from netbox-lifecycle (device type and modules), checks for unsupported devices in secure zones, and a firmware version field on devices and modules. Companion plugins
  • Branches: with netbox-branching (separately licensed, optional) the commands take --branch, and OT > Settings sets a default branch for imports and can refuse imports into main. Not recommended: branches have to be rebuilt after every netbox-ot upgrade with a migration; ot_import --dry-run is the lighter way to try an import. Working in a branch
  • REST API, GraphQL, filters, bulk import/edit, change log and permissions like any NetBox object. API

Screenshots

The machine drawing of a production line: its devices in their zones by Purdue level, the cables with port names, addresses with their 1:1 NAT, firmware, and every connection that leaves the machine, ready for the technical file.

The machine drawing of Line 1: devices in zone frames by Purdue level, cables with port names, addresses, firmware and the connections to the outside

A flow with its verdict: allowed or not, decided by whom, until when, and the path it takes.

A flow from the MSP into the DMZ: RDP, remote access, allowed until a date by a named person, through a tunnel, a jump host and a firewall

The OT overview of a site: what reaches the controllers and what to record next, then achieved against target security level per foundational requirement, with the weakest zone named, and every zone and conduit sorted by how far below target it is.

The OT overview: exposure of the controllers, next steps, a radar chart of achieved against target security level and the zones and conduits sorted by gap

A risk assessment: where it stands in the IEC 62443-3-2 steps, and the unmitigated, residual and tolerable risk on the organisation's risk matrix.

A risk assessment with the IEC 62443-3-2 steps and the risk matrix

More in the docs: zone, zone register and checks, industrial services.

Compatibility

Plugin NetBox Python
0.7.x, 0.6.x, 0.5.x, 0.4.x, 0.3.x (netbox-ot) 4.7.0 and later 4.7 releases; 4.8 allowed 3.12, 3.13
0.2.x, 0.1.x (as netbox-iec62443) 4.7.0 and later 4.7 releases; 4.8 allowed 3.12, 3.13

CI runs the full test suite on NetBox 4.7.0, on the newest 4.7 release, and every week on NetBox's development branch for the next release, so a NetBox change that breaks the plugin shows up before it ships. max_version admits 4.8 on the strength of that weekly run; it is lowered again if the next release breaks the plugin.

Dependencies

None: no other NetBox plugins, Python packages, external software or services. The importer reads files that other tools wrote; to import from network captures you need Zeek (optionally with the CISA ICSNPP parsers, or Malcolm, which bundles both) somewhere, not on the NetBox server.

Works with netbox-lifecycle (end of support per device, checks for unsupported devices in secure zones), netbox-inventory (spares and purchases) and netbox-access-paths (the access paths into a machine in its machine drawing), tested together in CI; all optional. See Companion plugins.

Installation

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

Add the plugin to /opt/netbox/netbox/netbox/configuration.py (if PLUGINS already exists, add it to the list):

PLUGINS = ["netbox_ot"]

Create its 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. To see it populated within minutes, create the fictional demo plant and open the site IEC 62443 demo plant (--delete removes it again):

sudo venv/bin/python netbox/manage.py ot_demo

For your own plant, start from a Zeek capture. Create a site, and a VRF for it if other plants in this NetBox use the same address ranges (one VRF per plant). Then let the import draft the zone map:

sudo venv/bin/python netbox/manage.py ot_import /captures/plant-a --site plant-a --vrf plant-a --suggest-zone-map zones.csv
# name the zones in zones.csv, then:
sudo venv/bin/python netbox/manage.py ot_import /captures/plant-a --site plant-a --vrf plant-a --zone-map zones.csv

The site's OT overview tab then says what to do next. See docs/zeek.md.

netbox-docker, the settings, permissions, upgrading and removing are in docs/installation.md.

Documentation

The full documentation is in docs/; release notes are in CHANGELOG.md.

Getting help and contributing

The plugin is maintained by Packetflow, a small company in Belgium, and is in alpha: the data model may still change, and every breaking change comes with a migration and a Breaking Changes note in the changelog.

License

Code: Apache License 2.0, see LICENSE. The icon (docs/icon.svg) is licensed under CC BY 4.0.

AI assistance

This code is written with heavy AI assistance (Claude, by Anthropic). I, Louis Declerck of Packetflow, take full responsibility for all of it: what it does, its bugs and its security. Report problems as described above.

Metadata

Release files for netbox-ot 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netbox-ot 0.7.2
File Size Uploaded Provenance Actions
netbox_ot-0.7.2.tar.gz 281.8 kB With provenance Details for netbox_ot-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netbox-ot 0.7.2
File Interpreter ABI Platform Actions
netbox_ot-0.7.2-py3-none-any.whl Python 3 none any Details for netbox_ot-0.7.2-py3-none-any.whl

Total release size: 611.6 kB

Release files / netbox_ot-0.7.2.tar.gz

Download URL netbox_ot-0.7.2.tar.gz
Size 281.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b5f5e0af50938abb8f71a06e1211138f0d86baf764f30676e819cedb5c4b8dff
BLAKE2b-256 checksum
How to use checksums
92cbc6f3db54c340a2e3da3ee567cbdfc72d730b9726fc19581216bad88e18ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / netbox_ot-0.7.2-py3-none-any.whl

Download URL netbox_ot-0.7.2-py3-none-any.whl
Size 329.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b78c225edc6063f4802b51bfd8008a25182729e297db5c6a9e71f1dea5062ae8
BLAKE2b-256 checksum
How to use checksums
d2dceb666c4c13408e72870759d1a2db69234114a5b9c5a2b26840c955ca0b81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for netbox-ot 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netbox_ot-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page