{"id":4898,"date":"2024-08-15T15:09:34","date_gmt":"2024-08-15T20:09:34","guid":{"rendered":"https:\/\/www.darkreading.com\/application-security\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-clouds"},"modified":"2024-08-15T15:09:34","modified_gmt":"2024-08-15T20:09:34","slug":"unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids","status":"publish","type":"post","link":"https:\/\/ddi.mohflo.net\/index.php\/2024\/08\/15\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids\/","title":{"rendered":"Unfixed Microsoft Entra ID Authentication Bypass Threatens Hybrid IDs"},"content":{"rendered":"<div class=\"media_block\"><a href=\"https:\/\/i0.wp.com\/eu-images.contentstack.com\/v3\/assets\/blt6d90778a997de1cd\/bltb97923617d85c248\/66be608a6b78ba7dc61947e6\/cloud_TippaPatt_shutterstock.jpg?ssl=1\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?w=640&#038;ssl=1\" class=\"media_thumbnail\"><\/a><\/div>\n<div><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?w=640&#038;ssl=1\" class=\"ff-og-image-inserted\"><\/div>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Researchers have found a way to manipulate the credential validation process in Microsoft Entra ID identity environments that they say attackers can use to bypass authentication in hybrid identity infrastructures.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The attack would require an adversary to have admin access on a server hosting a Pass-Through Authentication (PTA) agent, a component that allows users to sign in to cloud services using on-premises Microsoft Entra ID (formerly Azure Active Directory) credentials. They can then use that access to log in as an Entra ID user across different on-premises domains without the need for separate authentication, researchers from Cymulate said in a <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/cymulate.com\/blog\/exploiting-pta-credential-validation-in-azure-ad\/\" rel=\"noopener\">report<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> this week.<\/span><\/p>\n<h2 class=\"ContentText ContentText_variant_h2 ContentText_align_left\" data-testid=\"content-text\" id=\"Turning PTA Into a Double-Agent\">Turning PTA Into a Double-Agent<\/h2>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">&#8220;This vulnerability effectively turns the PTA agent into a double agent,&nbsp;allowing attackers to log in as any synced AD user without knowing their actual password,&#8221; Cymulate security researcher <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/cymulate.com\/blog\/exploiting-pta-credential-validation-in-azure-ad\/\" rel=\"noopener\">Ilan Kalendarov wrote<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">. &#8220;This could potentially grant access to a global admin user if such privileges were assigned, regardless of their original synced AD domain,&#8221; and enable lateral movement to different on-premises domains.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Microsoft did not respond immediately to a Dark Reading request for comment. But according to Cymulate, Microsoft plans to fix code on its end to address the issue. However, the company also has described the attack technique as presenting only a medium-severity threat, the Israel-based security vendor said.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Earlier this month at Black Hat USA 2024, a security researcher at <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/www.darkreading.com\/application-security\/hazy-issue-entra-id-privileged-users-become-global-admins\" rel=\"noopener\">Semperis disclosed another issue with Entra ID<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> that allowed attackers to access to an organization&#8217;s entire cloud environment. Attackers are <\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><a class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_link\" target=\"_blank\" href=\"https:\/\/www.darkreading.com\/application-security\/saas-apps-present-abbreviated-kill-chain-for-attackers\" rel=\"noopener\">increasingly focusing on cloud identity services<\/a><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"> such as Entra ID, Okta, and Ping, because once they are able to compromise one of these providers, they have complete access to enterprise data in SaaS apps.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Cymulate&#8217;s proof-of-concept attack leverages what the company says is a vulnerability in Entra ID when syncing multiple on-premises domains to a single Azure tenant. In comments to Dark Reading, Kalendarov says it&#8217;s a practice that organizations often use when streamlining user access across different departments, for example, or for simplifying IT management for companies with multiple subsidiaries. Syncing multiple on-premises domains to a single Azure tenant enables seamless collaboration between separate business units, he says.<\/span><\/p>\n<h2 class=\"ContentText ContentText_variant_h2 ContentText_align_left\" data-testid=\"content-text\" id=\"Mishandling Requests\">Mishandling Requests<\/h2>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">What Cymulate discovered is that in this configuration, PTA agents can sometimes mishandle authentication requests for different on-premises domains. The company&#8217;s investigation showed that when a user attempts to sign in to Entra ID, the password validation request is put in a service queue and retrieved by any available PTA from across any of the synced on-premises domains.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Cymulate found that occasionally, a PTA agent would retrieve the username and password from a different on-premises domain and attempt to validate it against its own Windows Server AD. &#8220;This results in authentication failure because the server does not recognize the specific user,&#8221; Kalendarov says. &#8220;It depends on which PTA agent gets the request first. However, within our testing and research, it was a fairly common occurrence.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Cymulate&#8217;s POC leverages this particular issue. To prove how an attacker could abuse it, researchers first injected an unmanaged dynamic link library into the PTA agent. Once loaded, the managed DLL intercepts the ValidateCredential function responsible for checking user credentials at both the beginning and the end. By intercepting this function, the attacker can manipulate its result, always forcing it to return True, Cymulate found. &#8220;This means that even if we provide the credentials of a user from a different domain, the hook would return&nbsp;<\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\"><span class=\"ContentText-BodyTextChunk ContentText-BodyTextChunk_italic\">True<\/span><\/span><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">,&#8221; Cymulate said. &#8220;Thus, we would be able to log in as any user from any synced on-prem AD.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">The attack works only if the attacker first gains local admin access on the PTA server, Kalendarov says. &#8220;In theory, there are attacks where you first get into the PTA server and copy the certificate, then create your own replicated server. The attack would work on that server as well.&#8221;<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Kalendarov says it&#8217;s likely that Microsoft considers the threat as moderate because the attacker needs to gain local admin access first. Additionally, Microsoft recommended that organizations treat the server as a Tier-0 component, meaning they should implement the highest level of security controls, such as strict access management, enhanced monitoring, and network isolation. But the reality is that most companies do not treat it as a Tier-0 component, he says. Microsoft also recommended that organizations implement two-factor authentication for all synced users.<\/span><\/p>\n<p class=\"ContentParagraph ContentParagraph_align_left\" data-testid=\"content-paragraph\"><span class=\"ContentText ContentText_variant_bodyNormal\" data-testid=\"content-text\">Cymulate itself has recommended that Microsoft implement domain-aware routing to ensure authentication requests are directed to the appropriate PTA agent. &#8220;Additionally, establishing strict logical separation between different on-premises domains within the same tenant may be beneficial,&#8221; the company noted.<\/span><\/p>\n<p><a href=\"https:\/\/www.darkreading.com\/application-security\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-clouds\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Researchers have found a way to manipulate the credential validation<\/p>\n","protected":false},"author":12,"featured_media":4899,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[809],"class_list":["post-4898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-dark-reading"],"featured_image_urls":{"full":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=1920%2C1080&ssl=1",1920,1080,false],"thumbnail":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?resize=150%2C150&ssl=1",150,150,true],"medium":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=300%2C169&ssl=1",300,169,true],"medium_large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=640%2C360&ssl=1",640,360,true],"large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=640%2C360&ssl=1",640,360,true],"1536x1536":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=1536%2C864&ssl=1",1536,864,true],"2048x2048":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=1920%2C1080&ssl=1",1920,1080,true],"chromenews-featured":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=1024%2C576&ssl=1",1024,576,true],"chromenews-large":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?resize=825%2C575&ssl=1",825,575,true],"chromenews-medium":["https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?resize=590%2C410&ssl=1",590,410,true]},"author_info":{"display_name":"Dark Reading","author_link":"https:\/\/ddi.mohflo.net\/index.php\/author\/darkreading\/"},"category_info":"<a href=\"https:\/\/ddi.mohflo.net\/index.php\/category\/uncategorized\/\" rel=\"category tag\">Uncategorized<\/a>","tag_info":"Uncategorized","comment_count":"0","jetpack_featured_media_url":"https:\/\/i0.wp.com\/ddi.mohflo.net\/wp-content\/uploads\/2024\/08\/unfixed-microsoft-entra-id-authentication-bypass-threatens-hybrid-ids.jpg?fit=1920%2C1080&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/4898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/comments?post=4898"}],"version-history":[{"count":0,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/posts\/4898\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media\/4899"}],"wp:attachment":[{"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/media?parent=4898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/categories?post=4898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ddi.mohflo.net\/index.php\/wp-json\/wp\/v2\/tags?post=4898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}