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.

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
  • 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
  • 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

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.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) and netbox-inventory (spares and purchases), tested together in CI; both 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.6.0

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.6.0
File Size Uploaded Provenance Actions
netbox_ot-0.6.0.tar.gz 255.7 kB With provenance Details for netbox_ot-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 556.5 kB

Release files / netbox_ot-0.6.0.tar.gz

Download URL netbox_ot-0.6.0.tar.gz
Size 255.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d456780ba153e627b3e3639752ef46a7f105374bb1d711dbe9433fa8f2e5f079
BLAKE2b-256 checksum
How to use checksums
b06a0a57240d1399db93c9248042fc4fc8f4e62750ff4cb468af3653e99f860f
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 14, 2026.

Transparency log

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

Download URL netbox_ot-0.6.0-py3-none-any.whl
Size 300.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c779ca741f5a53187b2fff74023e8e2e100ce986f1de95b3f9342df2c577f7fb
BLAKE2b-256 checksum
How to use checksums
de820d2b59622c6a95dcd63afb3146286dc3e354b805e56515d1f54a4596a00f
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 14, 2026.

Transparency log

Security for netbox-ot 0.6.0

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.6.0.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 14, 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