SaferComputing.com

Guide 2 · AI tools

AI browser extensions and MCP security: audit, restrict, isolate

Audit browser extensions that can read your AI chats, restrict them by policy, keep AI work in its own browser profile, and check Model Context Protocol servers and their stored tokens.

Published
Updated
Applies to
Chrome, Edge and Firefox; Claude Desktop and other Model Context Protocol clients; AI coding agents

Why it matters

An extension with permission to "read and change all your data on websites you visit" sees every page you open, including AI chat sessions, webmail and admin consoles. Several have used that access to copy AI conversations:

  • December 2025: Koi Security found that Urban VPN Proxy and three related extensions, with more than 8 million users across Chrome and Edge, had collected conversations from 8 AI platforms since version 5.5.0, with collection on by default. The stores removed them within days.
  • January 2026: OX Security reported two extensions with about 900,000 users between them that sent chats out every 30 minutes.
  • February 2026: LayerX, now part of Akamai, reported 30 fake AI assistant extensions with more than 260,000 users.
  • March 2026: Microsoft reported malicious AI assistant extensions with about 900,000 installs across more than 20,000 business tenants.

Model Context Protocol (MCP) servers add a second risk. They let an AI app call tools on your behalf, run with your user's permissions, and often hold API tokens in a plain-text settings file.

Step 1: audit installed extensions

In the browser

  • Chrome: open chrome://extensions, then Details on each extension. Under the site access setting ("Allow this extension to read and change all your data on websites you visit") choose On click or On specific sites instead of On all sites.
  • Edge: open edge://extensions; the same controls appear under Details.
  • Firefox: open about:addons, select the extension, and review its Permissions and data tab.

Remove anything you do not use. Be most suspicious of extensions that promise AI features, free VPNs or ad blocking and ask for access to all sites.

From the command line

Browsers keep each extension's manifest.json in the profile folder. This lists every installed Chrome extension in every profile, with whether it asks for access to all sites:

