%3CLINGO-SUB%20id%3D%22lingo-sub-1611871%22%20slang%3D%22en-US%22%3ERemediate%20Vulnerable%20Secure%20Channel%20Connections%20with%20the%20Insecure%20Protocols%20Workbook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1611871%22%20slang%3D%22en-US%22%3E%3CP%20data-unlink%3D%22true%22%3E%3CEM%3EThis%20article%20is%20written%20by%20Jon%20Shectman%20and%20Brian%20Delaney%2C%20Microsoft.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EHave%20you%20read%20about%20the%20elevation%20of%20privilege%20vulnerability%20that%20exists%20when%20an%20attacker%20establishes%20a%20vulnerable%20Netlogon%20secure%20channel%20connection%20to%20a%20domain%20controller%3F%20%3CSPAN%3EAn%20attacker%20who%20successfully%20exploited%20the%20vulnerability%20could%20run%20a%20specially%20crafted%20application%20on%20a%20device%20on%20the%20network.%26nbsp%3B%3C%2FSPAN%3EIf%20you%20haven't%2C%20you%20can%20read%20about%20the%20vulnerability%20%3CA%20href%3D%22https%3A%2F%2Fportal.msrc.microsoft.com%2Fen-US%2Fsecurity-guidance%2Fadvisory%2FCVE-2020-1472%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20a%26nbsp%3Band%20learn%20how%20to%20manage%20the%20changes%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4557222%2Fhow-to-manage-the-changes-in-netlogon-secure-channel-connections-assoc%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20Those%20articles%20give%20an%20excellent%20overview%20of%20the%20issue%2C%20so%20I%20won't%20repeat%20it%20in%20detail%20here.%20In%20short%2C%20we%20are%20addressing%20this%20vulnerability%20in%20a%20two-part%20rollout%20by%20modifying%20how%20Netlogon%20handles%20the%20usage%20of%20Netlogon%20secure%20channels.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EPhase%20one%2C%20deployment%2C%20began%20on%20Aug%2011.%20In%20this%20phase%2C%20secure%20Remote%20ProtoCol%20(RPC)%20is%20enforced%20for%20machine%2C%20trust%20and%20domain%20controller%20accounts.%20This%20phase%20also%20includes%20a%20new%20group%20policy%20object%20(GPO)%20and%20a%20registry%20key%20to%20manage%20configuration%2C%20and%20five%20new%20Event%20IDs.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EThese%20Event%20IDs%20are%20important%20for%20auditing%20and%20understanding%20of%20the%20issue.%20They%20are%20as%20follows%3A%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%3CU%3EMachine%20Events%3C%2FU%3E%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E5827%20-%20Connection%20denied%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E5829%20-%20Non-compliant%20(allowed%20during%20Deployment%20phase)%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E5830%20-%20Allowed%20by%20policy%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%3CU%3ETrust%20Events%3C%2FU%3E%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E5828%20-%20Connection%20denied%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E5831%20-%20Allowed%20by%20policy%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EPhase%20two%2C%20enforcement%2C%20is%20slated%20to%20begin%20Feb%209%2C%202021.%20In%20phase%20two%2C%20non-compliant%20machine%20connections%20will%20be%20denied%20by%20default%20and%20an%20Event%20ID%205827%20will%20be%20logged.%20It's%20entirely%20possible%20to%20set%20the%20new%20GPO%20%22Domain%20controller%3A%20Allow%20vulnerable%20Netlogon%20secure%20channel%20connections%22%20and%20to%20simply%20allow%20the%20vulnerable%20connections.%20However%2C%20that%20is%26nbsp%3B%3CSTRONG%3Enot%3C%2FSTRONG%3E%20recommended.%20Rather%2C%20you%20should%20use%20the%20new%20tab%20in%20the%20Insecure%20Protocols%20Workbook%20to%20detect%20and%20understand%20the%20five%20new%20Event%20IDs%20and%20take%20appropriate%20action%20to%20address%20the%20vulnerable%20Netlogon%20sessions%20prior%20to%20the%20enforcement%20phase.%20If%20you're%20new%20to%20the%20Insecure%20Protocols%20Workbook%2C%20we%20recommend%20checking%20out%20the%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fsentinelipsetup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Egetting%20started%20guide%3C%2FA%3E%20and%20then%20come%20back%20here.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3ETo%20populate%20the%20Workbook%2C%20take%20two%20steps%3A%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E1.%20On%20your%20domain%20controllers%2C%20apply%20the%20relevant%20update%20from%20CVE-2020-1472.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E2.%20In%20Azure%20Sentinel%2C%20go%20to%20Settings%2C%20Workspace%20Settings%2C%20Advanced%20Settings%2C%20Data%2C%20Windows%20Event%20Logs%2C%20and%20add%20(or%20make%20sure%20you%20already%20have%20added)%20Errors%20and%20Warnings%20from%20the%20System%20Log.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorJon_Shectman_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorJon_Shectman_2%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2213.JPG%22%20style%3D%22width%3A%20726px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215149i50B57421410F5B9D%2Fimage-dimensions%2F726x298%3Fv%3D1.0%22%20width%3D%22726%22%20height%3D%22298%22%20title%3D%2213.JPG%22%20alt%3D%2213.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOnce%20you%20have%20data%20flowing%2C%20it's%20time%20to%20start%20using%20the%20Insecure%20Protocols%20Workbook.%20The%20first%20addition%20you'll%20notice%20is%20a%20new%20tab%2C%26nbsp%3B%3CEM%3EVulnerable%20Secure%20Channel%3C%2FEM%3E.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorJon_Shectman_3%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorJon_Shectman_4%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2214.JPG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215152iC6434765720EAEF1%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%2214.JPG%22%20alt%3D%2214.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20most%20efficient%20way%20to%20describe%20how%20to%20use%20this%20tab%20is%20to%20simply%20show%20it%20-%20as%20in%20the%20GIF%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2215.gif%22%20style%3D%22width%3A%20712px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215158i985BB0A508D92765%2Fimage-dimensions%2F712x226%3Fv%3D1.0%22%20width%3D%22712%22%20height%3D%22226%22%20title%3D%2215.gif%22%20alt%3D%2215.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20the%20top%20of%20the%20tab%20is%20a%20counter%20(tile)%20for%20each%20of%20the%20five%20new%20Event%20IDs.%20In%20our%20lab%2C%20for%20example%2C%20we%20have%20eight%20instances%20of%20Event%20ID%205830.%20That's%20the%20tile%20I%20clicked%20on%20to%20filter%20to%20that%20event%20ID.%20Next%2C%20I%20%22painted%22%20a%20timebrush%20slice%20to%20filter%20the%20queries%20below%20to%20a%20particular%20time%3B%20then%20I%20simply%20clicked%20on%20a%20Machine%20Account%20to%20show%20the%20Machine%20Account%20Connections.%20The%20result%20is%20a%20highly%20actionable%20data%20set%2C%20showing%20us%20exactly%20where%20we%20need%20to%20research%20vulnerable%20secure%20channel%20connections.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EOnce%20you%20know%20where%20to%20look%2C%20you'll%20need%20to%20upgrade%20all%20Netlogon%20clients.%20However%2C%20there's%20an%20additional%20point%20to%20consider.%20Though%20we%20expect%20it%20to%20be%20a%20rare%20finding%2C%20vulnerable%20secure%20channel%20connections%20can%20come%20from%20not%20only%20machines%2C%20but%20also%20from%20trusts%20(%3CEM%3Emost%20likely%3C%2FEM%3E%20Realm%20trusts).%20This%20configuration%20may%20result%20in%20significantly%20increased%20exposure%20(Event%20ID%205828)%20and%20may%20require%20more%20planning%20to%20remediate.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EIn%20this%20article%2C%20we%20briefly%20discussed%20the%20exposure%20in%20vulnerable%20secure%20channel%20connections%2C%20how%20they%20are%20logged%20during%20the%20first%20phase%20of%20CVE-2020-1472%2C%20and%20how%20to%20audit%20them%20with%20the%20Insecure%20Protocols%20Workbook.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EA%20brief%20sidenote%3A%20If%20you%20ever%20feel%20your%20perspectives%20don't%20matter%20or%20that%20your%20opinions%20aren't%20good%20enough%2C%20we%20urge%20you%20to%20think%20again.%20This%20workbook%20enhancement%20came%26nbsp%3B%3CU%3Edirectly%3C%2FU%3E%20from%20a%20conversation%20on%20Twitter%20where%20multiple%20folks%20made%20the%20case%20for%20it.%20If%20you%20have%20concepts%20to%20add%2C%20functionality%20you'd%20like%20to%20see%20added%2C%20or%20ideas%20for%20improvement%2C%20please%20reach%20out%20on%20Twitter%20(%40shectonsecurity)%2C%20find%20us%20on%20LinkedIn%2C%20or%20use%20the%20comments%20section.%20We%20are%20all%20ears.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EThanks%20for%20reading%20and%2C%20as%20always%2C%20happy%20auditing.%26nbsp%3B%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1611871%22%20slang%3D%22en-US%22%3E%3CP%3ELearn%20how%20to%20manage%20the%20changes%20in%20Netlogon%20secure%20channel%20connections%20associated%20with%20CVE-2020-1472.%20Assessment%20phase%20began%20Aug%2011%20and%20Enforcement%20is%20slated%20for%20Feb%209%2C%202021.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2211.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214696i5A93FF4442A2BF00%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%2211.gif%22%20alt%3D%2211.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1611871%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Sentinel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDetection%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInvestigation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVAST%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

