Malicious browser extensions steal cookies, sessions, and browsing data, often after a silent update or new owner. How they turn and how to catch them.
A malicious browser extension is an add-on that uses its access to the pages you visit to steal data, hijack sessions, or redirect browsing. Many do not start out that way: they turn malicious through an update, a hijacked developer account, or a sale to a new owner, and the browser installs the new version silently.
Extensions run inside the browser and, as MITRE ATT&CK puts it, can "steal all information that a user enters into a browser (including credentials)" (MITRE T1176.001). Store badges, ratings, and install counts describe an extension's past. None of them tell you what the next automatic update will do.
How malicious browser extensions work
- Installation. The extension arrives from an official store, through social engineering, by sideloading, or through tampered browser policy and preference files. Often it is a genuinely useful tool the user picked themselves.
- Leverage. It holds broad permissions: access to all sites, the
cookiesAPI, or the ability to observe and modify network requests. Our post on why browser extensions are a security risk walks through which permissions matter. - The turn. A malicious version ships through a compromised developer account, a long-planned update, or a buyout. Auto-update delivers it to existing users without anyone re-reviewing it.
- The payload. It reads cookies and storage, captures what users type, tracks every URL, injects scripts into identity and SaaS pages, or redirects traffic.
- Exfiltration. Collected data goes to an attacker-controlled domain, sometimes a lookalike of the vendor's own, as in the Cyberhaven case below.
Real-world examples
- Cyberhaven, December 2024. A phishing attack on an administrator account for the Chrome Web Store let an attacker publish version 24.10.4 of Cyberhaven's extension, with code that could "exfiltrate authenticated sessions and cookies" to
cyberhavenext[.]pro(BleepingComputer). Researchers found the same code in other extensions, including Internxt VPN, VPNCity, Uvoice, and ParrotTalks. - RedDirection, July 2025. Koi Security found 18 extensions, 10 on the Chrome Web Store and 8 on Microsoft Edge Add-ons, with more than 2.3 million users (The Register). They began as clean code, some for years, before updates added tracking and redirect behavior. The lead extension, a color picker, carried Google's verified badge and featured placement.
- Built into other attacks. MITRE lists Kimsuky using Chrome extensions to steal passwords and cookies, and the Lumma infostealer installing a malicious extension in Chrome, Edge, Opera, and Brave.
Warning signs and detection signals
- An update that adds permissions, especially cookie access, request interception, or access to all sites.
- A change of developer, publisher, or contact details on the store listing.
- An extension making network requests to domains unrelated to its function, particularly from identity provider and Microsoft 365 pages.
- Extensions installed outside the store, in developer mode, or not present in any store at all.
- Session cookies used from unfamiliar infrastructure shortly after an extension update across several users.
How Surface stops it
- Inventory and scoring. Surface inventories every installed extension every 60 minutes and gives each a 0 to 100 risk score, plus behavior heuristics.
- Allowlist enforcement. With enforcement on, Surface disables every extension that is not on your allowlist, rather than only raising an alert.
- Decoys for exfiltration. When enabled, Shadow Sessions plant decoy values across cookies, localStorage, sessionStorage, the DOM, and JavaScript. Surface alerts when a decoy is accessed and raises a critical alert when one leaves the browser in a cross-origin request, which is how an extension stealing sessions behaves. Shadow Sessions is opt-in and off by default.
- SIEM-ready. Alerts and events forward to Splunk HEC, syslog, Elasticsearch, S3 or MinIO, and webhooks for correlation with identity logs.
The browser extension security use case shows how these fit into a day-to-day program.
If it already happened
- Disable it everywhere, through allowlist enforcement or browser policy, and block reinstallation.
- Identify exposure. List every device and user that ran the malicious version during the window.
- Revoke sessions and rotate secrets for those users. Cyberhaven advised affected customers to revoke passwords that are not FIDOv2, rotate API tokens, and review browser logs.
- Check identity logs for session reuse from unfamiliar infrastructure since the update landed.
- Tighten intake. Require approval for new extensions and review permission changes on update, not just at install.
Related techniques: session hijacking, infostealers, and HTML smuggling.