# TheNativeMenace or how we hacked 1Password, Bitwarden and Claude Desktop

> Source: <https://hades.cs.uic.edu/blog/native_menace/>
> Published: 2026-12-05 18:38:53+00:00

**Recommendation:** Audit every Native Messaging manifest and allowed_origins entry on user machines, and treat extension-to-desktop-host channels like 1Password's unlock message as untrusted input that needs validation.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

# The Native Menace

## Table of Contents

```
@misc{thenativemenace,
      title={The Native Menace: Host-to-Browser Cross-Boundary Attacks via Native Messaging},
      author={Jyotirmay Chauhan and Rownak Islam and Jason Polakis},
      year={2026},
      eprint={2611.04291},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2611.04291},
}
```

# Prologue

Back in March this year, our team at HADES lab were looking for new research topics when we
came across a rather interesting Chromium extension API, called **[Native Messaging](https://developer.chrome.com/docs/extensions/develop/concepts/native-messaging)**. This API (introduced back in 2013) is designed to lets **an extension communicate directly** with a **desktop app.**

This discovery was quite surprising since our team, which [publishes quite a bit of browser research](https://hades.cs.uic.edu/publications/), had never encountered this API before. especially given its capabilities and sensitive nature. To understand what is so sensitive about this API, we first need to understand the browser security model

## The Browser Sandbox

Modern web browsers takes user security very *very* seriously.

Browsers [sandbox](<https://en.wikipedia.org/wiki/Sandbox_(computer_security)>) every page in a separate isolated process with no direct OS access. Browser extensions recieve a little more leeway and can read a page’s DOM, intercept network traffic, and inject scripts. But even they cannot touch the user filesystem. All sensitive actions are mediated by the browser and require explicit user consent.

*Scott McCloud’s original Chrome Comic from 2008*

## Do extensions even use Native Messaging?

Turns out a bunch of pretty popular extensions do! [Adobe](https://chromewebstore.google.com/detail/adobe-acrobat-pdf-edit-co/efaidnbmnnnibpcajpcglclefindmkaj?hl=en) uses it to save websites as PDFs directly. [Claude](https://chromewebstore.google.com/detail/claude/fcoeoabgfenejglbffodgkkbkcdhcgfn?hl=en) uses it for web automation. But the most interesting extension that uses it was 1Password.

1Password, a password manager, ships a [highly secure & hardened](https://agilebits.github.io/security-design/secureItems.html) desktop app to store passwords and secrets. On a default macOS system, it is pretty much impossible to decrypt the contents of 1Password. 1Password also ships a [Chrome extension](https://chromewebstore.google.com/detail/1password-%E2%80%93-password-mana/aeblfdkhhhdcdjpifhhbdiojplfjncoa?hl=en) to help autofill passwords on websites. But the extension and the desktop app are essentially separate products.

1Password uses native messaging to automatically unlock the extension if the desktop vault is unlocked. This got us thinking what if we could intercept and read this unlock message?

*So we started our deep dive into the protocol*

## How Native Messaging (NM) works in theory

Just to clarify, an extension cannot just talk to any app on the desktop. The desktop app needs to give consent first by creating a manifest in the `NativeMessagingHosts folder either a system-level or a user-level directory. 1Password does it at the user level in the folder

`~/Library/Application Support/Google/Chrome/NativeMessagingHosts/`

The manifest contains a reverse-DNS host name, a path to the host to spawn, and a list of extension IDs allowed to communicate with the host.

```
{
  "name": "com.1password.1password",
  "path": "/apps/1Password.app/.../1Password-BrowserSupport",
  "type": "stdio",
  "allowed_origins": ["chrome-extension://aeblfdkhhhdcdjpifhhbdiojplfjncoa/"]
}
```

Interestingly, only the extension can initiate the connection with the native host (in this case the 1Password-BrowserSupport binary).

When an extension wants to connect, it queries the browser API `chrome.runtime.connectNative("com.1password.1password")`. Chrome resolves the name to the native app’s path via the manifest, and it validates that the calling extension ID is listed under the `allowed_origins` field in the NM manifest file. This is designed to prevent unauthorized extensions from communicating with the native app.

If the extension is allowed, then Chrome launches the native app and links its stdio with the extension via a `port` object. Essentially, both the extension and the desktop app talk to each other with Chrome acting as a relay.

# The Native Menace

Turns out any app can write any manifest file.

So an attacker can **modify** another app’s `path` variable to point to a different binary altogether. So when a legitimate extension calls `connectNative()`, it will launch the attacker’s binary and communicate with it, thinking it is the legitimate app.

This was one half of the interception chain. Now we had to make the desktop app believe that it was communicating with the legitimate extension.

### i ) Hoodwinking the Native Host

When Chrome launches the native host, it provides the web extension ID as a cmdline argument. This is designed to let the app know which extension is communicating with it (since more than one extension can call the same native host). This is a terrible security mechanism since extension IDs are public knowledge, and thus an attacker can spoof this value when launching the legitimate native host, thus making it believe that the legitimate extension launched it.

This completes the MITM interception, and now we can examine the native messages being passed.

### ii ) Being a parent is tough

But this didn’t work on 1Password.

On macOS, Apple provides [a mechanism](https://developer.apple.com/documentation/security/applying-launch-environment-and-library-constraints) for app developers to check the app’s launch environment and Apple Developer Identity of their parent process.

1Password used this to ensure that its parent process was launched by a legitimate browser like Chrome or Firefox (we verified this by making our clanker reverse engineer the 1Password-BrowserSupport binary).

After spending a couple of days unsuccessfully trying to bypass this cryptographic check, we realised that we didn’t need to bypass it at all. We could just spawn a headless Chrome instance with an attacker-controlled profile to launch the binary.

To do so, we created a fake extension which impersonated the legitimate 1Password extension by copying its public key. The headless Chrome then proceeds to spawn the legitimate host completing the MITM interception.

### iii ) 1Password NM API breakdown

Upon launch, the 1Password extension sends a `NMRequestAccounts` request to query all user accounts registered with the desktop app.

If the desktop app is unlocked, the native host responds with full account info, including the sensitive key material the extension needs to operate. `srpX` authenticates the user on the server and pulls the encrypted vault; `muk` decrypts the key set which decrypts the vault.

So an attacker sitting in the middle gets everything required to decrypt a user’s vault in complete stealth.

| extension → NM host (Request) | NM host → extension (Response) | 
|---|---|
| 

```
{
    "invocation": {
      "type": "NmRequestAccounts",
      "content": {
        "version": 1,
        "userRequested": false
      }
    }
  }
```

 | 

```
{
    "type": "Success",
    "response": {
      "type": "NmRequestAccounts",
      "content": {
        "accounts": [{
          "type": "Unlocked",
          "content": {
            "details": {
              "email": "‹REDACTED›",
              "server": "1password.com",
              "signInAddress": "https://my.1password.com/",
              "userUuid": "UXPQ…SKM",
              "accountUuid": "A7MT…67Y"
            },
            "secretKey": "A3-XXXXXX-XXXXXX-XXXXX-XXXXX",
            "muk": { "alg": "A256GCM", "k": "‹REDACTED›" },
            "srpX": "‹REDACTED›"
          }
        }]
      }
    }
  }
```

 | 

### iv ) Extensions need not apply

If you notice, the `NMRequestAccounts` request has no token or challenge. So, instead of a relay, what if the imposter app made a request by itself? This creates the other variant — the uni-directional one — which is much stronger. The victim doesn’t even have to have the extension installed; *any* app on macOS can just *ASK* 1Password for the keys, which it will then happily hand over.

### v ) Does encryption help?

Bitwarden and KeePassXC also use Native Messaging API but they secure with encryption.

But, encryption doesn’t prevent Man-in-the-Middle attacks when there is no sender integrity. The attacker can just do independent handshakes with both parties — the native host and the extension — and get the plain text messages.

Thus, we were able to capture full credentials for KeePassXC and the decryption key for Bitwarden.

*Encryption added and removed here :-)*

# What about other apps?

Apps we exploited include:

|  | App | What the attacker gets | 
|---|---|---|
|  | **1Password** | Full account key material ( `secretKey` ,`muk` ,`srpX` ) — complete vault decryption in stealth; works even without the extension installed | 
|  | **Bitwarden** | Vault decryption key, captured via MITM despite the encrypted channel | 
|  | **KeePassXC** | Full credentials, captured via MITM despite the encrypted channel | 
|  | **Web Signer** | Intercepted and modified `signHash` call — makes the victim sign attacker-controlled documents | 
|  | **Web eID** | Hijacked EU digital ID authentication across governmental sites | 
|  | **Claude in Chrome** | Arbitrary JS execution and browser actions in the victim's logged-in session | 
|  | **Adobe Acrobat** | Cloud documents exfiltrated; PDF output silently swapped with attacker content | 
|  | **Launcher for Google Drive** | Hijack the file the victim opens; steal files by routing them to an attacker app | 
|  | **Chrome Remote Desktop** | Remote control of screen, keyboard and mouse; can bypass TCC on macOS | 
|  | **Cisco Webex** | Victim dropped into an attacker's meeting; their mic and camera exposed | 
|  | **Foxit and WPS** | Attacker-chosen content substituted into the generated PDF; cloud session hijacked and documents replaced | 
|  | **A360 and UiPath** | Attacker-controlled browser automation and arbitrary JS injection | 

## The root cause and how to kill it

All the apps we tested treated NM as a secure channel. They assumed that the voice on the other end was who they expected it to be, but in the Native Messaging protocol, there is no possible way to authenticate the other party. No root of trust. No integrity checks. Nothing.

To solve this, we identified 2 fixes:

- **(i) Locking down who can register the host** - Flip the default lookup to system-level first, from user-level. Protects against manifest shadowing without root permission.
- **(ii) Out-of-band key** - Vendors should implement key sharing out of band (e.g., a TLS backend or local PAKE) and then use that key for encrypting messages.

# Disclosures but no CVE :(

Before we submitted our research to IEEE S&P 2027 (Accepted !!!), we disclosed our findings to the vendors.

**1Password** acknowldeged our research and reproduced it but then closed the issue as informative stating that their threat model doesn’t include local attackers. **Bitwarden** also stated the same reason.

**Foxit** shipped message integrity and replay protection, but couldn’t adopt PAKE/backend key sharing because it apparently “crosses the design boundary of the current product”.

**Anthropic** duped our finding and closed the issue. (attack still works btw)

**web eID** took it seriously enough to propose collaborating on a brand new browser mechanism to address Native messaging’s shortcoming.

**Adobe, KeePassXC, Opera, Web Signer, and Signer.Digital** acknowledged our research but didn’t respond further.

# Paper Details

**The Native Menace: Host-to-Browser Cross-Boundary Attacks via Native Messaging**

Jyotirmay Chauhan*, Rownak Islam*, Jason Polakis

 IEEE Symposium on Security and Privacy (S&P) 2027

**These authors contributed equally to this work*

[Paper (arXiv:2611.04291)](https://arxiv.org/abs/2611.04291)

BibTeX:

```
@misc{chauhan2026nativemenacehosttobrowsercrossboundary,
      title={The Native Menace: Host-to-Browser Cross-Boundary Attacks via Native Messaging},
      author={Jyotirmay Chauhan and Rownak Islam and Jason Polakis},
      year={2026},
      eprint={2611.04291},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2611.04291},
}
```


