A hardware device was enabled.
Same as 6421.
Alert: USB or external device interfaces enabled on restricted systems.
SubjectUserNameTargetUserNameLogonTypeIpAddressWorkstationName Starting points — adapt the log source, projected fields and thresholds for your environment.
SecurityEvent
| where EventID == 6422 // A device was enabled
| project TimeGenerated, Computer, SubjectUserName, TargetUserName, LogonType, IpAddress, WorkstationName
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=6422
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A device was enabled — add EventData fields: SubjectUserName, TargetUserName, LogonType, IpAddress`
A device was enabled. A hardware device was enabled.
Event 6422 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Plug and Play' subcategory (Success and/or Failure).
Alert: USB or external device interfaces enabled on restricted systems.