BACnet in two captures: discovery, then a write

3 min read188 courses on OnlySecurity

BACnet is the building automation protocol, and it differs from the protocols most OT learners meet first. It is usually carried over UDP, on port 47808 by default, and its first move is a broadcast.

In the first capture, expect discovery. A device sends Who-Is, a broadcast asking which devices exist, optionally within a range of device instance numbers. Devices answer with I-Am, which carries their instance number, maximum message size, segmentation support and vendor identifier. If you filter on bacnet and sort by service, the opening of a session is two clusters: one Who-Is, and a burst of I-Am replies. The conversation table will show a single source speaking to the broadcast address and many sources replying.

Discovery tells you who is there. The next step is to find what they hold. The usual service is ReadProperty or ReadPropertyMultiple against objects such as analog inputs, binary outputs and schedules. The object type and instance appear in each request, and the property in question is often present value. A table of object, property and value is the building automation equivalent of a Modbus register map.

In the second capture, expect a write. WriteProperty changes a property on an object; for an output object the present value usually has a priority array, so a write comes with a priority. That detail matters for forensics: a write at a low priority may have no visible effect if a higher priority value is already set, and the capture alone will not tell you which value the device finally used. You would need to read the priority array afterwards.

Two other services deserve a mention in any review of a building capture. DeviceCommunicationControl can tell a device to stop responding for a period, and ReinitializeDevice can restart it. Both are legitimate maintenance operations and both are attractive to an attacker for the same reason. If either appears, ask who sent it and whether that source has ever sent it before.

Comparing the two captures teaches the key lesson of the protocol. Discovery looks like reconnaissance and is also what every commissioning tool does on first connect. Writes look like control and are also what a scheduler does every morning. The difference is source, timing and repetition, so the baseline comes before the verdict.

Learners should leave with a short checklist: find the broadcast, list the devices, list the objects, list the writes, check the sources. For our own challenge we generate a BACnet capture ourselves, with a cold-room controller and an unexpected host whose operations the baseline does not explain, so the method matters more than luck.

For structured practice on this topic, see the OnlySecurity course ICS Forensics from the CTF Circuit II: Other Protocols and Live-Lab Triage.

More from this author