#RegistryKey
If you run defender for endpoint check this

DeviceRegistryEvents |
where RegistryKey contains "SOFTWARE\\Policies\\Microsoft\\Windows Defender\\exclusions" |
distinct  DeviceName, RegistryKey, RegistryValueName

read about it here, might be related.

#infosec

medium.com/@markmotig/w...
Windows Defender Exclusion Persistence with Registry.pol
I didn’t research if anyone already found this. I don’t imagine I am the first person that found this.
medium.com
December 2, 2024 at 8:44 PM
For example New-Item hklm:\… will output a RegistryKey object which contains a registry handle. If the code didn’t explicitly call Dispose on that object then the handle will be open until .NET’s GC collects and finalizes them which is not something done automatically
February 25, 2025 at 6:51 PM
If you search for the RegistryKey "FirstStandardRulePrecedence" from #Entra #ConnectSync and google only returns 4 Results and my Blog is one of them 😎
June 13, 2025 at 5:55 AM
even completely ignoring the community this engine is just fucking miserable to work with, I never wanna have to see a `Codec<Pair<Optional<RegistryEntry<T>>, RegistryKey<T>>>` ever again
March 15, 2025 at 10:01 PM