Real-time monitoring identifies cmd.exe or .bat/.cmd execution from an unexpected parent or user context, execution from transient/user-writable paths, suspicious command chaining, or shell activity followed by OT-relevant discovery, credential, remote-access, or configuration behavior. Alert only when the interpreter is not part of the asset's approved software/automation baseline or its execution context violates an approved signer/hash/path/parent/user rule, and require OT-relevant corroboration such as access to engineering files, ICS software/API use, communications with protected OT assets, configuration change, or another suspicious follow-on behavior. Suppress documented vendor software, engineering workflows, diagnostics, backup, patching, and approved maintenance.
| Data Component | Name | Channel |
|---|---|---|
| Process Creation (DC0032) | WinEventLog:Security | EventCode=4688; cmd.exe/batch execution with parent and command line |
| WinEventLog:Sysmon | EventCode=1; process lineage and command line |
| Field | Description |
|---|---|
| ParentProcessName | Approved vendor applications/services that legitimately spawn cmd.exe |
| CommandLinePattern | Chaining, discovery, remote execution, file transfer, or ICS tool/API invocation |
| ScriptStoragePath | Approved batch/script locations |
| UserContext | Authorized operator/engineer/service identities |
| MaintenanceWindow | Approved changes and support Windows |