Discovery
go-otfp
Find out which OT protocol an endpoint speaks, and read the device's identity, with safe connection-level probes. 18 protocols, graded confidence, zero runtime dependencies.
What it does
- Detects 18 protocols: Modbus TCP, SunSpec, IEC 61850 MMS, Siemens S7comm and S7comm-plus, OPC UA, EtherNet/IP, BACnet/IP, PROFINET IO, DNP3, IEC 60870-5-104, OCPP, IEEE 2030.5, OpenADR 3 and 2.0b, KNXnet/IP, MQTT 3.1.1 and 5, Sparkplug B, CAN over TCP gateways and CANopen through CiA 309-3 gateways.
- Safe by design: each protocol gets its standard handshake or one harmless request. It never writes a value, issues a control or changes a device's configuration.
- Identify mode sends each protocol's own read-only identity service (Read Device Identification, the CIP Identity object, SZL, MMS Identify, the BACnet Device object, OPC UA GetEndpoints, PROFINET I&M0, the KNXnet/IP description, the CANopen identity object over SDO) and returns vendor, model, version and serial. Sparkplug B is read-only: it subscribes for a bounded window and never publishes.
- Port-agnostic over TCP, UDP and TLS: the target port's likely protocols go first, then the rest, so a protocol on a non-standard port is still found.
- Graded confidence on one shared scale, with the evidence behind every match and a stable fingerprint signature per result.
- An OT-safe mode for production networks: passive probes only, the likely protocols of a port first, and 250 ms between probes.
- Validated against 18 reference servers and setups from the OT Fabric interop suites, from pymodbus and open62541 to calimero-server, Mosquitto, HiveMQ CE and CANopenNode. End-to-end fuzzed, tested against hostile and chaos peers and a cross-protocol false-positive matrix, with at least 90% test coverage in every package.
- Standard library only, so it drops into any Go program; Go 1.26 or later. Ships with the otprobe command-line tool.
Install
go get github.com/otfabric/go-otfpThe README on GitHub has the full feature list, examples and changelog.