Microsoft 365 Defender - Advanced Hunting - DeviceRegistryEvents not detecting new keys added with powershell

John 0 Reputation points
2023-04-14T02:06:45.7933333+00:00

After manually adding a new registry key on a device enrolled in defender for endpoints, I am wanting to run a KQL query using the DeviceRegistryEvents table to view the event with the RegistryKeyCreated/RegistryValueSet action types. However, I have tried both using the New-ItemProperty cmdlet method as well as the reg add method and neither are appearing in the KQL results even after waiting 24 hours. I can see registry keys being created with other programs using KQL and I can see the keys which I have manually created in the registry using regedit, but the events for these manually created keys are not appearing when querying the DeviceRegistryEvents table. Is there a particular query required for viewing events for these manually created keys or is this a bug?

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,364 questions
0 comments No comments
{count} votes