This article is written by Jon Shectman and Brian Delaney, Microsoft.

 

Have you read about the elevation of privilege vulnerability that exists when an attacker establishes a vulnerable Netlogon secure channel connection to a domain controller? An attacker who successfully exploited the vulnerability could run a specially crafted application on a device on the network. If you haven't, you can read about the vulnerability here a and learn how to manage the changes here. Those articles give an excellent overview of the issue, so I won't repeat it in detail here. In short, we are addressing this vulnerability in a two-part rollout by modifying how Netlogon handles the usage of Netlogon secure channels.

 

Phase one, deployment, began on Aug 11. In this phase, secure Remote ProtoCol (RPC) is enforced for machine, trust and domain controller accounts. This phase also includes a new group policy object (GPO) and a registry key to manage configuration, and five new Event IDs.

 

These Event IDs are important for auditing and understanding of the issue. They are as follows:

Machine Events

5827 - Connection denied

5829 - Non-compliant (allowed during Deployment phase)

5830 - Allowed by policy

 

Trust Events

5828 - Connection denied

5831 - Allowed by policy

 

Phase two, enforcement, is slated to begin Feb 9, 2021. In phase two, non-compliant machine connections will be denied by default and an Event ID 5827 will be logged. It's entirely possible to set the new GPO "Domain controller: Allow vulnerable Netlogon secure channel connections" and to simply allow the vulnerable connections. However, that is not recommended. Rather, you should use the new tab in the Insecure Protocols Workbook to detect and understand the five new Event IDs and take appropriate action to address the vulnerable Netlogon sessions prior to the enforcement phase. If you're new to the Insecure Protocols Workbook, we recommend checking out the getting started guide and then come back here.

 

