Home
%3CLINGO-SUB%20id%3D%22lingo-sub-1121632%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20investigation%20of%20brute%20force%20and%20account%20enumeration%20attacks%20made%20over%20the%20NTLM%20protoc%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121632%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20Sharing%20Tali%20with%20the%20community%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fcool_40x40.gif%22%20alt%3D%22%3Acool%3A%22%20title%3D%22%3Acool%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1121006%22%20slang%3D%22en-US%22%3EAzure%20ATP%20investigation%20of%20brute%20force%20and%20account%20enumeration%20attacks%20made%20over%20the%20NTLM%20protocol%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1121006%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESecurity%20research%20shows%20most%20successful%20enumeration%20and%20brute%20force%20attacks%20use%20either%20NTLM%20or%20Kerberos%20authentication%20protocols%20for%20entry.%20In%20fact%2C%20they%E2%80%99re%20the%20most%20popular%20discovery-phase%20attacks%20Azure%20ATP%20observed%20in%20the%20past%2012%20months.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhy%20does%20account%20enumeration%20matter%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20an%20account%20enumeration%20attack%2C%20the%20malicious%20actor%20attempts%20to%20use%20different%20usernames%20to%20access%20a%20server%2C%20with%20the%20goal%20of%20discovering%20which%20users%20exist%20within%20the%20organization.%20Once%20an%20attacker%20identifies%20these%20users%2C%20a%20brute%20force%20attacks%20begins%20to%20get%20their%20credentials%20and%20move%20laterally%20within%20the%20organization%20toward%20higher-profile%20assets.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhat%20is%20NTLM%20and%20how%20does%20it%20work%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20NTLM%20protocol%20authenticates%20users%20and%20computers%2C%20using%20a%20challenge%2Fresponse%20mechanism%20designed%20to%20prove%20to%20a%20server%20or%20domain%20controller%20that%20the%20user%20knows%20the%20password%20associated%20with%20the%20account%20they%E2%80%99re%20trying%20to%20access.%20Whenever%20a%20new%20access%20token%20is%20needed%20for%20domain%20accounts%2C%20a%20resource%20server%20must%20contact%20the%20domain%20controller%20to%20verify%20the%20identity%20of%20a%20computer%20or%20user.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStandard%20NTLM%20authentication%20flow%20includes%202%20major%20steps%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EThe%20user%20tries%20to%20access%20a%20resource%20server.%3C%2FLI%3E%0A%3CLI%3EThe%20resource%20server%20validates%20the%20user%20with%20a%20domain%20controller.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20651px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166359iC6F88B5C04066732%2Fimage-dimensions%2F651x133%3Fv%3D1.0%22%20width%3D%22651%22%20height%3D%22133%22%20alt%3D%22NTLMflow.png%22%20title%3D%22NTLMflow.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHow%20does%20Azure%20ATP%20provide%20visibility%20into%20NTLM%20authentications%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENetwork%20traffic%20and%20Windows%20Events%204776%20and%208004%20capture%20NTLM%20data.%20In%20turn%2C%20Azure%20ATP%20parses%20the%20NTLM%20traffic%20and%20events%20from%20your%20domain%20controllers.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENTLM%208004%20events%20provide%20full%20information%20on%20your%20NTLM%20authentications%2C%20including%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESource%20account%3C%2FLI%3E%0A%3CLI%3ESource%20device%3C%2FLI%3E%0A%3CLI%3EAccessed%20resource%20server%3C%2FLI%3E%0A%3CLI%3EDomain%20controller%20that%20is%20doing%20the%20account%20validation%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhy%20do%20some%20devices%20show%20up%20as%20%E2%80%9Cunknown%E2%80%9D%20in%20Azure%20ATP%20alerts%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20source%20device%20in%20Azure%20ATP%20account%20enumeration%20and%20brute%20force%20detection%20alerts%20can%20be%20marked%20as%20coming%20from%20%E2%80%9Cunknown%E2%80%9D%20devices%2C%20such%20as%20%3CSTRONG%3EWorkstation%3C%2FSTRONG%3E%2C%3CSTRONG%3E%20MSTSC%3C%2FSTRONG%3E%2C%20or%3CSTRONG%3E%20Unknown%3C%2FSTRONG%3E.%20This%20happens%20because%20the%20source%20device%20name%20field%20is%20occasionally%20overwritten%20when%20the%20attacker%20is%20already%20inside%20your%20organization%2C%20or%20when%20they%20try%20to%20enumerate%20accounts%20from%20the%20internet.%20This%20is%20common%20when%20the%20accessed%20server%20is%20opened%20to%20the%20internet%20and%20used%20by%20adversaries%20to%20enumerate%20users%20from%20outside%20the%20organization.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20enhanced%20support%20for%20Windows%20event%208004%2C%20Azure%20ATP%20now%20determines%20which%20servers%20were%20attacked%20and%20how%20the%20attacks%20happened.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20'Segoe%20UI'%2Csans-serif%3B%20color%3A%20%23171717%3B%22%3EHow%20can%20Azure%20ATP%20detect%20the%20actual%20server%20accessed%20inside%20the%20network%3F%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20ATP%20sensors%20parse%20Windows%20event%208004%20for%20NTLM%20authentications.%20When%20NTLM%20auditing%20is%20enabled%20and%20Windows%20event%208004%20is%20logged%2C%20Azure%20ATP%20sensors%20automatically%20read%20the%20event%20and%20enrich%20your%20NTLM%20authentications%20with%20the%20accessed%20server%20data.%3C%2FP%3E%0A%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166356i4645962EE73B3F49%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Account%20enumeration.png%22%20title%3D%22Account%20enumeration.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin-bottom%3A%20.0001pt%3B%22%3E%3CSPAN%20style%3D%22font-family%3A%20'Segoe%20UI'%2Csans-serif%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20addition%2C%20Azure%20ATP%20now%20provides%20%3CSTRONG%3EResource%20Access%20over%20NTLM%3C%2FSTRONG%3E%20activity%2C%20showing%20the%20%3CSTRONG%3Esource%20user%3C%2FSTRONG%3E%2C%20%3CSTRONG%3Esource%20device%3C%2FSTRONG%3E%2C%20and%20%3CSTRONG%3Eaccessed%20resource%20server%3C%2FSTRONG%3E%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166358iDF4E761E3F433A78%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22resource%20access%20NTLM.png%22%20title%3D%22resource%20access%20NTLM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CEM%3EExample%20of%20enhanced%20NTLM%20activity%20details%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUse%20the%20following%20links%20to%20learn%20more%20about%20enabling%20NTLM%20auditing%20when%20working%20with%20Azure%20ATP%20to%20detect%2C%20protect%2C%20and%20remediate%20NTLM%20and%20brute%20force%20attacks%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-advanced-threat-protection%2Fatp-reconnaissance-alerts%23account-enumeration-reconnaissance-external-id-2003%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20ATP%20Account%20enumeration%20Alert%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-advanced-threat-protection%2Fatp-compromised-credentials-alerts%23suspected-brute-force-attack-kerberos-ntlm-external-id-2023%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20ATP%20Brute%20Force%20alert%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-advanced-threat-protection%2Fconfigure-windows-event-collection%23ntlm-authentication-using-windows-event-8004%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHow%20to%20audit%208004%20Windows%20events%20on%20domain%20controllers%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1414589480%22%20id%3D%22toc-hId--1414589480%22%3EGet%20Started%20Today%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20starting%20your%20Azure%20ATP%20journey%3F%20Begin%20a%20trial%20of%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fenterprise-mobility-security%2Fmtptrial%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Threat%20Protection%3C%2FA%3E%20to%20leverage%20integrated%20defenses%20and%20unparalleled%20intelligence%20across%20the%20threat%20landscape%20to%20defend%20the%20modern%20workplace.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1121006%22%20slang%3D%22en-US%22%3E%3CP%3ESecurity%20research%20shows%20most%20successful%20enumeration%20and%20brute%20force%20attacks%20use%20either%20NTLM%20or%20Kerberos%20authentication%20protocols%20for%20entry.%20In%20fact%2C%20they%E2%80%99re%20the%20most%20popular%20discovery-phase%20attacks%20Azure%20ATP%20observed%20in%20the%20past%2012%20months.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166362i9878BFEECF8ED754%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Account%20enumeration.png%22%20title%3D%22Account%20enumeration.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1121006%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eazure%20atp%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIdentity%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

 

