← Back to write-ups
13 Mar 20268 min read

Defending Against Malicious Extensions

Defending Against Malicious AI-Conversation-Capturing Browser Extensions

A Guide for Security Teams

Overview

A class of browser extensions can passively observe and exfiltrate content from AI chat platforms (ChatGPT, Claude, Gemini, etc.) using only commonly-granted permissions. Because these extensions require no special access beyond what many legitimate tools already request, traditional permission-based review is often insufficient on its own. This guide outlines detection, prevention, and policy controls organizations can put in place.


1. Extension Governance

Maintain an allowlist for managed browsers. Rather than relying on a blocklist (which can never be complete), configure managed Chrome/Edge/Firefox policies to permit only extensions explicitly approved by IT/security. This is the single most effective control against this entire class of threat.

Review permissions, not just names. Any extension requesting "Read and change all your data on websites you visit" (host permission <all_urls> or broad wildcard matches) should receive heightened scrutiny, especially if the extension's stated purpose doesn't obviously require full-page access (e.g., a "PDF tool" that also wants access to AI chat domains).

Pay attention to content_scripts matches fields. An extension whose manifest specifically targets claude.ai, chatgpt.com, gemini.google.com, or other AI platforms — but whose advertised functionality has nothing to do with those sites — is a strong red flag.

Re-review on update. Extensions can change behavior and permissions after initial approval via auto-update. Periodically re-audit installed extensions, particularly after version changes, and monitor for permission scope increases.


2. Network-Level Detection and Controls

Monitor for unexpected outbound connections from browser processes. The exfiltration step in this technique class typically involves the browser's background/service-worker process making HTTP requests to:

Recommended controls:

Content Security Policy (CSP) considerations: CSP headers set by the AI platform itself generally cannot prevent this technique, because the extension's background script operates outside the page's CSP context (browser extensions are exempt from page CSP in most browsers for their own background/service-worker network calls). CSP hardening on the AI platform side is not a reliable mitigation for this specific technique — defenses need to focus on the browser/extension layer instead.


3. Endpoint and Browser Configuration

Use separate browser profiles for sensitive work. Maintain a dedicated, tightly-controlled browser profile (with minimal or zero non-essential extensions) for work involving credentials, proprietary code, or sensitive AI-assisted tasks. General-purpose browsing with consumer extensions should be isolated in a separate profile or browser entirely.

Disable developer mode / unpacked extension loading on managed endpoints. Many proof-of-concept and malicious extensions rely on "Load unpacked extension" via developer mode. Disabling this via enterprise policy (Extensions.DeveloperModeAllowed or equivalent) closes off a common distribution path for internally-distributed or sideloaded malicious tooling.

Enforce Manifest V3 minimums and monitor for excessive host_permissions. While MV3 reduced some classes of abuse (e.g., remote code execution via eval), it does not prevent DOM observation or background-script network calls. Don't treat "MV3-compliant" as equivalent to "safe."


4. Detection Heuristics for Security Teams

Indicators that may suggest an extension is performing this type of capture:

These are useful signals for manual code review or automated static analysis of extension source, not reliable real-time detection on their own — code review of unpacked/CRX contents during the approval process remains the most effective check.


5. User Education

Train users on the following points as part of security awareness programs:


6. Incident Response Considerations

If a malicious extension of this type is identified in the environment:

  1. Identify all endpoints with the extension installed via EDR/MDM inventory.
  2. Treat any credentials, API keys, or secrets that may have been pasted into AI chat tools on affected endpoints as potentially compromised — rotate them.
  3. Review network logs for outbound traffic to the exfiltration endpoint (tunneling domains, unfamiliar IPs/ports) to establish exposure timeline.
  4. Remove the extension via managed policy push, and add its extension ID to the enterprise blocklist.
  5. Audit how the extension was installed (official store, sideload, group policy gap) to close the distribution gap.

Summary Checklist