Cookie-Bite attack PoC uses Chrome extension to steal session tokens

Digital cookies

A proof-of-concept attack called “Cookie-Bite” uses a browser extension to steal browser session cookies from Azure Entra ID to bypass multi-factor authentication (MFA) protections and maintain access to cloud services like Microsoft 365, Outlook, and Teams.

The attack was devised by Varonis security researchers, who shared a proof-of-concept (PoC) method involving a malicious and a legitimate Chrome extension. However, stealing session cookies is not novel, as infostealers and adversary-in-the-middle phishing attacks commonly target them.

While stealing cookies to breach accounts is not a new concept, the use of a malicious Chrome browser extension in the Cookie-Bite technique is noteworthy for its stealth and persistence.

Cookie extension attack

The Cookie-Bite attack consists of a malicious Chrome extension that acts as an infostealer, targeting the ‘ESTAUTH’ and ‘ESTSAUTHPERSISTNT’ cookies in Azure Entra ID, Microsoft’s cloud-based identity and access management (IAM) service.

ESTAUTH is a transient session token that indicates that the user is authenticated and has completed MFA. It remains valid for the browser session for up to 24 hours and expires when the app is closed.

ESTSAUTHPERSISTENT is the persistent version of the session cookie created when users opt to “Stay signed in” or when Azure applies the KMSI policy, keeping it valid for up to 90 days.

It should be noted that while this extension was created to target Microsoft session cookies, it can be modified to target other services, including Google, Okta, and AWS cookies.

Varonis’ malicious Chrome extension contains logic to monitor the victim’s login events, listening for tab updates that match Microsoft login URLs. 

When a login occurs, it reads all cookies scoped to ‘login.microsoftonline.com,’ applies filtering to extract the two mentioned tokens, and exfiltrates the cookie JSON data to the attacker via a Google Form.

“After packing the extension into a CRX file and uploading it to VirusTotal, the result shows that no security vendors currently detect it as malicious,” warned Varonis.

Chrome extensions stealing Microsoft session cookies
Chrome extensions stealing Microsoft session cookies
Source: Varonis

If threat actors have access to the device, they can deploy a PowerShell script that runs via the Windows Task Scheduler to automate the re-injection of the unsigned extension at every launch of Chrome using developer mode.

PowerShell used in the attack example
PowerShell used in the attack example
Source: Varonis

Once a cookie is stolen, the attackers inject it into the browser like any other stolen cookie. This can be done through tools like the legitimate Cookie-Editor Chrome extension, which allows the threat actor to import the stolen cookies into their browser under ‘login.microsoftonline.com.’

After refreshing the page, Azure treats the attacker’s session as fully authenticated, bypassing MFA and giving the attacker the same level of access as the victim.

Injecting the stolen cookie
Injecting the stolen cookie
Source: Varonis

From there, the attacker may use Graph Explorer to enumerate users, roles, and devices, send messages or access chats on Microsoft Teams, and read or download emails via Outlook Web.

Further exploitation like privilege escalation, lateral movement, and unauthorized app registrations are also possible via tools like TokenSmith, ROADtools, and AADInternals.

Overview of the Cookie-Bite attack
Overview of the Cookie-Bite attack
Source: Varonis

Microsoft flagged the researchers’ login attempts in the attack demonstration as “atRisk” due to them using a VPN, so monitoring for abnormal sign-ins is key to preventing these attacks.

Additionally, it is recommended that conditional access policies (CAP) be enforced to limit logins to specific IP ranges and devices.

Concerning Chrome extensions, it is recommended that Chrome ADMX policies be enforced to allow only pre-approved extensions to run and block users from the browser’s Developer Mode entirely.

Bill Toulas
Read More

Latest

Glenmark Pharma Q1 profit jumps over 10-fold as India, North America businesses power growth

Pharma major Glenmark Pharmaceuticals Ltd on Friday (July 31) reported a 930% year-on-year increase in consolidated net profit to ₹483 crore for the first quarter, compared with ₹47 crore in the corresponding quarter last year. The company's revenue rose 23% year-on-year to ₹4,018 crore, compared with ₹3,264 crore a year earlier. At the operating level