Windows PowerShell
Get-ChildItem "$env:LOCALAPPDATA\Google\Chrome\User Data\*\Extensions\*\*\manifest.json" -ErrorAction SilentlyContinue |
  ForEach-Object {
    $m = Get-Content $_.FullName -Raw | ConvertFrom-Json
    $hosts = @($m.permissions) + @($m.host_permissions) + @($m.content_scripts.matches)
    [pscustomobject]@{
      Profile  = $_.FullName.Split('\')[-5]
      Id       = $_.Directory.Parent.Name
      Version  = $m.version
      Name     = $m.name
      AllSites = [bool]($hosts | Where-Object { $_ -in '<all_urls>', '*://*/*', 'http://*/*', 'https://*/*' })
    }
  } | Sort-Object Profile, Name | Format-Table -AutoSize

For Microsoft Edge, change the path to $env:LOCALAPPDATA\Microsoft\Edge\User Data\*\Extensions\*\*\manifest.json. A name such as __MSG_appName__ is a translation key; look the ID up in the browser's extension page or store.

Linux, for Google Chrome
for f in ~/.config/google-chrome/*/Extensions/*/*/manifest.json; do
  python3 -c 'import json, sys; m = json.load(open(sys.argv[1])); print(m.get("name"), m.get("version"), sys.argv[1])' "$f"
done

Step 2: restrict extensions by policy

On computers you manage, browser policies decide which extensions may be installed and which sites no extension may touch. The ExtensionSettings policy overrides the older single-purpose policies when both are set.

This example blocks every extension except the ones you list, and stops all extensions from reading or changing three AI chat sites. Replace EXTENSION_ID_TO_ALLOW with the 32-letter ID from the extension's details page:

ExtensionSettings policy value (JSON)
{
  "*": {
    "installation_mode": "blocked",
    "runtime_blocked_hosts": ["*://chatgpt.com", "*://*.chatgpt.com", "*://claude.ai", "*://gemini.google.com"]
  },
  "EXTENSION_ID_TO_ALLOW": {
    "installation_mode": "allowed"
  }
}
  • runtime_blocked_hosts accepts up to 100 host patterns, without paths. A host listed in runtime_allowed_hosts wins over a blocked one.
  • ExtensionInstallBlocklist and ExtensionInstallAllowlist are the simpler policies for allowing and blocking by ID.
  • On Windows, Chrome reads the policy as a string value named ExtensionSettings under HKLM\SOFTWARE\Policies\Google\Chrome, and Edge under HKLM\SOFTWARE\Policies\Microsoft\Edge. Group Policy and Intune templates set the same value.
  • Confirm the browser picked it up at chrome://policy or edge://policy.

Step 3: keep AI work in its own browser profile

A separate profile has its own extensions, cookies and saved sign-ins, so an extension installed for AI work cannot see your banking or admin sessions.

  • Chrome and Edge: click the profile icon and add a profile. Start a specific profile from a shortcut with the --profile-directory switch:
Windows Command Prompt or shortcut target
"C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2"
  • Firefox: open about:profiles, or start Firefox with firefox -P to choose a profile.

A suggested split:

ProfileExtensionsSigned in to
Admin and moneyNone, or only your password managerBank, registrar, Microsoft 365 or Google admin consoles
AI workOnly the AI extensions you have reviewedAI chat services and their consoles
EverydayAd blocker and password managerEverything else

Note What browsers now protect, and what they do not

Chrome encrypts cookies on Windows with App-Bound Encryption since version 127, and on Windows it now ties Google sign-in sessions to the device with Device Bound Session Credentials. Since Chrome 136, the --remote-debugging-port switch is ignored for the default profile because information-stealing malware abused it. Even so, researchers showed in August 2026 that malware already running on the computer can turn on debugging inside a running Chrome and get around both protections. Separate profiles limit what an extension can see; they do not make an infected computer safe.

Step 4: audit Model Context Protocol servers

What can go wrong

  • Malicious servers: in September 2025, version 1.0.16 of an npm package called postmark-mcp, an unofficial copy of Postmark's server, began sending a blind copy of every email it handled to an attacker's address. Versions up to 1.0.15 were clean.
  • Vulnerable tooling: CVE-2025-6514 in mcp-remote (versions 0.0.5 to 0.1.15) allowed operating system command execution and was rated 9.6; it is fixed in 0.1.16. CVE-2025-49596 in MCP Inspector is fixed in 0.14.1. Three flaws in the reference Git server, CVE-2025-68143, CVE-2025-68144 and CVE-2025-68145, were fixed in versions 2025.9.25 and 2025.12.18.
  • By design: a local server runs whatever command its configuration names, with your permissions. Treat adding a server like installing a program.
  • Prompt injection: text the model reads, such as a web page, an email or a file, can contain instructions that try to make it call tools. Keep tool approval prompts on for anything that sends, deletes or spends.

Where the configuration lives

Claude Desktop keeps its server list in claude_desktop_config.json:

SystemPath
Windows%APPDATA%\Claude\claude_desktop_config.json
macOS~/Library/Application Support/Claude/claude_desktop_config.json

It is plain JSON, and API keys passed to servers sit in each server's env block in clear text. In April 2025, Trail of Bits found the file world-readable on macOS.

List the configured servers and the names of their environment variables without printing the secrets:

Windows PowerShell
$cfg = Get-Content "$env:APPDATA\Claude\claude_desktop_config.json" -Raw | ConvertFrom-Json
$cfg.mcpServers.PSObject.Properties | ForEach-Object {
  [pscustomobject]@{
    Server  = $_.Name
    Command = $_.Value.command
    Args    = ($_.Value.args -join ' ')
    EnvKeys = ($_.Value.env.PSObject.Properties.Name -join ', ')
  }
} | Format-Table -AutoSize
macOS Terminal
ls -l ~/Library/Application\ Support/Claude/claude_desktop_config.json
chmod 600 ~/Library/Application\ Support/Claude/claude_desktop_config.json

Rules for each server

  1. Install servers only from the vendor of the service they connect to, or from a source you have reviewed. Check that the package name and publisher match the vendor's own documentation.
  2. Pin versions. A command such as npx -y some-server fetches whatever is newest every time it starts; npx -y some-server@1.2.3 does not.
  3. Give each server its own token with the smallest scope that works: read-only where possible, limited to the repositories or mailboxes it needs.
  4. Prefer packaged desktop extensions that keep keys in the operating system's keychain over plain-text env entries.
  5. Remove servers you no longer use, and revoke their tokens at the service.

Step 5: check repositories before trusting them in AI coding agents

In August 2026, a self-spreading npm worm added two files to poisoned repositories so that opening the project would run it again: a SessionStart hook in .claude/settings.json, and a task in .vscode/tasks.json set to run when the folder opens. Both only run if you trust the workspace: VS Code blocks automatic tasks in untrusted workspaces by default, and Claude Code applies workspace trust to project settings.

Before you trust a cloned repository, look for these files:

Linux or macOS terminal, in the repository folder
git ls-files | grep -E '(^|/)\.(claude|vscode)/'
grep -rn -e SessionStart -e '"hooks"' .claude 2>/dev/null
grep -rn -e '"runOn"' -e folderOpen .vscode 2>/dev/null

The same worm stole npm, GitHub and cloud credentials and installed a watcher that reacts when its stolen tokens are revoked. If a machine ran an affected package, treat its credentials as exposed and follow the published clean-up steps, which remove the watcher before rotating credentials.

npm 12 blocks unapproved install scripts by default. On older npm clients you can turn them off yourself, knowing that a few packages need them to install:

Terminal
npm --version
npm config set ignore-scripts true

Checklist

  • Every extension has been reviewed; unused ones are removed.
  • No extension has "On all sites" access unless it needs it.
  • Managed computers have an ExtensionSettings policy, confirmed at chrome://policy.
  • AI tools run in a separate browser profile from banking and admin work.
  • Each MCP server is from a known publisher, pinned to a version, and uses a narrowly scoped token.
  • claude_desktop_config.json is readable only by you.
  • Repositories are checked for .claude and .vscode automation before you trust them.

Quick lookups

One-line checks and fixes for the ports, files and settings in this guide, one page each.

Sources