NetNTLMv2 hash stealing using Outlook
Last updated
Last updated
If a target system is not running the latest version of Windows/Outlook, it may be possible to craft such an email that allows an attacker to steal the victim's NetNTLMv2 hashes without requiring any interaction from the user - clicking the email to preview it is enough for the hashes to be stolen.
Note that this attack does not work on the most up to date version of Windows 10 and Outlook 2016 versions, so like always - patch early and often.
Let's create a new HTML file with the below:
An RTF file also works:
Then insert a new file by clicking the attachment icon at the top on the window title bar:
Select the malicious messge.html and select Insert as Text
:
You should see that your message now looks like an HTML with a broken image (expected in our case since the path to the image is fake):
Fire up Responder
to listen for incoming SMB authentication requests from the victim
..and send the malicious email to the victim.
Once the victim opens their Outlook and clicks on the malicious email to preview it, their machine will attempt authenticating to the attacker controlled server (running Responder). This will give away the victim's NetNTLMv2
hashes to the attacker, which they can then attempt at cracking:
Once the hash is stolen, we can attempt cracking it:
In this case, we can see the user had a ridiculously simple password, which got cracked immediately:
The next step would be to use Ruler to gain a reverse shell from the victims corporate network:
Password Spraying Outlook Web Access: Remote ShellPatch Windows and Outlook
Block outgoing SMB connections to the Internet
Read emails in plain text
Enforce strong passwords