Crypto Hack : COLDCARD Wallet Flaw Linked to $38 Million BTC Theft

Coinkite has disclosed a critical entropy-generation flaw affecting certain COLDCARD Mk2 and Mk3 firmware versions that may have weakened the security of wallet recovery seeds. According to PeckShield, the vulnerability has been linked to the theft of about $38 million in Bitcoin. Users who generated seeds using affected firmware are advised to update to the

Could STX See a Resurgence Through Institutional Bitcoin Capital?

Stacks (STX) powering Bitcoin-native Finance targets idle Bitcoin, an op portunity that remains one of the largest untapped pools of capital in crypto. According to Binance Research, less than 1% of total BTC supply is currently used productively across DeFi, against staking ratios above 30% for Ethereum and 60% for Solana. Whoever converts even a

FTX Repayments: Creditors to Receive Another $900 Million

FTX will begin distributing another $900 million to creditors starting tomorrow, bringing total repayments since the exchange’s 2022 collapse to nearly $10 billion. Many creditors are expected to recover more than 100% of their original claim value based on the bankruptcy filing date, while some smaller accounts could receive up to 120%. The latest payout

Newsletter

Don't miss

Glenmark Pharma Q1 profit jumps over 10-fold as India, North America businesses power growth

Pharma major Glenmark Pharmaceuticals Ltd on Friday (July 31) reported a 930% year-on-year increase in consolidated net profit to ₹483 crore for the first quarter, compared with ₹47 crore in the corresponding quarter last year. The company's revenue rose 23% year-on-year to ₹4,018 crore, compared with ₹3,264 crore a year earlier. At the operating level

Crypto Hack : COLDCARD Wallet Flaw Linked to $38 Million BTC Theft

Coinkite has disclosed a critical entropy-generation flaw affecting certain COLDCARD Mk2 and Mk3 firmware versions that may have weakened the security of wallet recovery seeds. According to PeckShield, the vulnerability has been linked to the theft of about $38 million in Bitcoin. Users who generated seeds using affected firmware are advised to update to the

Could STX See a Resurgence Through Institutional Bitcoin Capital?

Stacks (STX) powering Bitcoin-native Finance targets idle Bitcoin, an op portunity that remains one of the largest untapped pools of capital in crypto. According to Binance Research, less than 1% of total BTC supply is currently used productively across DeFi, against staking ratios above 30% for Ethereum and 60% for Solana. Whoever converts even a

FTX Repayments: Creditors to Receive Another $900 Million

FTX will begin distributing another $900 million to creditors starting tomorrow, bringing total repayments since the exchange’s 2022 collapse to nearly $10 billion. Many creditors are expected to recover more than 100% of their original claim value based on the bankruptcy filing date, while some smaller accounts could receive up to 120%. The latest payout

Hyperliquid News: HYPE Whales Unstake Millions as Protocol Revenue Tops $1.21 Billion

Hyperliquid is drawing attention after large HYPE holders unstaked millions of tokens, including one wallet that withdrew 1.02 million HYPE and another that transferred 1.89 million HYPE worth about $105.9 million to institutional brokers, a move often associated with over-the-counter sales. Despite the whale activity, the protocol generated $1.18 million in daily fees and burned

‘Sabah is open for business’: Hajiji courts investors with promise of sustainable growth, carbon‑negative credentials

Sabah is pitching itself as an Asia-Pacific hub for impact investing, betting that its forests, biodiversity and natural resources can become drivers of economic growth as it seeks private capital for sustainable development. — Picture by Firdaus Latif By Julia Chan First Published: Monday, 13 Jul 2026 11:44 AM MYT KOTA KINABALU, July 13 —

Want Your Business to Be Seen Everywhere? Meet Tonia Ryan, Creator of Fix Your Search

Some people are good at their jobs. Then there is Tonia Ryan, who has turned “getting found online” into something close to magic. She is the creator of Fix Your Search, and if you have ever wondered why some businesses pop up everywhere while others seem invisible...

Grey Business processes $61 million as stablecoins dominate payments

Grey Business enables startups and SMEs to open US Dollar (USD) corporate accounts, send and receive international payments, convert currencies, and transact using stablecoins such as USDC and USDT...