To populate the Workbook, take two steps:

1. On your domain controllers, apply the relevant update from CVE-2020-1472.

2. In Azure Sentinel, go to Settings, Workspace Settings, Advanced Settings, Data, Windows Event Logs, and add (or make sure you already have added) Errors and Warnings from the System Log.

 
 

13.JPG

Once you have data flowing, it's time to start using the Insecure Protocols Workbook. The first addition you'll notice is a new tab, Vulnerable Secure Channel.

 
 

14.JPG

The most efficient way to describe how to use this tab is to simply show it - as in the GIF below.

 

15.gif

 

At the top of the tab is a counter (tile) for each of the five new Event IDs. In our lab, for example, we have eight instances of Event ID 5830. That's the tile I clicked on to filter to that event ID. Next, I "painted" a timebrush slice to filter the queries below to a particular time; then I simply clicked on a Machine Account to show the Machine Account Connections. The result is a highly actionable data set, showing us exactly where we need to research vulnerable secure channel connections.

 

Once you know where to look, you'll need to upgrade all Netlogon clients. However, there's an additional point to consider. Though we expect it to be a rare finding, vulnerable secure channel connections can come from not only machines, but also from trusts (most likely Realm trusts). This configuration may result in significantly increased exposure (Event ID 5828) and may require more planning to remediate.

 

In this article, we briefly discussed the exposure in vulnerable secure channel connections, how they are logged during the first phase of CVE-2020-1472, and how to audit them with the Insecure Protocols Workbook.

 

A brief sidenote: If you ever feel your perspectives don't matter or that your opinions aren't good enough, we urge you to think again. This workbook enhancement came directly from a conversation on Twitter where multiple folks made the case for it. If you have concepts to add, functionality you'd like to see added, or ideas for improvement, please reach out on Twitter (@shectonsecurity), find us on LinkedIn, or use the comments section. We are all ears.

 

Thanks for reading and, as always, happy auditing.  :)