policy/protocols/modbus/track-memmap.bro
-
Modbus
This script tracks the memory map of holding (read/write) registers and logs
changes as they are discovered.
Todo
Not all register read and write functions are supported yet.
Detailed Interface
Options
-
Modbus::track_memmap
-
The hosts that should have memory mapping enabled.
State Variables
-
Modbus::device_registers
-
The memory map of slaves is tracked with this variable.
Types
-
Modbus::MemmapInfo
Type: | record
- ts:
time &log
Timestamp for the detected register change.
- uid:
string &log
Unique ID for the connection.
- id:
conn_id &log
Connection ID.
- register:
count &log
The device memory offset.
- old_val:
count &log
The old value stored in the register.
- new_val:
count &log
The new value stored in the register.
- delta:
interval &log
The time delta between when the old_val and new_val were
seen.
|
-
Modbus::RegisterValue
-
-
Modbus::Registers
-
Indexed on the device register value and yielding the register value.
Events
-
Modbus::changed_register
-
This event is generated every time a register is seen to be different
than it was previously seen to be.