Cloud Security

Every Extension Is a Vendor

Jonas LindqvistJonas LindqvistCloud Security Architect30 Dec 20244 min read1135 views
Editorial cover for “Every Extension Is a Vendor”

On Christmas Eve, an employee at Cyberhaven — a data security company — received an email that appeared to come from Chrome Web Store developer support, warning that the company's browser extension faced removal for a policy violation. The link did not lead to a fake login page. It led to a consent screen for an OAuth application called "Privacy Policy Extension". Granting it gave the attacker what they needed to publish a new version of Cyberhaven's extension, 24.10.4, which reached users through ordinary automatic updates.

Cyberhaven says its security team removed the malicious package within an hour of detecting it; by The Hacker News's account, it had been live for about 24 hours. A clean 24.10.5 followed on December 26. Any browser that auto-updated in that window received the bad version. In the days since, researchers including Jaime Blasco of Nudge Security and John Tuckner of Secure Annex have found the same malicious code in more than a dozen other extensions, and the count was still climbing as we wrote this.

What the code wanted

According to the published analysis, the payload in Cyberhaven's extension was interested in Facebook: identity data and access tokens, apparently aimed at Facebook Ads accounts. It also watched for activity on facebook.com that researchers suspect was an attempt to get around two-factor prompts. More generally, BleepingComputer described the injected code as able to send authenticated sessions and cookies to an attacker-controlled domain.

Cyberhaven's guidance to customers was sensible and is worth copying: move to the clean version, revoke and rotate passwords that are not FIDO2-protected, rotate API tokens, and review browser logs.

Notice the target. Not the domain controller, not the finance system. The marketing team's ad account — a business account with a payment method attached, run from a browser, by people who tend to install more extensions than anyone else in the company.

Why extensions keep working as an attack path

Browser extensions sit in a blind spot that most security programs have never formally looked at:

  • They update silently. A trusted extension can become a malicious one overnight, with no action by anyone in your company. It is the same structural shape we wrote about in August after the endpoint-agent outage: privileged code that changes on someone else's schedule, outside your change process.
  • They see what the browser sees. An extension permitted to read and change data on all websites can reach every SaaS session the user has open. In a company that runs on SaaS, the browser is the endpoint.
  • Nobody bought them. No procurement, no contract, no security review, no owner. Individuals installed them, often years ago, sometimes from a publisher that has since sold the extension to someone else.
  • One account can reach millions of browsers. Many publishers are small teams, and a single developer account can push code to every install. That is a software supply chain with one email between it and your users.

This part applies well beyond extension developers.

The Cyberhaven employee did not type a password into a fake page. They approved an application's request for access. Multi-factor authentication protects the sign-in; it does nothing about what a signed-in user agrees to afterwards. And a grant, once given, stays in place until someone removes it.

Your Microsoft 365 or Google Workspace tenant has the same exposure. Any employee can be shown a plausible consent screen asking for access to their mail, files or calendar. Three controls close most of it:

  • Restrict user consent. In Microsoft Entra ID, limit what users can approve on their own — verified publishers and low-risk permissions — and route everything else through an admin consent request. In Google Workspace, use API controls to restrict which third-party apps can access organizational data.
  • Review existing grants every quarter, and remove the ones nobody uses. The first review is always longer than anyone expects.
  • If you publish software — an extension, a mobile app, a package — treat the publishing account like production. A dedicated account, hardware-key MFA, as few people as possible, and release notifications that go to more than one person.

What to do in January

  1. Inventory every extension. Chrome Enterprise, Microsoft Edge management and most MDM platforms can report what is installed across managed browsers. In our client base, the first inventory routinely turns up well over a hundred distinct extensions in a 200-person company, a meaningful share of them able to read every site.
  2. Move to an allow-list. Block by default and approve on request. Chrome and Edge both support this by policy. Keep the approval form short and the turnaround under two business days, or people will route around it.
  3. Prioritize by permission and audience. Start with all-sites access, and with the people who hold administrator, finance, advertising and payment accounts.
  4. Decide about unmanaged browsers. Personal browser profiles on company laptops, and company SaaS on personal devices, bypass every control above. Choose deliberately which of those you allow.
  5. Rehearse the response. When an extension you allow is reported compromised: force-remove it by policy, revoke active sessions in the SaaS applications that matter, and check the ad and payment accounts. Resetting passwords alone does not undo stolen session tokens, as we wrote last month.

Cyberhaven caught this within about a day and told its customers plainly. That is the good version of this story, and it still reached every browser that updated overnight.

Every extension your people install is a vendor with code running inside every session they have. Most of them have never been asked a single question.

Sources

#browser extensions#OAuth#software supply chain#SaaS#consent phishing
Jonas Lindqvist

About the author

Jonas LindqvistCloud Security Architect

Jonas spent six years as a platform engineer before crossing over to security, which is why his hardening guidance actually survives contact with a real DevOps team. He is a CISSP with the AWS and Azure security specialty certs, and he wrote the landing-zone baseline we now deploy for every cloud-native client. His rule of thumb: if a control is not in code, it does not exist.

Cloud architecture reviewIAM & identity securityInfrastructure as codeKubernetes security

Discussion(0)

No comments yet — the floor is yours.

Join the discussion

Your email stays private; we only use it to distinguish real readers from bots.

open a channel

The best time to harden your defenses was yesterday.

The second-best time is right now. Tell us what keeps you up at night — we answer within one business day.