Can Hackers Bypass Multi-Factor Authentication Using Cookies?

Article Highlights
Off On

Researchers at Varonis Threat Labs have uncovered an intricate method allowing cyber attackers to get around multi-factor authentication (MFA) and gain lasting access to enterprise cloud environments. By exploiting browser cookies, attackers can completely evade traditional security measures and remain undetected. This research, revealed in April, highlights the growing sophistication of session hijacking techniques, combining browser extensions and scripts to steal authentication tokens. It underscores a troubling evolution, indicating that even advanced security setups like MFA may be insufficient against such intricate attacks.

The Core Mechanics of Cookie-Based Attacks

At the heart of this attack are stolen session cookies, small pieces of data stored in a user’s browser to confirm previous authentication, including MFA. Once these cookies are captured, attackers can impersonate actual users, gaining undetected access to services like Microsoft 365, Google Workspace, and Amazon Web Services (AWS). This method bypasses security alerts, making it exceptionally dangerous.

Varonis researchers have demonstrated a proof-of-concept: a custom Chrome browser extension paired with PowerShell scripts to extract Azure Entra ID session cookies. Identified as ESTSAUTH and ESTSAUTHPERSISTENT, these cookies are obtained anytime a user logs into Microsoft’s authentication portal. After being extracted and inserted into an attacker’s browser, these cookies grant immediate access to the victim’s cloud services, effectively bypassing MFA prompts. The malicious extension operates by monitoring login events to domains such as login.microsoftonline.com, capturing authentication cookies in real time, and uploading them to an attacker-controlled endpoint like a Google Form. This stealthy approach circumvents typical malware behaviors, making endpoint detection exceedingly challenging.

Advanced Techniques and Marketplace for Stolen Data

On Windows systems, cookies are encrypted using the Data Protection API (DPAPI), which ties encryption keys to user profiles and specific machines. However, infostealers can exploit decrypted cookies stored in the process memory or extract encryption keys depending on their access level. Capturing these cookies may involve adversary-in-the-middle (AITM) attacks using reverse proxy tools and malicious extensions requesting high-level permissions to access session data directly. Stolen session data is circulated within a Malware-as-a-Service (MaaS) ecosystem. Infostealers distribute malware widely to collect credentials, tokens, and cookies, which are then sold on darknet markets to buyers such as ransomware operators and initial access brokers. Particularly, cookies that provide access to enterprise applications are highly valued. Hijacked session tokens from services like Microsoft 365 or Google Workspace can expose internal emails, cloud storage, and critical business applications. Azure Entra ID tokens offer significant appeal due to their capability to grant long-term access without reauthentication, even across browser sessions.

Within a compromised environment, attackers can manipulate existing enterprise applications, using tools like TokenSmith, ROADtools, and AADInternals. These utilities allow for the manipulation of tokens, escalating access, or pivoting across services within the tenant. Although Conditional Access Policies (CAPs) can block unauthorized login attempts based on location or device compliance, they are not foolproof. Varonis demonstrated that attackers could emulate a victim’s typical environment to bypass CAP restrictions.

Mitigation Strategies and the Future of Attack Prevention

Researchers at Varonis Threat Labs have discovered an intricate method that cyber attackers use to bypass multi-factor authentication (MFA) and gain persistent access to enterprise cloud environments. This method involves the exploitation of browser cookies, allowing attackers to completely evade conventional security defenses and remain unnoticed. The research, which was unveiled in April, sheds light on the increasing sophistication of session hijacking techniques. These techniques involve the use of browser extensions and scripts to steal authentication tokens, enabling cybercriminals to maintain prolonged access to secure systems. The findings emphasize a concerning progression in cyber attack strategies, suggesting that even advanced security measures like MFA might not be sufficient to protect against these crafty techniques. As cyber threats continue to evolve, it becomes evident that organizations must continually adapt their security protocols to stay ahead of potential breaches. This research serves as a crucial reminder of the need for constant vigilance and reassessment of security frameworks to protect sensitive data in enterprise cloud environments.

Explore more

How Can XOS Pulse Transform Your Customer Experience?

This guide aims to help organizations elevate their customer experience (CX) management by leveraging XOS Pulse, an innovative AI-driven tool developed by McorpCX. Imagine a scenario where a business struggles to retain customers due to inconsistent service quality, losing ground to competitors who seem to effortlessly meet client expectations. This challenge is more common than many realize, with studies showing

How Does AI Transform Marketing with Conversionomics Updates?

Setting the Stage for a Data-Driven Marketing Era In an era where digital marketing budgets are projected to surpass $700 billion globally by 2027, the pressure to deliver precise, measurable results has never been higher, and marketers face a labyrinth of challenges. From navigating privacy regulations to unifying fragmented consumer touchpoints across diverse media channels, the complexity is daunting, but

AgileATS for GovTech Hiring – Review

Setting the Stage for GovTech Recruitment Challenges Imagine a government contractor racing against tight deadlines to fill critical roles requiring security clearances, only to be bogged down by outdated hiring processes and a shrinking pool of qualified candidates. In the GovTech sector, where federal regulations and talent scarcity create formidable barriers, the stakes are high for efficient recruitment. Small and

Trend Analysis: Global Hiring Challenges in 2025

Imagine a world where nearly 70% of global employers are uncertain about their hiring plans due to an unpredictable economy, forcing businesses to rethink every recruitment decision. This stark reality paints a vivid picture of the complexities surrounding talent acquisition in today’s volatile global market. Economic turbulence, combined with evolving workplace expectations, has created a challenging landscape for organizations striving

Automation Cuts Insurance Claims Costs by Up to 30%

In this engaging interview, we sit down with a seasoned expert in insurance technology and digital transformation, whose extensive experience has helped shape innovative approaches to claims handling. With a deep understanding of automation’s potential, our guest offers valuable insights into how digital tools can revolutionize the insurance industry by slashing operational costs, boosting efficiency, and enhancing customer satisfaction. Today,