{"id":1245,"date":"2021-05-17T09:00:09","date_gmt":"2021-05-17T06:00:09","guid":{"rendered":"https:\/\/macrosec.tech\/?p=1245"},"modified":"2021-05-24T15:36:57","modified_gmt":"2021-05-24T12:36:57","slug":"capturing-netntlm-v2-hahes-via-outlook-signatures","status":"publish","type":"post","link":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/","title":{"rendered":"Capturing NetNTLM V2 hashes Via Outlook Signatures"},"content":{"rendered":"<p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-parallax-none nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-right:50px;--awb-padding-left:50px;--awb-background-color:#686868;--awb-background-image:url(&quot;https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/01\/85204.jpg&quot;);--awb-background-size:cover;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-padding-top:0%;--awb-padding-right:0%;--awb-padding-bottom:0%;--awb-padding-left:0%;--awb-bg-size:cover;--awb-margin-top:10px;--awb-margin-bottom:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-column-wrapper-legacy\"><div class=\"fusion-column-content-centered\"><div class=\"fusion-column-content\"><div class=\"fusion-text fusion-text-1\"><h2 style=\"text-align: center;font-size: 40px\"><strong><span style=\"text-decoration: underline\">CAPTURING NET-NTLM V2 HASHES VIA OUTLOOK SIGNATURES<\/span><\/strong><\/h2>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-1 hover-type-none\"><img decoding=\"async\" width=\"400\" height=\"400\" alt=\"Haystack - Hack The Box Machine\" title=\"3811384_edited\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg\" class=\"img-responsive wp-image-1489\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited-200x200.jpg 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg 400w\" sizes=\"(max-width: 800px) 100vw, 400px\" \/><\/span><\/div><\/div><\/div><\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-top:30px;--awb-padding-right:50px;--awb-padding-left:50px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-bg-size:cover;--awb-margin-top:10px;--awb-margin-bottom:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-column-wrapper-legacy\"><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-no-large-visibility fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:15px;margin-bottom:15px;width:100%;\"><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-2\"><p style=\"font-size: 18px\">This blog post was written by <a href=\"https:\/\/www.linkedin.com\/in\/dharmik-karania-160239b5\/\">Dharmik Karania<\/a>.<\/p>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-clearfix\" style=\"float:left;margin-top:15px;margin-bottom:15px;width:100%;max-width:35%;\"><div class=\"fusion-separator-border sep-single sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;--awb-sep-color:#b51616;border-color:#b51616;border-top-width:1px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-3\"><h2 style=\"font-size: 24px;color: #b51616;text-align: left\"><strong>Introduction<\/strong><\/h2>\n<p style=\"font-size: 20px\">Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured.<\/p>\n<h3 style=\"font-size: 22px;color: #b51616;text-align: left\"><strong>What is NTLM?<\/strong><\/h3>\n<p style=\"font-size: 20px\">This is the way passwords are stored on modern Windows systems and can be obtained by dumping the Security Account Manager (SAM) database or using Mimikatz. They are also stored on domain controllers in the NTDS file. These are the hashes you can use to pass-the-hash.<\/p>\n<p style=\"font-size: 20px\">NetNTLMV2 is a protocol used as an authentication mechanism on Windows environments. This is an improved version of the (New Technology Lan Manager) NTLM Protocol and therefore it is a little harder to crack. This uses the (New Technology) NT-Hash algorithm and therefore the hashes can be brute forced to recover the password.<\/p>\n<p style=\"font-size: 20px\">Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash.<\/p>\n<p style=\"font-size: 20px\">Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user.<\/p>\n<p style=\"font-size: 20px\">In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.<\/p>\n<h3 style=\"font-size: 22px;color: #b51616;text-align: left\"><strong>Weaponization using SMB:<\/strong><\/h3>\n<p style=\"font-size: 20px\">The first step is to create a simple html file with the following lines of code. The IP address in the image source is the IP address of my Kali Linux machine. This code behaves an Outlook signature.<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-2 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"638\" height=\"368\" title=\"1\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/1-1.png\" alt class=\"img-responsive wp-image-1323\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/1-1-200x115.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/1-1-400x231.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/1-1-600x346.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/1-1.png 638w\" sizes=\"(max-width: 800px) 100vw, 638px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-4\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">When sending an email, this file should be attached as text so that it can act as an Outlook Signature. In order to do this, the ribbon in Outlook must be customized. Click on File, then Outlook Options and then select Customize Ribbon. From the All-Commands list select \u201cAttach File\u201d.<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-3 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"835\" height=\"693\" title=\"2\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/2-1.png\" alt class=\"img-responsive wp-image-1324\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/2-1-200x166.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/2-1-400x332.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/2-1-600x498.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/2-1-800x664.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/2-1.png 835w\" sizes=\"(max-width: 800px) 100vw, 835px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-5\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">Then click on New Email and add the \u201cAttach File\u201d to the ribbon of New Email. Click on File and then Options, the click on Customized Ribbon. Then \u201cAdd\u201d the \u201cAttach File\u201d to the New Mail menu. <\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-4 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"926\" height=\"772\" title=\"3\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3-1.png\" alt class=\"img-responsive wp-image-1327\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3-1-200x167.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3-1-400x333.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3-1-600x500.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3-1-800x667.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3-1.png 926w\" sizes=\"(max-width: 800px) 100vw, 926px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-6\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">We then compose a new email and attach the HTML file created as text by clicking on the new \u201cAttach File\u201d component just added to the ribbon. I also write a small message \u201cThis is a test. Dharmik\u201d.<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-5 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1347\" height=\"679\" title=\"4\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1.png\" alt class=\"img-responsive wp-image-1328\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1-200x101.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1-400x202.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1-600x302.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1-800x403.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1-1200x605.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/4-1.png 1347w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-7\"><p>&nbsp;<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-6 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1343\" height=\"672\" title=\"5\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1.png\" alt class=\"img-responsive wp-image-1329\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1-200x100.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1-400x200.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1-600x300.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1-800x400.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1-1200x600.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/5-1.png 1343w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-8\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">Before I send the message, I start Responder on my Kali Linux terminal by typing the command: <\/p>\n<p style=\"font-size: 20px;color: #b51616;text-align: left\">Responder -I eth0 -v<\/p>\n<p style=\"font-size: 20px\">-I = specifies the interface <\/p>\n<p style=\"font-size: 20px\">-v= specifies it to be verbose <\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-7 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1425\" height=\"713\" title=\"6\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1.png\" alt class=\"img-responsive wp-image-1331\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1-200x100.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1-400x200.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1-600x300.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1-800x400.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1-1200x600.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/6-1.png 1425w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-9\"><p>\u00a0<\/p>\n<p style=\"font-size: 20px\">Responder runs listening for events. The email is then sent to the recipient.<\/p>\n<p style=\"font-size: 20px\">The <img loading=\"lazy\" \/> tag does not point to a valid resource, accessible over SMB by the target, and therefore Outlook sends a pop-up message telling the user that it is struggling to get the resource and retrieve the data but the connection attempt is enough to capture the hash. However this is only possible if the user has administrative access on the machine. The pop-up which appears is shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-8 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"904\" height=\"314\" title=\"7\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/7-1.png\" alt class=\"img-responsive wp-image-1332\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/7-1-200x69.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/7-1-400x139.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/7-1-600x208.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/7-1-800x278.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/7-1.png 904w\" sizes=\"(max-width: 800px) 100vw, 904px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-10\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">The email is received by the recipient and upon clicking on the email by the recipient, the NTLM hash will be captured by Responder as shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-9 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1408\" height=\"699\" title=\"8\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2.png\" alt class=\"img-responsive wp-image-1336\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2-200x99.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2-400x199.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2-600x298.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2-800x397.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2-1200x596.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/8-2.png 1408w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-11\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">Note the NTLMv2 Hash:<\/p>\n<p style=\"font-size: 20px\">The first 8 bytes of the NTLMv2 hash is the 8-byte Server Challenge. This is randomly generated. The next 8 bytes is the 8-byte Client Challenge which is also randomly generated. For this reason, the first 16-bytes of all the hashes in the image are different and the rest of the hash is the same. <\/p>\n<p style=\"font-size: 20px\">NTLM is a challenge-response style authentication protocol. This means that to authenticate a user, the server sends a challenge to the client. The client then sends back a response that is a function of the challenge, the user&#8217;s password, and possibly other information.<\/p>\n<p style=\"font-size: 20px\">The NTLMv2_CLIENT_CHALLENGE structure defines the client challenge in the AUTHENTICATE_MESSAGE. This structure is used only when NTLM v2 authentication is configured and is transported in the NTLMv2_RESPONSE. <\/p>\n<p style=\"font-size: 20px\">Once Responder captures the hash, we then copy the hash to a text file and crack it using Hashcat. I use a wordlist with common passwords and other passwords can be added after performing social engineering on the victim.<\/p>\n<p style=\"font-size: 20px\">The hash is copied on a txt file. Here \u201cresult.txt\u201d. I then use Hashcat to crack it as shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-10 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1352\" height=\"225\" title=\"9\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2.png\" alt class=\"img-responsive wp-image-1339\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2-200x33.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2-400x67.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2-600x100.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2-800x133.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2-1200x200.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/9-2.png 1352w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-12\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">The command I use is: <\/p>\n<p style=\"font-size: 20px;color: #b51616;text-align: left\">Hashcat.exe -m 5600 -a 3 result.txt password.txt<\/p>\n<p style=\"font-size: 20px\">-m 5600 specifies that the hash is an NTLMv2 hash<\/p>\n<p style=\"font-size: 20px\">-a 3 specifies the attack mode. In this case it is a brute force attack<\/p>\n<p style=\"font-size: 20px\">Result.txt contains the hash captured<\/p>\n<p style=\"font-size: 20px\">Password.txt contains the list of common passwords with which hashcat will brute force.<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-11 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1262\" height=\"712\" title=\"10\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1.png\" alt class=\"img-responsive wp-image-1340\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1-200x113.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1-400x226.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1-600x339.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1-800x451.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1-1200x677.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/10-1.png 1262w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-13\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">As we can see, the password was easily cracked by hashcat. <\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-12 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1259\" height=\"710\" title=\"11\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1.png\" alt class=\"img-responsive wp-image-1341\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1-200x113.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1-400x226.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1-600x338.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1-800x451.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1-1200x677.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/11-1.png 1259w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-14\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">Using SMB links does not satisfy the requirements for stealth, or the ability to act without already elevated permissions. This does not mean we can\u2019t use <img loading=\"lazy\"> tags to capture hashes though, it just needs to be over HTTP. <\/p>\n<p style=\"font-size: 20px\">NetNTLM authentication via HTML can be requested by the server, and the web browser will engage in a challenge\/response communication and this enables the hash to be captured. The hash can then be cracked offline in order to obtain the user\u2019s password. The image below demonstrates this:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-13 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1177\" height=\"531\" title=\"12\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/12-1.png\" alt class=\"img-responsive wp-image-1343\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/12-1-200x90.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/12-1-400x180.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/12-1-600x271.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/12-1-800x361.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/12-1.png 1177w\" sizes=\"(max-width: 800px) 100vw, 1177px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-15\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">This type of authentication is sufficient to retrieve the hash and therefore to prevent nefarious servers on the internet, Windows established the concept of Trust Zones.<\/p>\n<p style=\"font-size: 20px\">The trust zones include:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-14 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"985\" height=\"581\" title=\"13\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/13-1.png\" alt class=\"img-responsive wp-image-1344\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/13-1-200x118.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/13-1-400x236.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/13-1-600x354.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/13-1-800x472.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/13-1.png 985w\" sizes=\"(max-width: 800px) 100vw, 985px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-16\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">If you try to authenticate via the local intranet zone, then you will receive the hash allowing single sign on, but if for example stealth.com requests for the hash, it will not receive the hash because it is classified under Internet Zone which is the second most restrictive zone.<\/p>\n<p style=\"font-size: 20px\">So how does Windows know whether the server which is requesting the hash is within the intranet zone? The Internet Options have default options set that enables the resource to be classified as the intranet zone. The image below shows the default settings of the Intranet zone that is accessed from Internet Options. <\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-15 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"509\" height=\"645\" title=\"14\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/14-1.png\" alt class=\"img-responsive wp-image-1345\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/14-1-200x253.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/14-1-400x507.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/14-1.png 509w\" sizes=\"(max-width: 800px) 100vw, 509px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-17\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">When a HTTP resource is requested, the resulting outcomes are displayed below:<\/p>\n<\/div>\n<div class=\"table-2\">\n<table width=\"100%\">\n<thead>\n<tr style=\"font-size: 20px\">\n<th align=\"left\">Type<\/th>\n<th align=\"left\">URL<\/th>\n<th align=\"left\">Zone Classification<\/th>\n<th align=\"left\">Outcome<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"font-size: 20px\">\n<td align=\"left\">IP Address<\/td>\n<td align=\"left\">http:\/\/192.168.10.10\/index.html<\/td>\n<td align=\"left\">Internet<\/td>\n<td align=\"left\">The user is required to enter in a username and a password.<\/td>\n<\/tr>\n<tr style=\"font-size: 20px\">\n<td align=\"left\">Fully Qualified Domain Name (FQDN)<\/td>\n<td align=\"left\">http:\/\/webserver.targetorg.local\/index.html<\/td>\n<td align=\"left\">Internet<\/td>\n<td align=\"left\">The user is required to enter in a username and a password.<\/td>\n<\/tr>\n<tr style=\"font-size: 20px\">\n<td align=\"left\">NetBIOS Name<\/td>\n<td align=\"left\">http:\/\/marvel.local<\/td>\n<td align=\"left\">Intranet<\/td>\n<td align=\"left\">A NTLM authentication is attempted with the currently authenticated user\u2019s credentials.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"fusion-text fusion-text-18\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">We want to force a HTTP request using a NetBIOS name from a domain joined machine to a web server that captures authentication attempts, then we end up with a password hash to crack.<\/p>\n<p style=\"font-size: 20px\">We will use the local intranet zone to capture the hash because it is the second least restrictive and also in organizations, computers are in a domain or within a local intranet and therefore I decided to set up a local intranet zone to make it more realistic.<\/p>\n<h2 style=\"font-size: 24px;color: #b51616;text-align: left\"><strong>Weaponization using HTTP:<\/strong><\/h2>\n<h3 style=\"font-size: 22px;color: #b51616;text-align: left\">Lab requirements<\/h3>\n<ul style=\"font-size: 20px\">\n<li>Windows Server 2016 completely set up.<\/li>\n<li>Windows 10 machine<\/li>\n<\/ul>\n<p style=\"font-size: 20px\">In this report, I will not cover on how to set up the Domain Controller and how to join the User\u2019s machine (Windows 10) machine to the Domain.<\/p>\n<p style=\"font-size: 20px\">I took a more practical and realistic approach when setting up this lab and carrying out the attack. What If we do not have GUI access and the user\u2019s settings have prevented any form of code from interacting with Outlook, then how would we be able to attach the HTML file as text and get the hash? Furthermore we also want to make it stealthier and ensure there is no room for suspicion with HTTP because with SMB as we saw earlier, generates messages telling the user that the resource is not available. So how would we do it?<\/p>\n<p style=\"font-size: 20px\">We first set up the Outlook signature by clicking on Options, followed by Mail, and then clicking on the Signatures Menu and then setting up the signature.<\/p>\n<p style=\"font-size: 20px\">Click on new and add the signature and then click on save, followed by ok.<\/p>\n<p style=\"font-size: 20px\">This is shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-16 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"784\" height=\"750\" title=\"15\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/15-1.png\" alt class=\"img-responsive wp-image-1349\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/15-1-200x191.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/15-1-400x383.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/15-1-600x574.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/15-1.png 784w\" sizes=\"(max-width: 800px) 100vw, 784px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-19\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">When an Outlook Signature is created, three files are created. These files are stored in the AppData folder as shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-17 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"793\" height=\"600\" title=\"16\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/16-1.png\" alt class=\"img-responsive wp-image-1350\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/16-1-200x151.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/16-1-400x303.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/16-1-600x454.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/16-1.png 793w\" sizes=\"(max-width: 800px) 100vw, 793px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-20\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">These files are then transferred in the registry and depending on the whether the signature has been created by a policy or the end-user, the files are referenced in different places as shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-18 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1191\" height=\"554\" title=\"17\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/17-1.png\" alt class=\"img-responsive wp-image-1351\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/17-1-200x93.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/17-1-400x186.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/17-1-600x279.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/17-1-800x372.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/17-1.png 1191w\" sizes=\"(max-width: 800px) 100vw, 1191px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-21\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">In this way, we can know whether a user has set their signatures or not. If it is not set, then a signature can easily be set by creating the relevant files in the signatures folder (C:\\Users\\User\\AppData\\Roaming\\Microsoft\\Signature\\MySignature.htm) or modify an existing signature if one is already set.<\/p>\n<p style=\"font-size: 20px\">In order for a hash to be captured, an image needs to be uploaded along with the signature. We saw that with SMB we manually tried to do that using the HTML code. When we do it manually, an error message is displayed, and this creates suspicion for the user and therefore does not meet the requirements of stealth.<\/p>\n<p style=\"font-size: 20px\">To automate the process of modifying the signature, uploading the image, and starting the corresponding listener, I use a tool called Sigwhatever.<\/p>\n<p style=\"font-size: 20px\">The Sigwhatever tool is written in C# and it borrows code heavily from Seatbelt and Inveigh projects. Seatbelt is a C# project that performs a number of security-oriented &#8220;safety checks&#8221; relevant from both offensive and defensive security perspectives. It is an enumeration tool for Windows. Inveigh is a PowerShell ADIDNS\/LLMNR\/NBNS\/mDNS\/DNS spoofer and man-in-the-middle tool designed to assist penetration testers\/red teamers that find themselves limited to a Windows system.<\/p>\n<p style=\"font-size: 20px\">The Sigwhatever tool automates and performs the following process:<\/p>\n<ul style=\"font-size: 20px\">\n<li>Queries the firewall for suitable ports to listen on (Uses some seatbelt code)<\/li>\n<li>Cross references HttpQueryServiceConfiguration for any usable URL ACLs<\/li>\n<li>Starts TCP\/HTTP server for hash capture (Uses Inveigh code)<\/li>\n<li>Signature Detection (to modify the appropriate registry settings and signatures)<\/li>\n<li>Modification of Signature<\/li>\n<li>Option to send mail to a specific AD group (e.g. domain admins)<\/li>\n<li>Option to create encrypted logs on disk.<\/li>\n<li>Cleanup (Reverts changes in signature settings and existing signature)<\/li>\n<\/ul>\n<p style=\"font-size: 20px\">The tool ensures that the user experience is not impacted in any way. The tool cleans up and reverts the changes back to the original and that is why when the email is sent, the uploaded image is not seen by the recipient. This makes the process smooth and stealthy.<\/p>\n<p style=\"font-size: 20px\">To run Sigwhatever, use the following command:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-19 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1181\" height=\"186\" title=\"18\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/18-1.png\" alt class=\"img-responsive wp-image-1354\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/18-1-200x31.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/18-1-400x63.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/18-1-600x94.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/18-1-800x126.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/18-1.png 1181w\" sizes=\"(max-width: 800px) 100vw, 1181px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-22\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">The AUTO switch means that it will perform all the above steps. I then run this command:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-20 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1024\" height=\"762\" title=\"19\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/19-1.png\" alt class=\"img-responsive wp-image-1355\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/19-1-200x149.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/19-1-400x298.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/19-1-600x446.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/19-1-800x595.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/19-1.png 1024w\" sizes=\"(max-width: 800px) 100vw, 1024px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-23\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">Once it runs, it will set up the listener and wait for an email to be sent and opened by the recipient. <\/p>\n<p style=\"font-size: 20px\">We then send an email and Sigwhatever performs the above steps and we get the hash as shown below: Notice no pop-up appears and the email looks from a legitimate sender.  <\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-21 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1027\" height=\"469\" title=\"20\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/20-1.png\" alt class=\"img-responsive wp-image-1356\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/20-1-200x91.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/20-1-400x183.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/20-1-600x274.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/20-1-800x365.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/20-1.png 1027w\" sizes=\"(max-width: 800px) 100vw, 1027px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-24\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">The email received is shown below: Notice the image icon upload is not displayed and there is no room for suspicion as no pop-up appears but a hash has been captured as shown below:<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-22 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"956\" height=\"540\" title=\"21\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/21-1.png\" alt class=\"img-responsive wp-image-1357\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/21-1-200x113.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/21-1-400x226.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/21-1-600x339.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/21-1-800x452.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/21-1.png 956w\" sizes=\"(max-width: 800px) 100vw, 956px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-25\"><p>&nbsp;<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-23 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1257\" height=\"621\" title=\"22\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1.png\" alt class=\"img-responsive wp-image-1358\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1-200x99.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1-400x198.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1-600x296.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1-800x395.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1-1200x593.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/22-1.png 1257w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-26\"><p>\u00a0<\/p>\n<p style=\"font-size: 20px\">As soon as the message is sent, a hash is received. We then crack the hash using Hashcat as shown below:<\/p>\n<p style=\"font-size: 20px\">The command I use is<\/p>\n<p style=\"font-size: 20px;color: #b51616;text-align: left\">Hashcat.exe -m 5600 -a 3 result.txt password.txt<\/p>\n<p style=\"font-size: 20px\">-m 5600 specifies that the hash is an NTLMv2 hash<\/p>\n<p style=\"font-size: 20px\">-a 3 specifies the attack mode. In this case it is a brute force attack.<\/p>\n<p style=\"font-size: 20px\">Result.txt contains the hash captured.<\/p>\n<p style=\"font-size: 20px\">Password.txt contains the list of common passwords with which hashcat will brute force.<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-24 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1254\" height=\"708\" title=\"23\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1.png\" alt class=\"img-responsive wp-image-1359\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1-200x113.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1-400x226.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1-600x339.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1-800x452.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1-1200x678.png 1200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/23-1.png 1254w\" sizes=\"(max-width: 800px) 100vw, 1200px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-27\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">There are some limitations of using the Sigwhatever tool:<\/p>\n<p style=\"font-size: 20px\">\n<ul style=\"font-size: 20px\">\n<li>External recipients would also receive the tracking image in the signature, revealing an internal hostname. If the email is sent outside the local intranet zone, then the recipient receives the tracking image as shown below: <\/li>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-25 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1094\" height=\"492\" title=\"24\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/24-1.png\" alt class=\"img-responsive wp-image-1360\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/24-1-200x90.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/24-1-400x180.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/24-1-600x270.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/24-1-800x360.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/24-1.png 1094w\" sizes=\"(max-width: 800px) 100vw, 1094px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-28\"><p>&nbsp;<\/p>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-26 hover-type-none\" style=\"border:5px solid #e2e0e0;\"><img decoding=\"async\" width=\"1101\" height=\"568\" title=\"25\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/25-1.png\" alt class=\"img-responsive wp-image-1361\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/25-1-200x103.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/25-1-400x206.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/25-1-600x310.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/25-1-800x413.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/25-1.png 1101w\" sizes=\"(max-width: 800px) 100vw, 1101px\" \/><\/span><\/div><\/div><div class=\"fusion-text fusion-text-29\"><p>&nbsp;<\/p>\n<p style=\"font-size: 20px\">The email is received in spam and the tracking image is also displayed. Therefore, this attack is best done within an internal network\/ organizational network (Intranet).<\/p>\n<ul style=\"font-size: 20px\">\n<li>If targeted users access the emails at a later date \u2013 this will still trigger a request to be sent, so this could be picked up by another attacker at a later date (in the highly unlikely event that the same host is compromised, and an attacker decides to attempt hash capture on the same port).<\/li>\n<li>It may be suspicious to speed up the attack by sending unsolicited emails with the modified signatures may be suspicious.<\/li>\n<\/ul>\n<p style=\"font-size: 20px\">The benefits of HTTP over SMB to carry out this attack include that with HTTP, elevated permissions are not required, and therefore a HTTP server can listen on any port. HTTP is a running service, and it does not capture communications to an existing service as Inveigh does with SMB.<\/p>\n<p style=\"font-size: 20px\">These attacks are usually successful because:<\/p>\n<ul style=\"font-size: 20px\">\n<li>We can perform this attack when we get initial foothold on a machine or when we get access to a low privileged end user device.<\/li>\n<li>Most organizations have a flat network. A flat network is a one where all users can communicate with each other even over a Virtual Private Network (VPN).<\/li>\n<li>Host based firewalls are often configured permissively or are turned off and therefore these attacks are not detected. A host-based firewall is a piece of firewall software that runs on an individual computer or device connected to a network. These types of firewalls are a granular way to protect the individual hosts from viruses and malware, and to control the spread of these harmful infections throughout the network.<\/li>\n<\/ul>\n<h3 style=\"font-size: 22px;color: #b51616;text-align: left\"><strong>Preventive Measures<\/strong><\/h3>\n<p style=\"font-size: 20px\">There are a number of preventive measures that would prevent this attack from happening. This includes:<\/p>\n<ol style=\"font-size: 20px\">\n<li>Host based firewalls- they should be turned ON, and they should be configured in a way to prevent additional services from listening.<\/li>\n<li>Network segregation- internal network segregation can help to reduce the effectiveness of this kind of technique. Allowing only essential communication between end user devices would make the service listening for hashes inaccessible. Another term to use is hardening which means to remove unnecessary services which the user does not need to conduct their daily business.<\/li>\n<li>Turn off auto-download of images, or default to plain text email (this is default for emails from outside the organization, but HTML is displayed for email sent within the same organization). This can be done by clicking on File -&gt; Options -&gt; Trust Center -&gt; Trust Center Settings -&gt; Click on the checkbox \u201cDon\u2019t download pictures automatically in standard HTML email messages or RSS items.\u201d<\/li>\n<li>Plain text email- ensuring that the email is displayed in plain text for both the composition of emails and received communications. This will prevent Outlook from rendering the HTML in the signature. This can be achieved through:\n<ul style=\"font-size: 20px\">\n<li>Composition of emails- click on New Email -&gt; File -&gt; Options -&gt; Mail -&gt; from the drop down of \u201cCompose message in this format\u201d select \u201cPlain Text.\u201d<\/li>\n<li>Received email- Click on File -&gt; options -&gt; trust center -&gt; Trust center Settings -&gt; Email security -&gt; click on the checkbox which states \u201cRead all standard mail in plain text.\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3 style=\"font-size: 22px;color: #b51616;text-align: left\"><strong>Detection Mechanism<\/strong><\/h3>\n<p style=\"font-size: 20px\">Monitor for changes to the relevant registry keys from processes other than Outlook.exe<\/p>\n<\/div><div class=\"fusion-text fusion-text-30\"><h3 style=\"font-size: 22px;color: #b51616;text-align: left\"><strong>References<\/strong><\/h3>\n<p><a style=\"font-size: 20px\" href=\"https:\/\/www.ired.team\/offensive-security\/initial-access\/netntlmv2-hash-stealing-using-outlook\">https:\/\/www.ired.team\/offensive-security\/initial-access\/netntlmv2-hash-stealing-using-outlook<\/a><\/p>\n<p><a style=\"font-size: 20px\" href=\"https:\/\/research.nccgroup.com\/2021\/01\/15\/sign-over-your-hashes-stealing-netntlm-hashes-via-outlook-signatures\/\">https:\/\/research.nccgroup.com\/2021\/01\/15\/sign-over-your-hashes-stealing-netntlm-hashes-via-outlook-signatures\/<\/a><\/p>\n<p><a style=\"font-size: 20px\" href=\"https:\/\/github.com\/Kevin-Robertson\/Inveigh\">https:\/\/github.com\/Kevin-Robertson\/Inveigh&amp;lt<\/a><\/p>\n<p><a style=\"font-size: 20px\" href=\"https:\/\/github.com\/GhostPack\/Seatbelt\">https:\/\/github.com\/GhostPack\/Seatbelt<\/a><\/p>\n<p><a style=\"font-size: 20px\" href=\"https:\/\/medium.com\/@petergombos\/lm-ntlm-net-ntlmv2-oh-my-a9b235c58ed4\">https:\/\/medium.com\/@petergombos\/lm-ntlm-net-ntlmv2-oh-my-a9b235c58ed4<\/a><\/p>\n<\/div><div class=\"fusion-text fusion-text-31\"><p>&nbsp;<\/p>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;width:100%;\"><div class=\"fusion-separator-border sep-single sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;border-color:#3e3e3e;border-top-width:1px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-32\"><h2 style=\"font-size: 16px;color: #b51616;text-align: left\"><strong>Disclaimer<\/strong><\/h2>\n<p style=\"font-size: 10px\">The MacroSec blogs are solely for informational and educational purposes. Any actions and or activities related to the material contained within this website are solely your responsibility. The misuse of the information on this website can result in criminal charges brought against the persons in question. The authors and MacroSec will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this website to break the law.<\/p>\n<\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":5,"featured_media":1489,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[10,8,13],"tags":[],"class_list":["post-1245","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-offensive-security","category-pentesting","category-red-teaming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Capturing NetNTLM V2 hashes Via Outlook Signatures &#8212; MacroSEC<\/title>\n<meta name=\"description\" content=\"Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured. Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash. Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user. In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Capturing NetNTLM V2 hashes Via Outlook Signatures &#8212; MacroSEC\" \/>\n<meta property=\"og:description\" content=\"Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured. Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash. Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user. In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/\" \/>\n<meta property=\"og:site_name\" content=\"MacroSEC\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-17T06:00:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-24T12:36:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dharmik Karania\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dharmik Karania\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"45 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/\"},\"author\":{\"name\":\"Dharmik Karania\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/person\\\/5d4c800b7e603d391fc1db5b09133e25\"},\"headline\":\"Capturing NetNTLM V2 hashes Via Outlook Signatures\",\"datePublished\":\"2021-05-17T06:00:09+00:00\",\"dateModified\":\"2021-05-24T12:36:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/\"},\"wordCount\":8933,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/3811384_edited.jpg\",\"articleSection\":[\"Offensive Security\",\"Penetration Testing\",\"Red Teaming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/\",\"name\":\"Capturing NetNTLM V2 hashes Via Outlook Signatures &#8212; MacroSEC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/3811384_edited.jpg\",\"datePublished\":\"2021-05-17T06:00:09+00:00\",\"dateModified\":\"2021-05-24T12:36:57+00:00\",\"description\":\"Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured. Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash. Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user. In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#primaryimage\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/3811384_edited.jpg\",\"contentUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/3811384_edited.jpg\",\"width\":400,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/05\\\/17\\\/capturing-netntlm-v2-hahes-via-outlook-signatures\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/macrosec.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Capturing NetNTLM V2 hashes Via Outlook Signatures\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#website\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/\",\"name\":\"MacroSEC\",\"description\":\"Your Cybersecurity Partner - Kenya\",\"publisher\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/macrosec.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#organization\",\"name\":\"MacroSec Ltd\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/MobileIcon_Retine.png\",\"contentUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/MobileIcon_Retine.png\",\"width\":400,\"height\":107,\"caption\":\"MacroSec Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/person\\\/5d4c800b7e603d391fc1db5b09133e25\",\"name\":\"Dharmik Karania\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2ad5f76a88ad63937e5cbdf80605c372cf663716add095d320f7a27bf084809e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2ad5f76a88ad63937e5cbdf80605c372cf663716add095d320f7a27bf084809e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2ad5f76a88ad63937e5cbdf80605c372cf663716add095d320f7a27bf084809e?s=96&d=mm&r=g\",\"caption\":\"Dharmik Karania\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Capturing NetNTLM V2 hashes Via Outlook Signatures &#8212; MacroSEC","description":"Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured. Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash. Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user. In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/","og_locale":"en_US","og_type":"article","og_title":"Capturing NetNTLM V2 hashes Via Outlook Signatures &#8212; MacroSEC","og_description":"Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured. Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash. Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user. In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.","og_url":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/","og_site_name":"MacroSEC","article_published_time":"2021-05-17T06:00:09+00:00","article_modified_time":"2021-05-24T12:36:57+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg","type":"image\/jpeg"}],"author":"Dharmik Karania","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Dharmik Karania","Est. reading time":"45 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#article","isPartOf":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/"},"author":{"name":"Dharmik Karania","@id":"https:\/\/macrosec.tech\/#\/schema\/person\/5d4c800b7e603d391fc1db5b09133e25"},"headline":"Capturing NetNTLM V2 hashes Via Outlook Signatures","datePublished":"2021-05-17T06:00:09+00:00","dateModified":"2021-05-24T12:36:57+00:00","mainEntityOfPage":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/"},"wordCount":8933,"commentCount":0,"publisher":{"@id":"https:\/\/macrosec.tech\/#organization"},"image":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#primaryimage"},"thumbnailUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg","articleSection":["Offensive Security","Penetration Testing","Red Teaming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/","url":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/","name":"Capturing NetNTLM V2 hashes Via Outlook Signatures &#8212; MacroSEC","isPartOf":{"@id":"https:\/\/macrosec.tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#primaryimage"},"image":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#primaryimage"},"thumbnailUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg","datePublished":"2021-05-17T06:00:09+00:00","dateModified":"2021-05-24T12:36:57+00:00","description":"Today, it is possible to craft a malicious email that allows an adversary to capture NetNTLMV2 hashes without requiring any form of interaction with the user. The user only has to click open the email and the hashes will be captured. Capturing NetNTLM hashes from network communications is nothing new. There are several ways of doing this. The most common way is via SBM. SMB is a protocol for file sharing purposes, and we can force SMB communications to an attacker using tools to capture the authentication attempt and extract the password hash. Sniffing SMB traffic requires elevated permissions that typically are not available when you first get command and control and therefore sometimes it can a little difficult to get the hash. Furthermore, it can be a noisy when we are sniffing SMB Traffic and therefore this may impact the user experience or even create suspicion to a user. In this blog, I will explain the concept of Windows \u2018Trust Zones\u2019, how email signatures are configured in Outlook and how the combination of the two can result in the capture of hashes with minimal impact to the user experience through http. I will show both the methods, the first with SMB and then with HTTP.","breadcrumb":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#primaryimage","url":"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg","contentUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2021\/05\/3811384_edited.jpg","width":400,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/macrosec.tech\/index.php\/2021\/05\/17\/capturing-netntlm-v2-hahes-via-outlook-signatures\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/macrosec.tech\/"},{"@type":"ListItem","position":2,"name":"Capturing NetNTLM V2 hashes Via Outlook Signatures"}]},{"@type":"WebSite","@id":"https:\/\/macrosec.tech\/#website","url":"https:\/\/macrosec.tech\/","name":"MacroSEC","description":"Your Cybersecurity Partner - Kenya","publisher":{"@id":"https:\/\/macrosec.tech\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/macrosec.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/macrosec.tech\/#organization","name":"MacroSec Ltd","url":"https:\/\/macrosec.tech\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/macrosec.tech\/#\/schema\/logo\/image\/","url":"https:\/\/macrosec.tech\/wp-content\/uploads\/2018\/04\/MobileIcon_Retine.png","contentUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2018\/04\/MobileIcon_Retine.png","width":400,"height":107,"caption":"MacroSec Ltd"},"image":{"@id":"https:\/\/macrosec.tech\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/macrosec.tech\/#\/schema\/person\/5d4c800b7e603d391fc1db5b09133e25","name":"Dharmik Karania","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2ad5f76a88ad63937e5cbdf80605c372cf663716add095d320f7a27bf084809e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2ad5f76a88ad63937e5cbdf80605c372cf663716add095d320f7a27bf084809e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2ad5f76a88ad63937e5cbdf80605c372cf663716add095d320f7a27bf084809e?s=96&d=mm&r=g","caption":"Dharmik Karania"}}]}},"_links":{"self":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts\/1245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/comments?post=1245"}],"version-history":[{"count":6,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts\/1245\/revisions"}],"predecessor-version":[{"id":1492,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts\/1245\/revisions\/1492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/media\/1489"}],"wp:attachment":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/media?parent=1245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/categories?post=1245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/tags?post=1245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}