SBN

Browser Extensions: The Infostealers Nobody is Watching Out For

Extension-Based Infostealers and How to Stop Them

Infostealers have become a critical security threat, capable of exfiltrating valuable data including credentials, intellectual property, personal information, and financial records. Currently, two primary categories are well-documented: traditional file-based variants and more sophisticated fileless versions, both of which are detailed in this guide from Israel’s National Cyber Directorate.

In recent years, a third category of infostealers has emerged in the form of malicious browser extensions. These operate directly within web browsers and can capture various types of data including video conference streams, login credentials, and browsing data. Their native browser integration allows them to bypass conventional anti-infostealer security measures as they can operate without any downloads, malware or separate executable files.

How are Browser Extensions Used to Steal Data?

Browser extensions are powerful tools that enhance and customize web browsers beyond their built-in capabilities. These add-ons operate within a permissions system defined by the browser vendor, where each extension must explicitly declare what browser features and data it needs to access.

Unfortunately, these permissions are simultaneously powerful and defined with very limited granularity. As a result, the breadth of capabilities that each permission allows raises significant security concerns. Consider the clipboardRead permission — once granted, it gives an extension complete access to the machine’s keyboard, regardless of whether it contains sensitive data or is copied from an enterprise resource. While classified as “medium risk” by Chrome, this permission is frequently used by attackers to steal sensitive information like passwords and credit card details. For instance, attackers can track browsing activity and capture passwords directly from the clipboard every time users copy credentials from their password managers.

Many other permissions pose significant data security risks, including:

Source: Google Chrome

The Unique Challenge of Extension-Based Infostealers

Unlike traditional malware-based infostealers, browser extension-based threats pose a distinct security challenge that few organizations are equipped to defend against. Their detection is particularly complex due to several key factors.

Traditional Security Tools Are Ineffective

Traditional security solutions like EDR and SASE are designed to detect specific malware signatures and behaviors in infostealers. However, extension-based infostealers operate entirely within the browser, requiring no malicious file downloads or executable code. This renders conventional detection methods useless against these threats.

Legitimate Permissions Mask Malicious Intent

Extension-based attacks exploit the inherently broad permissions system of browsers. Since both legitimate and malicious extensions use the same permissions, distinguishing between them becomes extremely difficult. Malicious extensions often maintain a cover of legitimacy by providing useful features while secretly harvesting sensitive data.

Limited Visibility and Monitoring

Most organizations lack proper tools to monitor browser extension activity, with many unaware of which extensions their employees are using. Those that do implement controls typically rely on static analysis, which can be easily evaded and fails to detect real-time malicious behavior.

The Trojan Horse Effect

Initially benign extensions can transform into threats through various means — compromised developer accounts, acquisitions by malicious actors, or deliberate switches in behavior after establishing trust. Organizations typically whitelist extensions once during initial review, leaving them blind to subsequent changes in behavior or underlying code.

Case Study: GoogleMeets Feed Stealer

At DEFCON32, SquareX researchers revealed multiple attacks leveraging MV3 compliant browser extensions in a talk titled Sneaky Extensions: The MV3 Escape Artists. One such technique allowed malicious extensions to observe and steal the whole video feed from meeting platforms such as GoogleMeets, Zoom and Teams. Concerningly, this attack can be conducted without any additional permission apart from the host permission, which is typically used to define which sites an extension has access to.

The malicious extension works in the following way:

  1. User installs malicious extension, masquerading as a legitimate tool (e.g. video call transcriber)
  2. When the user joins a video call, the extension requestAnimationFrame to repeatedly draw frames from the video onto the offscreen canvas
  3. The extension then draws the canvas content to a blob, which essentially represents frames of the video as a grid of pixels, with each pixel containing color and intensity information
  4. The URL to this blob is sent to the service worker , which can then send the frames to the attacker

The Solution: Browser Detection and Response

Given that extension infostealers operate fully in the browser, it can only be tackled with a browser-native solution. SquareX’s Browser Detection and Response solution comes with a proprietary extension analysis engine with several main components.

Highly Granular Extension-based Policies

As seen, permissions-based policies alone are too broad to defend against malicious extensions. SquareX’s policy engine includes parameters across over 25 dimensions including permissions, version, author and source. SquareX can also track all extensions and elements listed on the Chrome Store, including user reviews, publisher and number of downloads. For example, companies may choose to block extensions below a certain threshold of downloads or positive reviews. Events like publisher and code changes can also be used to trigger detection workflows, prompting immediate security assessments when suspicious changes are detected.

Advanced Extension Static Analysis

SquareX’s extension analysis engine not only detects malicious code, but also uses advanced AI and machine learning techniques to identify malicious intent. This is possible through training with SquareX’s proprietary browser extension code database, which includes sneaky malicious extensions that bypass existing static code analyzers.

Dynamic Analysis

In addition to static code analysis, SquareX developed an industry-first dynamic analyzer that executes extensions in a controlled environment to observe their actual runtime behavior. This allows for an extra layer of protection through real-time monitoring of extension activities, network communications, and resource usage, enabling the detection of malicious behaviors that might not be apparent through static analysis alone.

Browser Extension Policy Library

For security teams that are relatively new at managing extensions, SquareX’s policy library offers hundreds of policies defending against multiple attack vectors, including extensions. These policies were built based on best practices observed across our customers, and are continually updated to reflect emerging threats in the browser extension landscape.

Extension Risk Scores

Based on multiple static and dynamic tests, SquareX developed a sophisticated risk scoring system. The system incorporates real-time behaviour data, public reviews, historical performance, publisher reputation and aggregated security research. This creates a centralized threat feed for browser extensions that security teams can use to protect their users against existing and zero day extension-based attacks.

Below are some examples of how SquareX prevented extension infostealers.

Case Study 1: Autofill Credential Stealers

Case Study 2: Data Exfiltration from SaaS Apps via OAuth Consent Attacks

Case Study 3: Fake Password Managers Stealing Passwords


Browser Extensions: The Infostealers Nobody is Watching Out For was originally published in SquareX Labs on Medium, where people are continuing the conversation by highlighting and responding to this story.