Microsoft-Windows-Security-Mitigations › Event 2

Event ID 2 — Process 'ProcessPath' (PID CallingProcessId) was blocked from generating dynamic code.

Provider
Microsoft-Windows-Security-Mitigations
Channel
KernelMode
Level
Warning
Collection Priority
Recommended (JSCU-NL)
Task
KERNEL_MITIGATION_TASK_PROHIBIT_DYNAMIC_CODE

Description

Process 'ProcessPath' (PID CallingProcessId) was blocked from generating dynamic code.

Message #

Process '%2' (PID %5) was blocked from generating dynamic code.

Fields #

NameDescription
ProcessPathLength UInt16
ProcessPath UnicodeString
ProcessCommandLineLength UInt16
ProcessCommandLine UnicodeString
CallingProcessId UInt32
CallingProcessCreateTime FILETIME
CallingProcessStartKey UInt64
CallingProcessSignatureLevel UInt8
CallingProcessSectionSignatureLevel UInt8
CallingProcessProtection UInt8
CallingThreadId UInt32
CallingThreadCreateTime FILETIME

Example Event #

{
  "system": {
    "provider": "Microsoft-Windows-Security-Mitigations",
    "guid": "FAE10392-F0AF-4AC0-B8FF-9F4D920C3CDF",
    "event_source_name": "",
    "event_id": 2,
    "version": 0,
    "level": 3,
    "task": 1,
    "opcode": 0,
    "keywords": 9223372036854775808,
    "time_created": "2023-11-06T01:01:34.932541+00:00",
    "event_record_id": 88,
    "correlation": {},
    "execution": {
      "process_id": 11664,
      "thread_id": 10404
    },
    "channel": "Microsoft-Windows-Security-Mitigations/KernelMode",
    "computer": "WinDev2310Eval",
    "security": {
      "user_id": "S-1-5-21-1992711665-1655669231-58201500-1000"
    }
  },
  "event_data": {
    "ProcessPathLength": 59,
    "ProcessPath": "\\Device\\HarddiskVolume4\\Program Files\\TeamViewer\\tv_x64.exe",
    "ProcessCommandLineLength": 192,
    "ProcessCommandLine": "\"C:\\Program Files\\TeamViewer\\tv_x64.exe\" --action installpnpdriver --inf \"C:\\Program Files\\TeamViewer\\x64\\TVVirtualMonitorDriver.inf\" --log \"C:\\Program Files\\TeamViewer\\TeamViewer15_Hooks.log\"",
    "CallingProcessId": 11664,
    "CallingProcessCreateTime": "2023-11-06T01:01:34.836839Z",
    "CallingProcessStartKey": 3659174697240700,
    "CallingProcessSignatureLevel": 2,
    "CallingProcessSectionSignatureLevel": 2,
    "CallingProcessProtection": 0,
    "CallingThreadId": 10404,
    "CallingThreadCreateTime": "2023-11-06T01:01:34.836843Z"
  },
  "message": ""
}

References #