Security research shows most successful enumeration and brute force attacks use either NTLM or Kerberos authentication protocols for entry. In fact, they’re the most popular discovery-phase attacks Azure ATP observed in the past 12 months.

 

 

Why does account enumeration matter?

 

In an account enumeration attack, the malicious actor attempts to use different usernames to access a server, with the goal of discovering which users exist within the organization. Once an attacker identifies these users, a brute force attacks begins to get their credentials and move laterally within the organization toward higher-profile assets.

 

 

What is NTLM and how does it work?

 

The NTLM protocol authenticates users and computers, using a challenge/response mechanism designed to prove to a server or domain controller that the user knows the password associated with the account they’re trying to access. Whenever a new access token is needed for domain accounts, a resource server must contact the domain controller to verify the identity of a computer or user.

 

Standard NTLM authentication flow includes 2 major steps:

 

  1. The user tries to access a resource server.
  2. The resource server validates the user with a domain controller.

NTLMflow.png

 

 

How does Azure ATP provide visibility into NTLM authentications?

 

Network traffic and Windows Events 4776 and 8004 capture NTLM data. In turn, Azure ATP parses the NTLM traffic and events from your domain controllers.

 

NTLM 8004 events provide full information on your NTLM authentications, including:

 

  • Source account
  • Source device
  • Accessed resource server
  • Domain controller that is doing the account validation

 

 

Why do some devices show up as “unknown” in Azure ATP alerts?

 

The source device in Azure ATP account enumeration and brute force detection alerts can be marked as coming from “unknown” devices, such as Workstation, MSTSC, or Unknown. This happens because the source device name field is occasionally overwritten when the attacker is already inside your organization, or when they try to enumerate accounts from the internet. This is common when the accessed server is opened to the internet and used by adversaries to enumerate users from outside the organization.

 

With enhanced support for Windows event 8004, Azure ATP now determines which servers were attacked and how the attacks happened.

 

 

How can Azure ATP detect the actual server accessed inside the network?

 

Azure ATP sensors parse Windows event 8004 for NTLM authentications. When NTLM auditing is enabled and Windows event 8004 is logged, Azure ATP sensors automatically read the event and enrich your NTLM authentications with the accessed server data.

 

Account enumeration.png

 

In addition, Azure ATP now provides Resource Access over NTLM activity, showing the source user, source device, and accessed resource server:

resource access NTLM.png

Example of enhanced NTLM activity details

 

Use the following links to learn more about enabling NTLM auditing when working with Azure ATP to detect, protect, and remediate NTLM and brute force attacks:

 

Get Started Today

 

Just starting your Azure ATP journey? Begin a trial of Microsoft Threat Protection to leverage integrated defenses and unparalleled intelligence across the threat landscape to defend the modern workplace. 

2 Comments

Thanks for Sharing Tali with the community :cool:

Frequent Contributor

Thanks Tali, I'm glad to see that there is an easier way than I originally descibed to get the answer :)