Query Details
//Stop PLC Command for an IoT device SecurityAlert | where TimeGenerated > ago(7d) | where AlertName == "An S7 Stop PLC Command was Sent" | extend SourceDeviceAddress_ = tostring(parse_json(ExtendedProperties).SourceDeviceAddress) | extend DestinationDeviceAddress_ = tostring(parse_json(ExtendedProperties).DestinationDeviceAddress)
This query is looking for security alerts related to an IoT device. It filters alerts that occurred within the last 7 days and have the specific alert name "An S7 Stop PLC Command was Sent". It also extracts the source and destination device addresses from the extended properties of the alert.

Rod Trent
Released: November 8, 2021
Tables
Keywords
Operators