Manuscript Offprint
arXiv:2611.04291The Native Menace: Host-to-Browser Cross-Boundary Attacks via Native Messaging
Jyotirmay Chauhan*, Rownak Islam*, Jason Polakis
University of Illinois Chicago {jchauh3, misla84, polakis}@uic.edu
Abstract—Modern browsers are complex software platforms that users can customize through browser extensions to further expand their functionality. Extensions derive their functionality from privileged browser APIs that expose powerful capabilities. Prior work has extensively studied how malicious webpages or extensions can target those capabilities. However, prior research has overlooked the NativeMessaging API, which allows extensions to create a communication channel that bridges the gap between web content rendered in the browser and native apps running on the user's machine. This API enables workflows that cross the browser's boundary to perform critical operations (e.g., digital signing) or exchange sensitive data (e.g., credentials). In this paper, we conduct the first, to our knowledge, empirical security analysis of NativeMessaging, and present a novel attack that allows a non-privileged malicious native app to misuse browsers' native messaging capabilities to stealthily intercept sensitive communications or launch confused deputy attacks against other native apps. To demonstrate the significant risk introduced by native messaging, we present a series of concrete attacks against popular and critical apps (e.g., iPassword, the European Union's eID system, Google Drive), whose browser extensions have more than 532 million cumulative downloads. Our attacks have severe ramifications, including full password vault leakage, and arbitrary document signing in governmental workflows. Fundamentally, these attacks are possible due to native messaging being built on top of an untrusted communication channel without providing a root of trust or enforcing some form of client attestation. Accordingly, we propose a straightforward mitigation technique of message encryption with out-of-band secret sharing, to prevent our attacks.
1. Introduction
The Internet has become an integral part of modern everyday life, and web browsers mediate a broad range of our sensitive online activities, including inter-personal communications, financial tasks, and business-related workflows [1]. To support the demands of modern web apps, browser vendors continuously introduce new APIs that expose richer functionality to web content [2], ranging from hardware access to credential management and local storage [3], [4], [5]. As a result, contemporary browsers have evolved into highly complex software platforms [6] de-
ployed across billions of devices worldwide. At the same time, browsers support extension ecosystems that allow third-party developers to further augment browser functionality with customized features, and tighter integration.
As such, browser extensions have become deeply embedded in the modern web ecosystem. Popular browsers such as Google Chrome and Mozilla Firefox collectively host hundreds of thousands of publicly available extensions that serve millions of users [7]. These extensions are routinely granted access to highly sensitive browser privileges [8], [9], including the ability to read and modify web page contents, intercept network requests, and access authentication tokens. While these capabilities enable powerful functionality, they also significantly expand the browser attack surface by introducing privileged third-party code into security-sensitive environments [10], [11].
Consequently, browser extensions have attracted substantial attention from the security and privacy research community. Prior work has extensively investigated malicious extensions [12], [13], [14], privilege escalation attacks [15], and extension fingerprinting [16], [17], [18], [19], [20]. Research has also demonstrated how extensions can exfiltrate sensitive browsing data [21], and bypass isolation boundaries [22]. Other studies have explored the security implications of extension ecosystems at scale [23], uncovering widespread overprivilege [24] and insufficient vetting practices in extension marketplaces [25]. Despite this extensive body of work, existing research has focused on threats originating from malicious web content targeting extensions [26] or malicious extensions themselves.
In this paper, we adopt a different threat model: that of malicious native apps misusing browser extension functionality, which is made possible by NativeMessaging, an overlooked browser extension API. In more detail, we conduct the first systematic empirical analysis of the NativeMessaging API, which bridges the gap between the web content rendered in browsers and native apps. Specifically, this API allows extensions to communicate with locally installed native apps through operating-system-level inter-process communication channels. A representative use case is that of a native password manager sending the credentials for a specific domain to its browser extension counterpart, which the extension can then autofill in the website's login form. This allows the extension to limit its functionality to interacting with websites, without the need to store the user's vault locally in any of the browser's storages. Our in-depth empirical analysis uncovers a series
*These authors contributed equally to this work.
of inherent flaws in the design and deployment of NativeMessaging, rendering it a powerful and underexplored element of major browsers' attack surface.
Guided by our findings, we develop a novel cross-boundary attack wherein a user-level native app (running without any special privileges or permissions) can exploit NativeMessaging to intercept the communication between native apps and browser extensions or deploy confused deputy attacks against them [27]. Subsequently, we present a series of use cases with popular and security-critical apps that concretely demonstrate the severe impact of this attack vector. Among others, our attacks allow adversaries to stealthily (i) impersonate users in government services (including citizen and judicial portals) across the EU, Latin America, and India, and sign legally-binding documents, (ii) extract full password vaults from password managers, (iii) access and interfere with video-conferencing sessions, and (iv) obtain authentication tokens, and (v) misuse screen capture and keystroke injection permissions. While we focus our analysis on Google Chrome, we have confirmed that Firefox is also susceptible to attacks.
Overall, our findings expose risks arising from the increasingly tight integration between browsers and native software ecosystems, with particularly significant implications on macOS, where extensive app-isolation and data privacy mechanisms provide strong security boundaries between apps. Our attacks nevertheless cross these boundaries, demonstrating that Native Messaging can undermine protections that otherwise isolate apps and their data. This underscores the need for stronger isolation and authentication mechanisms for extension-native communication channels. To fully prevent our attacks, we detail a series of mitigations targeting all entities involved in the Native Messaging workflow, namely, the OS, browser, and native app.
In summary, our research contributions are:
- We conduct an in-depth empirical analysis of the NativeMessaging API, and uncover fundamental design flaws that expose users to significant risks.
- We present two variants of our Host-to-Browser Cross-Boundary attack: bidirectional interception, a full man-in-the-middle attack between the extension and native host, and unidirectional interception, a confused-deputy attack against either the extension or the native host.
- We demonstrate the severe implications of our attack vector in macOS, through concrete attack instantiations against security-critical and highly-sensitive extensions used by hundreds of millions of users.
- We detail the necessary changes required for fortifying native messaging against cross-boundary attacks. We have also disclosed our findings to the affected vendors, and have released code demonstrating our attack techniques [28] to facilitate additional research in the space.
present an empirical analysis of the native messaging workflow, and highlight the flaws that we have uncovered.
Browser-to-OS boundary. The necessity for native messaging functionality arises from a fundamental browser design philosophy: context isolation. Modern browsers need to load and execute untrusted remote content, while maintaining robust security guarantees. This is achieved through sandboxed execution environments which isolate webpages, web extensions and the local file system from each other. Most browsers also implement fine-grained security privileges (e.g., background process management, localhost connectivity, and local file access), all of which are strictly controlled and enforced by the browser's security model. Chrome goes a step further and also implements several protections to fortify itself from other desktop apps. In 2024, Chrome introduced App Bound Encryption for Windows, to prevent processes running with the logged-in user privilege from reading sensitive user-data like cookies and passwords [29]. On macOS, Chrome uses Keychain, Apple's fine-grained credential storage system, which enables developers to share sensitive user-data with authorized applications via codesigning checks [30]. In 2025, Chrome also disabled default user profile debugging via the -remote-debugging-port to prevent infotealers [31], [32] from stealing user data via the Chrome Devtools Protocol (CDP). Contemporary desktop operating systems similarly have strengthened their security model, and implement access control mechanisms that provide isolation between apps, and prevent cross-contamination and unauthorized data access. For example, macOS's App Sandbox provides an isolated filesystem along with fine-grained permission control over sensitive data locations and the network stack. These isolation mechanisms are useful when user workflows remain confined within individual apps or webpages, but are a significant hindrance for cross-boundary workflows.
Native messaging motivation. Numerous real-world workflows necessitate interaction between browsers and local apps. Password managers constitute a primary example; these apps must store credentials securely on the local machine, often within encrypted vaults, while simultaneously entering them into web forms across disparate websites for usability reasons. There exists a functional gap between web-facing extensions, which handle page parsing and form population, and desktop apps, which handle secure credential storage and retrieval. This gap also exists in Clipboard managers, which require programmatic access to clipboard data from webpages, security tools scanning for malicious web content, and productivity web apps requiring local file systems, email clients, and hardware-key-based web authentication mechanisms. The NativeMessaging API creates a communication bridge between browser extensions and native apps. The protocol was introduced by Chromium in 2013 [33] and has since been adopted by other major browsers including Firefox and Safari. At its core, this API allows a browser extension to communicate with a native app (also referred to as the native messaging host) as a separate process, and exchange structured messages

Figure 1: Overview of the native messaging protocol between the extension and native host, via the browser.
over standard input (stdin) and standard output (stdout) pipes.
Native messaging protocol design. Figure 1 illustrates the end-to-end native messaging workflow.
Manifest File. The manifest file is the central configuration that the browser reads to determine which native host app to launch. The location of the manifest file varies between operating systems and installation privileges. On macOS, user-level installations store the manifest in the NativeMessagingHosts folder within the browser's profile directory. On Windows, manifest paths are written to the registry. The manifest is a JSON file (named in reverse DNS format) containing five fields, two of which are particularly significant. The path field specifies the location of the native host executable. Most applications we tested employed a dedicated helper binary instead of the main executable (see Listing 1 in Appendix A).
The allowed_origins field contains an allowlist of extension IDs, which the browser checks before initiating the connection. The extension ID is derived from the public key in the extension's manifest and is uniquely tied to the Chrome developer's identity. Impersonating another developer's public key is not possible on the Chrome Extension Store. The extension also needs to declare the "nativeMessaging" permission in its manifest.
① The Native App starts by writing the manifest file to the user's NativeMessagingHosts folder. To initiate the connection, the extension needs to call connectNative("com.1password.1password").
② → ③ → ④ The browser reads the manifest file and validates the extension's origin (chrome-extensionID) against the allowed_origins list, and launches the native host described in the path parameter as a child process with the extension's chrome origin as the first command-line argument. Optionally, the native host can verify this origin and conduct checks on the parent process.
⑤ → ⑥ Upon a successful connection, the browser establishes a stateless connection between the extension and NativeMessaging. The extension sends and receives JSON using the chrome.runtime.sendNativeMessage(). The NativeMessaging receives the message from the browser, as each UTF-8 encoded JSON object is preceded by a 32-bit length field in native byte order [34].
2.1. Threat Model
Our research focuses on the attack surface introduced by web browsers' native messaging functionality. While prior work has focused on how malicious pages (or other malicious extensions) can target extensions' messaging capabilities [24], [35], [15], [36] we present a novel threat model which focuses on how a malicious native app can misuse the NativeMessaging capabilities to target extensions and other native apps installed on the user's machine.
We assume that the attacker has basic user-level permissions, i.e., a malicious app. How the user actually installed the malicious app (e.g., through social engineering, visiting a malicious app store, etc.) is outside the scope of our work. We also assume the malicious app cannot read another process's memory, cannot perform system-level network monitoring or full TLS interception, and cannot capture keystrokes or screen content. This is a realistic assumption for macOS, as these capabilities would require either system-level privileges or explicit user consent prompts via TCC (Transparency, Consent, and Control). In contrast, user-level apps in Windows have considerably more capabilities, including access to other apps' files.
Our ultimate goal is to demonstrate attacks that elevate a malicious app's capabilities. For example, if the malicious app is able to read the file system and obtain the user's private key for digitally signing documents, then misusing native messaging to achieve the same result does not have any additional impact. However, if the user uses a hardware key that stores private keys, being able to man-in-the-middle native messaging communication to stealthily replace the document being signed, then the attack significantly enhances the malicious app's capabilities and demonstrates the risk posed by the browser's native messaging functionality. As such, macOS is the main focus of our analysis due to its robust built-in app isolation and integrity mechanisms. Nonetheless, we also include an analysis of Windows apps for completeness; there, the lack of strong security guarantees renders our native-messaging attacks mostly an additional attack vector for local attackers. We further discuss our threat model in §7 and Appendix D.
3. Empirical Analysis of NativeMessaging
We conducted an in-depth empirical analysis of browsers' Native Messaging capabilities, by analyzing documentation, building test extensions and native apps, and through preliminary experiments with popular extensions. All of our experiments were conducted with Chrome v151 on macOS 26.3 and Windows 11 Education Build 10.0.26200. Firefox experiments were conducted separately with Firefox v154 on macOS 26.3. Our analysis focused on analyzing each step of the protocol, exploring implementation details across different operating systems, and identifying the presence of built-in or ad-hoc endpoint identity verification and communication encryption mechanisms, as well as identifying message integrity and freshness checks. Next we present the flaws that we have uncovered, which guided the design of our host-to-browser cross-boundary attacks (§4).
Manifest Search Order. Chromium-based browsers resolve the native host manifest by searching the user-level directory before falling back to the system-level directory [37], [38]. This lookup ordering is controlled by the allow_user_level_hosts flag, which defaults to true [39]. Consequently, even when an app installs its manifest in the system-level directory, an unprivileged attacker can shadow it by depositing a malicious manifest at the user-level directory under the same name. The browser loads the user-level manifest first, never reaching the system-level manifest, rendering the privileged installation requirement an ineffective defense. Firefox also searches the user-level manifest location before the system-level location across all supported platforms [40].
Manifest file integrity. Manifests in user-level directories are writable by any process running with user privileges. On Windows, registry keys under HKCU require no elevation; on macOS, the user-level directory is writable without root. An attacker can, therefore, overwrite an existing manifest, or create a poisoned manifest (in the user-level directory) to change the path field to an attacker-controlled binary. When the extension initiates a connection, the browser launches the attacker binary without notifying the extension or the user. The extension assumes it is communicating with the legitimate host, as the poisoned manifest retains the original name and allowed_origins fields.
Lack of Client Validation. The Native messaging protocol lacks built-in client authentication. The onus falls on app developers to implement appropriate checks (e.g., the parent process' PID and source path). macOS provides Launch Constraints, a kernel-level system mechanism, which allows apps to control parent processes' identity, launch location (e.g., /apps vs /tmp) and launch conditions (e.g., system daemon or user launched). Most apps in our in-depth analysis (see §6) do not verify that the browser is the parent process. Nonetheless, this check is not sufficient; an attacker can bypass it by launching the native host through a headless valid Chrome binary (see §4).
Extension ID Spoofing. While the browser can prevent a malicious extension from initiating a native messaging connection via the allowed_origins check, a malicious extension can spoof the legitimate extension ID by spoofing the target extension's public key. This public key can be trivially obtained by the attacker beforehand by examining the manifest file of the target extension. The attacker can write a malicious extension containing the spoofed public key in the extension manifest. Importantly, the attacker does not need to get the user to install the malicious extension, nor does the attacker need to publish it to the Chrome Store. Instead, the attacker can create a malicious Chrome profile containing the spoofed extension and launch it via the legitimate Chrome binary using command line flags -headless -user-data-dir=profile. This bypasses both the Chrome and extension ID checks.
Message verification. Since the native messaging protocol is stateless, messages exchanged are not matched to each other. There is also no message integrity verification built into the protocol, which allows a MitM attacker to tamper with the message flow.
4. Cross-Boundary Host-to-Browser Attacks
We develop two attack variants against native messaging. The choice between them depends on the target's protocol data "predictability". Bidirectional interception is essentially a man-in-the-middle attack (Figure 2, detailed in this section), and is required when the extension transmits session-specific values (e.g., account UUIDs, authentication tokens) that the attacker must observe to maintain a coherent interception state. Unidirectional interception (Figure 4, detailed in Appendix B) is applicable when the protocol uses fixed endpoints with predictable payloads, wherein the attacker mimics one of the endpoints, conducting a unidirectional attack.
Manifest File. First, we focus on the manifest.
1 App registration. The target app, during its installation process, creates an entry in the manifest file (registry key on Windows, manifest file on macOS, see Appendix A) that registers itself as a native messaging host. This entry contains the app's name, the path to its native host binary, and the allowed_origins listing the extension IDs that are permitted to communicate with it.
2 Manifest poisoning. The attacker modifies the manifest file (or registry key in Windows) to poison the path field, redirecting it from the legitimate native host binary to an attacker-controlled app. The poisoned manifest retains the original fields and file name, ensuring it passes the browser's validation checks. For apps that install their manifest in the user-level directory, the attacker directly overwrites it, which does not require elevated privileges. For apps that install it in the system-level directory, the attacker instead deposits a shadow manifest under the same host name in the user-level directory. As described in §2, the browser resolves the user-level directory first, so the shadow manifest takes effect without the attacker needing elevated privileges.
We note that the attacker needs to ensure that the manifest file is successfully poisoned when the extension initiates the connection. Some apps, like 1Password and
Bitwarden, overwrite the manifest file on each app launch. So an attacker who previously poisoned the file would not be able to successfully intercept the connection. However, this protection can be trivially bypassed by continuously monitoring the target manifest for changes and re-poisoning it after each overwrite. None of the apps we tested implemented any form of continuous monitoring of the manifest file, meaning there was no race condition or TOCTOU issue. Moreover, we are able to intercept connections even when the target app is already running. Furthermore, all the apps we have tested have dedicated helper binaries functioning as the Native host; as such, the browser-initiated native app launch has no discernible visual effect, such as a GUI app relaunch or a user prompt, that could alert cautious users.
Extension. The bidirectional attack assumes that the user has installed the associated web extension in their browser profile. Unlike the Native Host, the extension does not need to register a manifest. To detect the Native Host's presence, the extension simply initiates the native messaging connection, by calling connectNative("com.test.app"). This can be (i) user-initiated, when the user explicitly triggers the extension to connect to the native host, or (ii) automatic, when the extension automatically initiates contact upon startup or in response to certain events. This Web API call will fail if there is no associated manifest registered by the Native Host. This will also fail if the manifest does not allowlist the extension's ID in allowed_origins. Our current attack, which poisons the manifest files, does not modify the allowed origins field of the poisoned manifest. This allows the legitimate extension to successfully initiate the native connection. We note that a lack of the extension registration procedure is "beneficial" for the attacker, as they do not need to modify the victim's default browser profile or any associated browser data. To prepare for the attack, they only need to overwrite the manifest.
3 → 4 : Upon receiving the connectNative() call, Chrome reads the manifest file (or registry key) to determine which native host to launch. Since the manifest has been poisoned, Chrome reads the attacker-controlled path field. Chrome spawns the attacker's native messaging host (NMH) app as a separate child process, establishing stdin/stdout pipes for communication. The attacker's NMH now sits between the browser and the legitimate native host.
Browser. Once the attacker's native host is launched, the attacker must communicate with the original native target. There are two distinct strategies, depending on whether the target app validates its parent process: the attacker can easily determine ahead of time whether each target app validates its parent browser process. Next we describe the scenario where the target app checks the validity of the parent browser process; if it does not, the next phase is 9 → 10 → 11.
5 → 6 The attacker launches a headless Chrome instance configured with a custom browser profile with a preinstalled malicious spoofed extension (whose Chrome ID matches the target extension). This is required since browsers pass the extension ID as the first command-line argument to the native host, which can then verify that the

Figure 2: The attacker sits in between the Native Host and the Target Extension and can read/modify/drop any message.
correct extension initiated the connection. This spoofed extension calls the legitimate native host via its native messaging identifier (e.g., "com.test.app"). To ensure that this call is not poisoned, the attacker employs a dedicated attacker profile. Manifest files are stored per Chrome profile; the attacker profile points to the legitimate native host location, which can also be predetermined by the attacker during the reconnaissance phase in a test environment. The malicious extension calls the legitimate target host via connect-Native("com.test.app"). Since this is the attacker controlled browser profile, it has a separate NativeMessagingHosts folder. The manifest file used is a legitimate/non-poisoned version already prepared by the attacker.
7 → 8 The attacker's native host forwards the intercepted message to the spoofed extension running inside the headless Chrome instance. It also receives the message from the spoofed extension and forwards it to the target extension, completing the interception chain. If the target app does not validate its parent process, the attacker can simply bypass the browser checks we just described.
9 → 10 → 11 The attacker directly launches the target native host, passing a spoofed extension ID as the first command-line argument to mimic a legitimate browser launch. The target native host communicates directly with the attacker's binary, believing it is interfacing with the legitimate browser extension. The attacker binary receives the message from the target native host and forwards it to the target extension, completing the interception flow.
4.1. Attack Implementation Details
Bidirectional Attacks Our attack employs a long-running background process that continuously monitors the target manifest file for modifications, re-poisoning it immediately upon any overwrite. This process intercepts messages from the target native host (launched by the victim's browser and extension) and routes them through a dedicated attacker infrastructure. Specifically, the interception chain proceeds as follows: the target extension communicates with the attacker's native host (launched by the victim browser via the poisoned manifest); the attacker's native host forwards messages to the background process; the background process relays them to a malicious extension running within an attacker-controlled browser profile; this malicious extension, configured with a legitimate manifest pointing to the target native host, completes the round-trip by communicating with the actual target native host. This architecture ensures transparent MITM interception without disrupting the app's observable behavior.
Unidirectional Attacks We briefly outline two unidirectional attacks, wherein the malicious app imitates one of the two native messaging endpoints to either obtain sensitive information or trick the other endpoint into performing privileged actions. We provide more details in Appendix B.
Extension imitation. The attacker mimics the extension and communicates directly with the target native host. This requires only an attacker-controlled browser profile and a malicious extension installed within that profile. The malicious extension is configured with a valid manifest pointing to the target native host, enabling it to launch and exchange messages with the host exactly as a legitimate extension would. The native host processes these messages without distinguishing them from authentic extension traffic.
Host imitation. The attacker mimics the native host and receives the messages sent by the legitimate extension. The spoofed host receives the extension's messages, extracts the desired data, and can discard, log, or forward the messages to the legitimate host to preserve observable behavior. This attack requires no browser profile manipulation.
5. NativeMessaging in the Wild
Here we provide a snapshot of the current proliferation of extensions that support native messaging in the wild.

Figure 3: Extensions that support native messaging.
Dataset. We constructed our extension corpus from Palant's Chrome Extension Manifests Dataset [41], a publicly maintained archive that periodically scrapes the Chrome Web Store and stores raw manifest.json files. Using the August 14, 2026 snapshot (the most recently available at the time of our study), we parsed manifests for 250,735 extensions and filtered for those declaring nativeMessaging in their permissions field, yielding 1,972 extensions with at least 1 download.
Cumulatively, these extensions have approximately 1.07 billion Chrome installations. We find that half of the extensions have a total of approximately 1K downloads, indicating low adoption among users. However, the top 5% of the extensions account for hundreds of millions of downloads cumulatively, demonstrating the widespread adoption of extensions that request the necessary permission for access to the browser API that supports native messaging functionality. While one unidirectional variant of our attack does not even require the presence of the extension, our measurement shows that native messaging extensions are widely present across user machines, further highlighting the importance of an in-depth security analysis of this browser API. Nonetheless, in practice, even more users may be vulnerable to our attacks, as they may have installed desktop apps with native messaging support without installing the corresponding browser extension.
6. Attack Use Cases
Here, we present a series of concrete attack demonstrations that highlight the severe security ramifications of our host-to-browser cross-boundary attacks. For a subset of our collected extensions, we describe the attack surface, detail the exploitation chain, and characterize what an attacker can achieve. Table 1 summarizes our findings, and Table 2 (Appendix C) provides app versions.
Target selection. From our main collection of extensions (§5), we selected 17 for in-depth testing, chosen to balance install-count coverage, category diversity, and sensitivity of the data they process. We prioritized popular extensions with large user bases because they are more likely to have security protections in place (as is typically the case with popular websites [42], [43]). We further focus on extensions
| Extension | Installs | Platform | Attack Variant | Attacker Capabilities |
|---|---|---|---|---|
| Adobe Acrobat | 329M | ⚡ | ↔ | Cloud documents exfiltration; PDF output silently substituted with attacker-controlled content |
| Launcher for Google Drive | 91M | ⚡ | →/|↔ | Hijack file launch by victim; Steal file by routing to attacker-controlled app. |
| Chrome Remote Desktop | 38M | ⚡ | →/|↔ | Access victim screen and interact via keyboard and mouse. Can also bypass TCC on macOS. |
| Cisco Webex | 22M | ⚡ | →/|↔ | Meeting hijacked to attacker session; victim's mic and camera exposed |
| Claude in Chrome | 15M | ⚡ | →/|↔ | Arbitrary JS execution and browser actions in victim's session |
| Foxit PDF Creator | 8M | ⚡ | →/|↔ | Attacker-chosen URL converted to PDF for victim |
| WPS PDF | 6M | ⚡ | →/|↔ | Persistent WPS cloud session hijacked; victim's documents replaced |
| Bitwarden | 7M | ⚡ | ↔ | Master key extracted in plaintext via MitM key exchange |
| iCloud Passwords | 6M | ⚡ | ✗ | Not exploitable |
| 1Password | 7M | ⚡ | →/|↔ | Vault secret key, decryption keys and victim's account details silently exfiltrated |
| Web PKI | 4M | ⚡ | →/|↔ | Victim impersonation, legally-binding signing of attacker document |
| Web Signer | 2M | ⚡ | →/|↔ | Victim impersonation, legally-binding signing of attacker document |
| Web eID | 1M | ⚡ | →/|↔ | Impersonation on any Web eID-protected service without key extraction |
| KeePassXC-Browser | 0.8M | ⚡ | →/|↔ | Credentials extracted in plaintext via MitM key exchange |
| RoboForm | 0.6M | ⚡ | →/|↔ | Full vault exfiltrated: credentials, credit cards, passport, and PII |
| UiPath | 0.05M | ⚡ | ↔ | Arbitrary JS injection; unintended and attacker controlled browser automation |
| Automation 360 | 0.1M | ⚡ | ↔ | Unintended and attacker controlled browser automation |
TABLE 1: Exploitation results across all evaluated extensions. Platform: operating system(s) on which the extension was tested. Attack Variant: → unidirectional (attacker controls one side of the channel); ↔ bidirectional (full MitM); ✗ application was not exploitable. †On macOS only possible attack is host imitation (no native host installed).
that handle sensitive user data and mediate security-critical workflows, since their compromise poses a severe threat. Our selected targets also span diverse categories to demonstrate that the security risks introduced by native messaging are not isolated to a single domain, but reflect a broader weakness in browser-host communication mechanisms. The vulnerable extensions account for ~532 million installations across the Chrome ecosystem (Table 1). All the target apps were tested on both macOS and Windows, except for Bitwarden as we did not have a Windows device with a biometric sensor. Finally, while other browsers also support extensions and NativeMessaging, we focus our analysis on Chrome as it is the most prevalent browser. We have, however, verified that Firefox is also vulnerable by replicating our attacks on a subset of the targeted applications: Web eID, Web PKI, 1Password, KeePassXC, Bitwarden, and RoboForm.
Web eID. The European Union's eID ecosystem underpins a wide range of security-critical digital services, including citizen authentication, legally binding electronic signatures, and access to government resources, making it a foundational component of Europe's emerging digital infrastructure. Web eID is the open-source framework developed to enable ID card-based authentication and digital signing on the web, developed by Estonia's Information System Authority (RIA) [44], and is currently supported by numerous EU member countries [45] (with support already underway in many others).
The Web eID extension uses native messaging to access hardware interfaces such as PC/SC via its native host. The app exchanges APDU commands with the ID card's chip which stores the authentication and signing keys [46]. During authentication, the extension forwards a server-issued challenge and origin information to the native host, which instructs the smart card to produce a signature over the challenge via the authenticate endpoint. Similarly, when signing a document, the extension forwards a server-provided document hash through the sign command, and the native host requests the card to sign the supplied digest [47]. The attacker is able to modify these calls in transit, resulting in the user unwittingly signing an attacker's challenge nonce or document.
We tested our bidirectional attack variant using the official Web eID app [48] and a Windows TPM-backed Virtual Smart Card (VSC) with a self-signed root certificate. For the relying party, we deployed the official web-eid-authtoken-validation-php reference implementation [49], which explicitly supports replacing the default Estonian CA bundle with any certificate set. To initiate the attack, the attacker first visits the Web eID-protected service on a separate machine; without the need for a smart card, a phantom native host installed via manifest poisoning intercepts the authenticate command and captures the server-issued nonce , which is staged on the victim's machine. When the victim subsequently authenticates on any Web eID service, the MITM binary intercepts the authenticate command carrying the victim's nonce . In the simplest variant, the MITM replaces with : the victim enters their PIN once, the attacker obtains a token signed over , but the victim's own authentication fails. In the stealthier variant, the MITM sequentially spawns a second web-eid-app process and drives it to sign under the attacker's origin (PIN entry 1), then forwards to the legitimate host (PIN entry 2), completing the victim's authentication normally. The resulting token — bearing the victim's certificate and a valid signature over — is returned to the attacker, who submits it to their own session and is authenticated as the victim, without the private key ever leaving the smart card's TPM. We note that the two prompts are unlikely to alert users; a user study on FIDO2 security found that participants were not alarmed by attacks that required two consecutive authentication prompts each requiring a physical tap, attributing them to improper key taps or a glitch in the protocol [50].
We note that a unidirectional Extension Imitation attack variant is also possible. However, it is less stealthy as the native host presents a PIN prompt to the user. As such, in practice, this can alert more cautious users if no preceding user action has been performed to account for the prompt.
Web Signer and Web PKI. Web Signer, developed by Softplan, is the digital signing component used by Brazil's e-SAJ electronic judicial filing portal for signing documents. Its users include over 320,000 registered lawyers for whom Web Signer installation is a mandatory prerequisite for electronic filing [51]. Brazilian legal practice distinguishes two ICP-Brasil certificate classes: A1 certificates are software-stored, while A3 certificates reside on hardware tokens such as smart cards or USB cryptographic devices; for legally-binding judicial filings, A3 tokens are mandated. Web PKI is identical to Web Signer platform: the underlying native host binary is identical, the native messaging protocol is the same, and the extension manifest accepts both the Web Signer and Web PKI extension identifiers. And, similarly, the A3 token's hardware boundary prevents key extraction, but native messaging controls what is signed.
The NativeMessaging interface exposes three security-critical commands. listCertificates returns all certificates installed on the device, each identified by a thumbprint¹ alongside full metadata. authorizeSignatures carries the thumbprint of the certificate the user selects and is the only point of user interaction in the signing flow: the native host presents a consent dialog, and upon approval returns an authorization permitting subsequent signing operations with that certificate. signHash carries a server-computed document hash and the chosen certificate thumbprint; the native host silently signs the hash with the certificate's private key and returns the raw signature bytes – no further user interaction occurs. To assemble a complete signed document, the server requires two values submitted by the browser: the raw signature bytes from signHash and certThumb, the signer's base64-encoded DER certificate,² both visible in the browser-to-server HTTP traffic. The native host additionally supports a readCertificate command, which accepts a thumbprint and returns the full base64-encoded DER certificate; this command is not part of Chrome's normal signing flow but is fully supported by the host. The raw signature bytes and certThumb allow the attacker to reconstruct the signed document.
For our evaluation, we used the official Web PKI demonstration portal [52] as the relying party. To replicate the signing process without a valid ICP-Brasil certificate, we generated a self-signed certificate. When the victim initiates document signing, the MITM app intercepts the signHash command and performs a dual-sign transparently within the
single authorization the user already granted. It first forwards the legitimate document hash to the native host, captures the authentic signature, and returns it to Chrome, so the victim's document is signed normally. It then immediately issues a second signHash carrying the attacker's target hash , and captures the resulting spoofed signature. Separately, when the listCertificates response passes through the pipe, the MITM silently injects a readCertificate command, invisible to Chrome and extracts the certificate's certThumb. The attacker then assembles a complete, cryptographically-valid signed document using the signed and certThumb from the server.
IPassword. IPassword is a highly popular password manager which employs native messaging for user convenience. It stores user secrets and passwords in a vault which is shared across all app instances via IPassword's servers. Once the desktop app is unlocked by the user, it uses native messaging to automatically unlock the browser extension. This model introduces a critical flaw.
The API design allows an extension to continuously query the Native Host for the vault's state, via the Nm-RequestAccounts API call, which does not require any unique key or secret to initiate. If the vault is unlocked, the API call returns the user's full account details, including email address, the fixed secret key (recovery key), and the current decryption keys [53]. These secrets allow an attacker to replicate the user's entire vault on their own machine. It is also important to note that vault-unlocking is part of the normal user flow, and the user needs to unlock it to obtain any passwords. Once the vault is unlocked, this API returns all the aforementioned information to the attacker without any user prompt, or visual indication.
Since IPassword enables native message functionality by default, this attack succeeds even if the user has not installed the browser extension. When native messaging is enabled, any app running with standard user privileges can invisibly query the user's secret key and current decryption keys via this endpoint. IPassword emphasizes its security design, storing the secret key in macOS's Secure Enclave and Windows' protected app space to mitigate memory scanning [54]. Its security white paper explicitly excludes memory scanning and trojanized apps from its threat model, claiming resistance only against "less powerful malware" operating under user-level privileges. However all these protections are rendered void due to the exposed unauthenticated native messaging endpoint.
Roboform. The desktop app enables native messaging by default and encourages users to install the browser extension during installation. The API exposed over native messaging allows the extension to query files within the app's data directory via the rf-api-request endpoint. This wrapper API exposes individual functions such as getfile, list, and dedicated functions for extracting the user's login key and password. These allow the extension to enumerate the vault contents and read sensitive information including credit card numbers and passport information. The extension can also directly retrieve the user's login credentials in plaintext using these endpoints. However, similar to
¹A thumbprint is the base64 encoding of the SHA-256 hash of the certificate's DER-encoded bytes. ²DER (Distinguished Encoding Rules) is the standard binary serialization format for X.509 certificates; certThumb carries its base64 encoding.
IPassword, the app must be unlocked by the user before any data can be accessed. Once the user unlocks RoboForm to use it, the native messaging endpoint immediately becomes available, allowing any unprivileged app to query and extract the vault contents without requiring any user prompt, notification, or a separate authentication step.
Bitwarden, KeePassXC-Browser. Unlike the previous examples, both of these password managers disable native messaging communication by default. Bitwarden restricts native messaging to biometric authentication and requires users to enable it in both application and extension. KeePassXC-browser similarly requires explicit opt-in. Both apps also use asymmetric encryption to secure their native messaging channel. Bitwarden uses RSA-2048 OAEP key exchange to establish an AES-256-CBC channel with HMAC-SHA256 integrity; KeePassXC-Browser uses TweetNaCl's crypto_box construction and nonce-based replay prevention [55]. Both mechanisms are cryptographically sound when implemented correctly. However, since the attacker sits between the extension and the app, they can perform independent key exchanges with both parties, establishing two separate encrypted sessions and decrypt and re-encrypt all traffic transparently.
The Bitwarden API exposes a simple, getBiometricStatusForUser, and unlockWithBiometricsForUser endpoint which allows the extension to fetch the user key from the native host. However, these API calls require the appID and userID parameters, which can only be obtained via a bidirectional attack. Additionally, the attacker still requires access to the encrypted vault contents to make use of the intercepted key. For KeePassXC-Browser, the test-associate check does not obstruct the MITM: the attacker relays the stored identification key inside its own re-encrypted session, providing no proof of private key possession — a weakness KeePassXC's own protocol specification concedes [55], and one independently identified in a public security analysis of the protocol [56]. The get-logins response, carrying credentials in plaintext within the decrypted session can be intercepted transparently. KeePassXC is susceptible to extension imitation attacks, however, a fresh associate request produces a visible dialog in KeePassXC with no corresponding browser action to explain it, and each subsequent get-logins call independently triggers the per-URL access prompt. The Bidirectional attack is stealthy within the normal app flow and leaves no such indicator.
iCloud Passwords. This is the only password manager we evaluated which was not vulnerable to the attack despite using the native messaging protocol. The app's native messaging manifest is symlinked to a location protected by System Integrity Protection (SIP), meaning that even an attacker with root privileges cannot modify or replace the manifest file. Even placing a malicious manifest in the user's directory does not override the system manifest. As a result, iCloud Passwords cannot be attacked.
PDF-signing tools. We also test several PDF tools under the bidirectional attack model. The Acrobat Reader Chrome extension uses native messaging to open cloud-stored documents in the desktop app, and to convert web pages to PDF. Document-opening requests transmit raw PDF contents to the native host, allowing an attacker controlling the communication channel to obtain copies of documents retrieved from the user's Adobe cloud account without interacting with Adobe's infrastructure. During webpage conversion, the extension forwards the page DOM and embedded resources to the host, which generates the resulting PDF. By modifying these inputs, an attacker can silently inject arbitrary content into the generated document without any user-visible indication. WPS PDF and Foxit PDF Creator also rely on native messaging to transfer document and conversion requests from the browser to a desktop app. In WPS PDF, document-opening requests contain the raw document contents, allowing an attacker controlling the communication channel to exfiltrate or modify files before they are opened by the user. The extension additionally exposes a single-use WPS SSO token during its automatic login workflow, enabling the attacker to obtain a fully authenticated session to the victim's cloud account without user interaction. Foxit PDF Creator similarly forwards conversion requests to its native host when generating PDFs from browser tabs. By modifying the transmitted URL, an attacker can cause Foxit to create a PDF of attacker-controlled content while reporting successful completion to the user. Neither app registers a manifest in macOS, so data exfiltration is achievable via Host Imitation: a shadow manifest redirects the extension's connection to an attacker binary, bypassing the need to intercept an existing channel.
Launcher for Google Drive. This enables users to open cloud-stored files from Google Drive with their preferred local desktop app. The native host exposes two primary endpoints: apps_for_file, which queries the host for all apps capable of handling a given file type (e.g., Adobe Acrobat for PDFs), and open_file, which launches the selected app with the target document. File contents are never transmitted over the native messaging channel; instead, Google-assigned file_id identifiers are exchanged which are resolved independently against Google's servers to retrieve the underlying content. An attacker can use the Bidirectional attack to intercept and modify the open_file request and substitute the legitimate app identifier with a malicious one. A stealthier attack variant involves the attacker injecting an additional poisoned open_file request alongside the legitimate one to deter suspicion.
Chrome Remote Desktop. This tool allows users to connect to remote clients via their Google Account. The native host operates with elevated privileges, including screen capture, input forwarding using XMPP with a custom (<UUID>@chromoting.gserviceaccount.com) account. While the native host exposes multiple API endpoints, startDaemon allows the extension to associate the native host daemon with a new account. This endpoint is typically used when a user registers the machine and requires an OAuth token, but can be initiated by the extension at any time. An attacker using a throwaway Google account can exploit this endpoint by initiating the device registration process with an attacker-controlled extension which talks directly to the target native host. While this does require user consent via a system dialog box, the dialog is generated by the legitimate Chrome remote desktop app and simply states that "Chrome Remote Desktop Host wants to make changes to your PC", which is the same message shown when the app is installing an update. This attack achieves full device takeover allowing the attacker to also compromise other connected clients and bypass TCC prompts on macOS.
Claude in Chrome. Claude Desktop provides a companion extension to interact with the browser on the user's behalf [57]. The extension uses the Devtools Protocol to instrument the browser and provides a range of automation capabilities, including navigation, click actions, and form filling. The native app can send requests to the extension over native messaging, and the extension executes the actions within the browser and returns the results. The API is structured around the tool_request and tool_response message types. The extension exposes a suite of tools, including navigate, tabs_context, file_upload, tabs_create, left_click, key, and scroll, among others. Furthermore, the extension emits system prompts via <system-reminder> tags, which include operational suggestions such as the use of batched tool invocations. Interestingly, the extension and the native app do not typically use native messaging. Instead, each component independently establishes a WebSocket connection (WSS) to the Anthropic server which bridges their communication. Nevertheless, the extension retains native messaging functionality, which presents an attack surface that could be exploited by malicious native apps.
Claude in Chrome is vulnerable to both Host imitation and Bidirectional Attacks. While Chrome does display a visible indicator- "Claude" is debugging- when Claude is active, this indicator is present regardless of attacker presence. An attacker can perform any of the aforementioned browser actions, including direct JavaScript execution on any tab being debugged by Claude in Chrome. Since the extension is designed to be used with logged-in user accounts, the capability allows the attacker to stealthily obtain tokens, cookies and other sensitive user data directly from the logged-in context. We note that other UI-based actions (e.g., click, navigate) might be less stealthy; however, when Claude is configured with the "act without asking" mode, the extension does not prompt the user for permission before executing sensitive operations, making such actions entirely seamless. Moreover, an attacker may inject content into the <system-reminder> prompt intended for the native host, to manipulate its behavior.
Cisco Webex. extension uses native messaging to open meeting links in the Webex desktop app. It is functionally similar to URL-deeplinking, without Chrome's user consent dialog box [58]. When the user navigates to a Webex link, the extension sends an unencrypted launch_meeting request to the native host, containing the meeting link and password. The API call also includes meeting and desktop app parameters. An attacker can use the bidirectional modification attack to manipulate meeting parameters forcing the victim to launch an attacker-controlled meeting. The attacker has control over participant metadata, display names, and other profile attributes, which can facilitate social engineering attacks often used in AI-powered deepfake scams [59]. The attacker can also modify critical app configuration settings, including thirdPartyLogin options, telemetry collection URLs, and app update URL paths. It is also possible to conduct a unidirectional Extension Imitation attack on the Webex native host, but it is less stealthy since the app prompts the user for consent when launching a meeting.
7. Discussion
Here we discuss certain aspects of our attacks and experimental findings, and the underlying issues, which inform our mitigation strategies discussed in the following section.
Trust boundary crossing. By design, the native messaging protocol crosses trust boundaries. Browser extensions operate with elevated privileges granted by users, including the ability to read and modify web page content, intercept requests and responses, and interact with web APIs. Native apps, meanwhile, operate with access to system resources. When an extension communicates with a native host, it bridges the browser's isolated execution environment with that of native apps. Trust boundaries operate on the assumption that the data and content within each boundary are trustworthy; however, trust is not inherently transferable across boundaries. Web extensions receive explicit user-approved access to web content at installation time, while native host apps receive explicit or implicit access to system resources. Incorrect assumptions about trust transferability can lead to the omission of necessary security controls: native apps may read web content they were never intended to access, while extensions may read system resources outside the browser sandbox, each operating under the false assumption that the other's trust domain confers equivalent authorization.
Client validation in message passing. Cross-boundary communication mechanisms typically rely on a root of trust to authenticate clients and authorize access across security boundaries. For example, macOS XPC binds client identity to developer certificates and audit tokens [60], Android Binder uses kernel-verified UUIDs, PIDs, and permissions, and Windows named pipes enforce kernel-controlled ACLs. RPC and distributed systems similarly use client certificates, authentication tokens, or shared secrets. Without client validation, privileged services can become confused deputies, allowing less-privileged processes to misuse their authority [60], [61], [62]. Prior work has demonstrated such attacks against XPC and Binder services, as well as broader cases where unprivileged apps gain access to resources intended for privileged contexts [60], [63], [64].
Native Messaging breaks from this established security model. It provides no comparable client validation: native hosts have no reliable means to authenticate the extension initiating a connection. Consequently, any process capable of establishing a Native Messaging connection can impersonate a legitimate extension and forge messages. This weakness is compounded by Chromium's default user-level manifest resolution, which checks user-level registrations before system-level ones [37], [38]. An unprivileged process can therefore register a shadow manifest that preempts a legitimate host. Together, these weaknesses allow an unprivileged app to impersonate an extension, intercept and modify its communication, and forge messages to security-sensitive native hosts.
Local Attacker Threat Model. We assume an unprivileged app with no elevated privileges or permissions. We emphasize that user-level code execution is not equivalent to unrestricted host compromise. This distinction is particularly important on modern macOS, where OS-enforced protections restrict such apps from accessing other apps' data, capturing keyboard or screen input, or freely interacting with other processes. These isolation guarantees substantially constrain the capabilities of an unprivileged app, but Native Messaging provides a mechanism for circumventing these boundaries: by communicating with trusted native apps through the browser, an attacker can indirectly access security-sensitive functionality that would otherwise remain inaccessible. This does not imply that macOS apps are impervious to local compromise, as app-specific vulnerabilities or other avenues may still expose protected data. The impact of native messaging is more limited on Windows, where user-level apps have substantially broader capabilities. The security implications, therefore, depend on the isolation guarantees provided by the underlying OS: on platforms with strong isolation, Native Messaging can bridge security boundaries that would otherwise constrain an unprivileged app, whereas on platforms with weaker isolation, it instead represents an alternative attack vector.
Native-Messaging Attack Advantages on macOS. Native Messaging can substantially amplify an unprivileged local attacker's capabilities by providing access to functionality otherwise constrained by the OS's app isolation and data-protection mechanisms. To concretely quantify these capabilities, we analyzed all target apps under a non-native-messaging local attacker model, examining what an attacker could achieve using only data and functionality directly exposed by the apps and their extensions. Our analysis shows that most security-critical attacks in our evaluation (i.e., against 1Password, Bitwarden, Roboform, Web PKI, Web Signer, Web eID) cannot be reproduced by a non-native-messaging local attacker. In these cases, Native Messaging is not merely an alternative attack path: it provides the capabilities necessary to cross OS-enforced app boundaries and access otherwise protected functionality and data.
In other cases, Native Messaging substantially amplifies attacker capabilities. In Cisco Webex, a local attacker can recover meeting details, but Native Messaging enables modifying and controlling meeting launches, facilitating the social-engineering attack from §6. Similarly, Native Messaging enables modification of Chrome Remote Desktop's configuration, turning otherwise passive access into our cross-registration attack from §6. For Launcher for Google Drive, a local attacker can recover Drive file IDs but cannot access the corresponding files; Native Messaging enables their stealthy exfiltration.
Access to user folders like Desktop and Documents on macOS is gated behind TCC, which prevents a local attacker from accessing them unless the user grants the malicious app that privilege. As such a local attacker would not be able to read and modify such documents without leveraging the native messaging techniques against such apps as WPS, and Adobe Acrobat. Interestingly, in the case of Adobe Acrobat we found that if the user logs into their Adobe account, an access token is exposed by the extension which allows a non-native-messaging local attacker to access the user's account. However, if the user is not logged in, the local attacker cannot attack Adobe Acrobat, whereas the native messaging attack can still achieve the attacks detailed in §6. Unlike Acrobat, the WPS PDF extension caches previously opened PDFs in local storage, which are accessible to the local attacker; however, native messaging exposes an SSO token enabling persistent cloud session hijacking.
Finally, while an insecurely stored OAuth token in Claude Desktop allows local attackers to access the user's account and conversation-history, Native Messaging enables arbitrary JavaScript injection into the user's Chrome Default Profile. Essentially, this enables attacker-controlled code execution in the context of websites the user is authenticated to, enabling actions that are otherwise unavailable to the local attacker. Moreover, UiPath exposes a refresh token which can be used by a local attacker to hijack the associated user account, leading to workflow compromise. However, native messaging allows the attacker to also inject JavaScript in the browser's context, significantly augmenting their capabilities. On the other hand, KeepassXC's extension and Foxit's native host leak secrets to local attackers that enable account compromise.
Overall, these results demonstrate that Native Messaging is a distinct capability-amplifying attack surface, not simply another path to vulnerabilities already exposed by apps. Its impact is particularly significant on secure operating systems such as macOS: in most consequential cases, OS protections prevent the attack entirely without Native Messaging, while in others Native Messaging transforms limited local access into active exploitation.
App Sandboxing. Both macOS and Windows support sandboxing for isolating apps from other apps and sensitive data, and minimizing the impact of installing a malicious app. We evaluated whether app sandboxing prevents our attacks, and found that an attacker operating within the macOS App Sandbox or Windows AppContainer is generally unable to exploit Native Messaging due to insufficient privileges; however, sandbox exceptions can allow the attacker to overcome this restriction.
More importantly, unlike mobile platforms, sandboxing is not mandatory for desktop apps: both macOS and Windows permit users to install non-sandboxed apps outside their official stores. This is particularly relevant for macOS, where many app developers actually avoid the official app
While our threat model assumes a non-privileged local attacker, we further discuss sandbox exceptions in Appendix E, for a more complete presentation of the sandboxing process and its use in real-world apps.
store (due to revenue loss, review delays, and incompatibility with sandboxing restrictions [65]). Moreover, only 20% of surveyed developers distribute exclusively through the Mac App Store [66], while 66% of users install apps from outside it [67]; 76% of these users rely on developer sites. Indeed, only four apps in our study are available through the Mac App Store, and the available 1Password version is severely outdated (v7.9.11, released 07/2023). On Windows, ten apps are available in the store, but seven use runFullTrust and three install Win32 executables, leaving none effectively sandboxed. Overall, attackers are not constrained to distributing malicious apps through official stores; as long as users routinely install desktop software directly from developer sites, attackers can distribute unsandboxed apps through the same established channel, making store-enforced sandboxing insufficient as a general defense.
8. Hardening Native Messaging
Preventing our host-to-browser cross-boundary attacks requires changes along three dimensions, which are complementary, each targeting a distinct attacker capability and each closes a gap others leave open. The first restricts which processes can register a native host manifest. The second restricts which processes can invoke the native host binary. The third removes trust from the channel entirely, and requires setting up encryption at the app layer.
Manifest poisoning. Since shadow manifest attacks require only user-level privileges, they can be neutralized by changing a single Chromium default: setting kNativeMessagingUserLevelHosts to false would restrict host resolution to system-level registrations, requiring administrator/root privileges for manifest manipulation [39]. As an upstream Chromium change, this would propagate to Chromium-based browsers, though vendors can independently adopt it. The main compatibility cost is that user-level native host installations would require elevated installers. Until an upstream change is made, administrators on managed on-premises devices can enforce the equivalent restriction via the NativeMessagingUserLevelHosts policy through Group Policy on Windows or MDM on macOS [68], [69]; on user machines, the user can switch to the administrator profile and apply the same restriction directly via the system registry or managed preferences. For existing user-level manifests, browsers can additionally monitor registration paths and block connections when their on-disk values change; extensions can similarly validate the resolved binary path against a value recorded at installation.
Process invocation. Restricting manifest writes does not prevent an attacker from invoking the legitimate native host from a non-browser parent. Patching this requires kernel-enforced validation of the caller's identity before the host begins execution. On macOS, Launch Constraints [70] provide this mechanism, enforced by AMFI at execution time. A constraint blob embedded in the binary's code signature describes the conditions the parent process must satisfy; if the expression evaluates to false, the exec call returns an error and no process is created. The blob is part of the
signed data, so modifying it also invalidates the signature. On Windows, no kernel-level equivalent exists. A native host can attempt an application-level check but it's bypassable.
Only iCloud Passwords embedded a parent constraint out of all the macOS native hosts we tested. It enumerates approximately thirty browsers by signing an identifier and team identifier; spawning the host from any unlisted parent is rejected by the kernel before a single instruction executes. No third-party native host in our dataset embeds equivalent constraints. These two measures together — restricted manifest resolution and kernel-enforced parent validation, prevent an unprivileged attacker from substituting a malicious binary and from invoking the legitimate binary from an unauthorized parent. Nonetheless, the headless-browser attack variant remains possible; a legitimate browser launched with an attacker-controlled profile satisfies any parent-identity constraint, because the browser binary is unmodified. A protocol-level mitigation narrows this gap: the browser could supply the native host with a cryptographic hash of the calling extension alongside the extension ID, allowing the host to reject connections from spoofed extensions that present the correct ID but not the expected code. This strategy is standard in IPC systems: the IPC layer attaches unmodifiable caller identity to each message, which the receiver then authenticates. macOS XPC services derive the caller's code-signing identity from the kernel-attached audit token [71], and Android Binder services combine the kernel-supplied caller UID with cryptographic package-signature verification [72]; Chromium's own security documentation identifies the latter as "the only reliable mechanism by which you can authenticate your peer" [73]. Native messaging lacks this property; we argue for the need to extend the same pattern to the browser-native boundary, with the browser playing the role the kernel plays for process-to-process IPC.
Encrypted communication. Since protocol-level changes require browser vendor adoption, apps can instead independently harden the channel. Both Bitwarden and KeePassXC-Browser attempt in-band encryption, and both fail for the same structural reason: key establishment runs over the channel the attacker already controls. The attacker performs independent exchanges with each endpoint, establishes two encrypted sessions, and relays decrypted traffic between them. The fix is to move key establishment out-of-band. The extension and native host should each authenticate to a shared backend over TLS, and receive a per-session symmetric key; traffic encrypted under this key cannot be read or forged by an attacker on the native channel, because the key never traverses it [74], [75]. Where a shared backend is unavailable, a Password-Authenticated Key Exchange (PAKE) [76] as adopted by iCloud Passwords, achieves this property locally.
9. Related Work
Browser extensions. Several prior studies have examined the security risk and attack surface of browser extensions. Pantelaios et al. [14] showed that benign extensions may transition to malicious behavior through obfus-cated code updates, while Wang et al. [77] highlighted the proliferation of cryptocurrency-themed extensions that facilitated malvertising and credential theft. Eriksson et al. [36] identified inter-extension attack vectors, including password stealing via DOM manipulation, traffic redirection for search query interception, and cross-extension XSS through history-poisoning. The closest work to ours is by Some [24], which showed that while browser extensions and web apps are executed in separate contexts, they can interact through message-passing channels that malicious pages can exploit for various attacks, including bypassing SOP and reading user cookies. While these studies consistently demonstrate that browser extensions represent a high-value target for attackers, the scope of threats was restricted to interactions within the browser, i.e., extension-to-webpage or extension-to-extension. Attacks that misuse extensions from outside the browser, which we show in our work, have not been previously explored. Previous external attacks against extensions focused on replacing installed extensions with malicious versions [78].
Desktop apps. Security weaknesses in modern desktop apps have been studied across a variety of platforms and deployment models. Xiao et al. [79] demonstrated that unsafe cross-context interactions in desktop apps can be exploited to achieve Remote Code Execution (RCE), potentially leading to full system compromise; their work instrumented the V8 engine to identify and restrict cross-context control flows, with particular emphasis on Electron's IPC mechanisms. Caretonni [80] provided one of the earliest systematic examinations of Electron security and introduced Electronegativity, a static-analysis tool for detecting common security misconfigurations in Electron apps. Paloscia et al. [81] highlighted the challenges of porting web apps to desktop environments, showing that security assumptions inherited from the web often fail in native execution contexts and introduce new attack surfaces. Ali et al. [82] further investigated popular Electron-based apps via dynamic analysis and identified multiple insecure design patterns that could facilitate RCE attacks. Bui et al. [83] looked at MiTM attacks in IPC communications between non-privileged apps and their privileged helpers, and found socket hijacking vulnerabilities in password managers; however, no vulnerabilities in Native Messaging were identified. Ahmadpanah et al. [84] analyzed trigger-action platforms such as IFTTT, Zapier, and the open-source Node-RED, discovering vulnerabilities that enable cross-app code execution and man-in-the-middle (MitM) attacks ranging from data exfiltration to full platform takeover. Wang et al. [85] demonstrated how weak privilege enforcement on Windows can be abused to launch cross-platform attacks from desktop environments against mobile super-apps, including WeChat.
Collectively, these studies reveal that desktop apps frequently expose complex attack surfaces arising from privileged execution environments, cross-app interactions, and the integration of web technologies. However, prior work has not investigated the attack surface introduced by native messaging, a standardized inter-process communication mechanism that enables direct, bidirectional communication between browser extensions and native desktop apps, with existing (or planned) integration in extremely sensitive government-related workflows.
Password managers. Prior work has studied credential theft against password managers across web and mobile environments. Silver et al. [86] showed that malicious websites and network adversaries can exploit browser autofill, while Lin et al. [87] and Fu et al. [88] demonstrated that hidden forms and concealed inputs can trigger unintended autofill and credential exfiltration. Fratantonio et al. [89] identified abuses of Android Accessibility services to access password-manager data, and Gangwal et al. [90] showed that credentials autofilled into WebViews may be exposed to the hosting app. Anliker et al. [26] examined phishing attacks against password-manager extensions, while Infantino et al. [91] identified UI-based attacks against major desktop password managers. Unlike these attacks, ours do not rely on user-facing mechanisms such as autofill or UI manipulation, or on elevated permissions. Instead, we exploit Native Messaging to extract credentials invisibly, without user prompts or password-manager interaction.
Recently, Regula [92] explored security and isolation mechanisms on macOS with a focus on novel local attacks on password managers. While most of the attacks rely on memory injection, the attack on KeePassXC focuses on insecure communication between the browser extension and the main app. However, unlike our Native Messaging approach, this attack extracts plaintext credentials from the extension's local storage. Hoffman and Morgan [93] previously presented attacks against the 1Password macOS app, including the use of native messaging. Critically, their attack [94] involves dynamic instrumentation via FRIDA to force Chrome to fork and exec the native host and hook the stdin/stdout pipes. By default, macOS prevents userland processes from hooking and instrumenting other apps. Enabling this requires the user to reboot the entire system and disable System Integrity Protection (SIP) [95], which is a significantly higher-privileged attack (with limited practicality) compared to the unprivileged host app in our threat model. Moreover, our work presents more complete threat modelling (including the bidirectional and host imitation attacks), a more systematic analysis of the NativeMessaging pipeline with new findings (e.g., manifest poisoning), and diverse case studies that characterize the prevalence, and broader security implications.
10. Conclusion
Our research presents the first systematic security analysis of browsers' native messaging functionality. Our in-depth exploration of the native messaging protocol and functionality uncovered fundamental flaws that can be abused by any unprivileged app running on the user's machine. Guided by our findings, we present two variants of our host-to-browser cross-boundary attack through a series of concrete attack demonstrations with severe real-world implications. Our extensive evaluation shows that an unprivileged app can abuse native messaging capabilities exposed by critical services, enabling adversaries to subvert security-critical workflows without requiring elevated privileges or user-granted permissions. Importantly, the security impact is greatest on platforms that otherwise provide strong app isolation; native messaging can undermine OS-enforced boundaries by providing a low-privilege app with indirect access to capabilities and data that the OS would otherwise restrict. The widespread presence of these vulnerabilities across diverse app domains highlights the systemic nature of the problem. We, therefore, propose mitigations for the entities involved in the native messaging workflow to harden the communication pipeline and restore the security boundaries that native messaging can otherwise circumvent.
Acknowledgments
We would like to thank the anonymous reviewers and shepherd for their valuable feedback. This work was supported by the National Science Foundation under grants CNS-2211574 and CNS-2143363. Any opinions, findings, conclusions, or recommendations expressed herein are those of the authors, and do not necessarily reflect those of the NSF.
Competing Interests
The authors have no competing financial or non-financial interests.
References
[1] K. Ruth, A. Fass, J. Azose, M. Pearson, E. Thomas, C. Sadowski, and Z. Durumeric, "A world wide view of browsing the world wide web," in IMC '22, 2022.
[2] C. Oh, S. Lee, C. Qian, H. Koo, and W. Lee, "Deview: Confining progressive web applications by debloating web apis," in ACSAC '22, 2022.
[3] M. Westers, A. Mayer, and L. Jannett, "Single sign-on privacy: We still know what you did last summer," in ACSAC '24, IEEE, 2024.
[4] P. Snyder, L. Ansari, C. Taylor, and C. Kanich, "Browser feature usage on the modern web," in IMC '16, 2016.
[5] F. Marcantoni, M. Diamantaris, S. Ioannidis, and J. Polakis, "A large-scale study on the risks of the html5 webapi for mobile sensor-based attacks," in WWW '19, ACM, 2019.
[6] P. D. Ryck, L. Desmet, F. Piessens, and M. Johns, "The browser as a platform," in Primer on Client-Side Web Security, Springer, 2014.
[7] S. Hsu, M. Tran, and A. Fass, "What is in the chrome web store?," in AsiaCCS '24, 2024.
[8] L. Bauer, S. Cai, L. Jia, T. Passaro, and Y. Tian, "Analyzing the dangers posed by chrome extensions," in IEEE CNS '14.
[9] A. Kariryaa, G.-L. Savino, C. Stellmacher, and J. Schöning, "Understanding users' knowledge about the privacy and security of browser extensions," in SOUPS '21, 2021.
[10] N. Carlini, A. P. Felt, and D. Wagner, "An evaluation of the google chrome extension security architecture," in USENIX Security '12.
[11] S. Heule, D. Rifkin, A. Russo, and D. Stefan, "The most dangerous code in the browser," in HotOS '15, 2015.
[12] A. Kapravelos, C. Grier, N. Chachra, C. Kruegel, G. Vigna, and V. Paxson, "Hulk: Eliciting malicious behavior in browser extensions," in USENIX Security '14, 2014.
[13] X. Xing, W. Meng, B. Lee, U. Weinsberg, A. Sheth, R. Perdisci, and W. Lee, "Understanding malvertising through ad-injecting browser extensions," in WWW '15, 2015.
[14] N. Pantelaios, N. Nikiforakis, and A. Kapravelos, "You've changed: Detecting malicious browser extensions through their update deltas," in ACM CCS '20, 2020.
[15] Y. M. Kim and B. Lee, "Extending a hand to attackers: browser privilege escalation attacks via extensions," in USENIX Security '23.
[16] O. Starov and N. Nikiforakis, "Xhound: Quantifying the fingerprintability of browser extensions," in IEEE S&P '17, IEEE, 2017.
[17] S. Karami, P. Ilia, K. Solomos, and J. Polakis, "Carnus: Exploring the privacy threats of browser extension fingerprinting.," in NDSS '20, 2020.
[18] S. Agarwal, A. Fass, and B. Stock, "Peeking through the window: Fingerprinting browser extensions through page-visible execution traces and interactions," in ACM CCS '24, 2024.
[19] A. Sjösten, D. Hedin, and A. Sabelfeld, "Essentialfp: Exposing the essence of browser fingerprinting.," in EuroS&PW '21, 2021.
[20] A. Sjösten, S. Van Acker, P. Picazo-Sanchez, and A. Sabelfeld, "Latex gloves: Protecting browser extensions from probing and revelation attacks," in NDSS '19, 2019.
[21] Q. Xie, M. V. K. Murali, P. Pearce, and F. Li, "Arcanum: Detecting and evaluating the privacy risks of browser extensions on web pages and web content," in USENIX Security '24, 2024.
[22] X. Wang, Y. Du, C. Wang, Q. Wang, and L. Fang, "Webenclave: Protect web secrets from browser extensions with software enclave," IEEE TDSC, vol. 19, no. 5, 2021.
[23] N. Jagpal, E. Dingle, J.-P. Gravel, P. Mavrommatis, N. Provos, M. A. Rajab, and K. Thomas, "Trends and lessons from three years fighting malicious extensions," in USENIX Security '15.
[24] D. F. Somé, "Empoweb: Empowering web applications with browser extensions," in IEEE S&P '19.
[25] J. M. Moreno, N. Vallina-Rodriguez, and J. Tapiador, "Did i vet you before? assessing the chrome web store vetting process through browser extension similarity," IEEE Transactions on Services Computing, 2026.
[26] C. Anliker, D. Lain, and S. Capkun, "Phishing attacks against password manager browser extensions," in USENIX Security '25.
[27] V. Rajani, D. Garg, and T. Rezk, "On access control, capabilities, their equivalence, and confused deputy attacks," in CSF '16.
[28] "Native menace poc." https://github.com/rownakulislam/NM_artifact s, 2026.
[29] Google, "Improving the security of chrome cookies on windows." https://security.googleblog.com/2024/07/improving-security-of-chrome-cookies-on.html, 2024.
[30] Apple, "Sharing access to keychain items among a collection of apps." https://developer.apple.com/documentation/security/sharing-access-to-keychain-items-among-a-collection-of-apps, 2026.
[31] Johann Rehberger, "Cookie theft in 2024." https://embracethered.com/blog/posts/2024/cookie-theft-in-2024-and-what-todo/.
[32] Bill Toulas, "Infostealer malware bypasses chrome's new cookie-theft defenses." https://www.bleepingcomputer.com/news/security/infoste aler-malware-bypasses-chromes-new-cookie-theft-defenses/, 2024.
[33] Chromium Blog, "Chrome introduces native messaging." https://blog.chromium.org/2013/10/connecting-chrome-apps-and-extensions.htm 1, 2013.
[34] Chrome for Developers, "Chrome's native messaging docs." https://developer.chrome.com/docs/extensions/develop/concepts/native-messaging, 2026.
[35] A. Fass, D. F. Somé, M. Backes, and B. Stock, "Doublex: Statically detecting vulnerable data flows in browser extensions at scale," in ACM CCS '21, 2021.
[36] B. Eriksson, P. Picazo-Sanchez, and A. Sabelfeld, “Hardening the security analysis of browser extensions,” in SAC '22, 2022.
[37] The Chromium Authors, “launch_context_posix.cc — Chromium source.” https://chromium.googlesource.com/chromium/src/+refs/heads/main/chrome/browser/extensions/api/messaging/launch_context_posix.cc. Accessed: June 2026.
[38] The Chromium Authors, “launch_context_win.cc — Chromium source.” https://chromium.googlesource.com/chromium/src/+refs/heads/main/chrome/browser/extensions/api/messaging/launch_context_win.cc. Accessed: June 2026.
[39] The Chromium Authors, “extension_prefs.cc — Chromium source.” https://chromium.googlesource.com/chromium/src/+refs/heads/main/extensions/browser/extension_prefs.cc. Accessed: June 2026.
[40] Mozilla, “NativeManifests.sys.mjs — Firefox source.” https://github.com/mozilla/gecko-dev/blob/master/toolkit/components/extensions/NativeManifests.sys.mjs. Accessed: August 2026.
[41] W. Palant, “Chrome extension manifests dataset.” https://codeberg.org/palant/chrome-extension-manifests-dataset. Snapshot dated 2025-01-10.
[42] P. Chen, L. Desmet, C. Huygens, and W. Joosen, “Longitudinal study of the use of client-side security mechanisms on the european web,” in WWW '16 Companion, 2016.
[43] D. Vansteenhuyse, V. Le Pochat, G. Franken, and L. Desmet, “One does not simply score a website: Evaluating website security scoring algorithms,” in EuroS&P W '25, IEEE, 2025.
[44] Estonian Information System Authority (RIA), “Web eID.” https://www.ria.ee/en/state-information-system/electronic-identity-eid-and-trust-services/end-user-applications-eid, 2026.
[45] ID.ee, “Web eID.” https://www.id.ee/en/article/web-eid/, 2026.
[46] K. Krips, M. Oruaas, A. Pankova, and J. Willemson, “Analysis of planned architectural changes in Open-eID,” Tech. Rep. T-176-1, Cybernetica AS and Estonian Information System Authority, 2020.
[47] RIA, “Web eID application.” https://github.com/web-eid/web-eid-app, 2026.
[48] RIA, “Web eID test application.” https://web-eid.eu/, 2026.
[49] Web eID, “Web eID authentication token validation library for PHP.” https://github.com/web-eid/web-eid-authtoken-validation-php. Accessed: 2026.
[50] T. K. Yadav and K. E. Seamons, “A security and usability analysis of local attacks against FIDO2,” in NDSS '24.
[51] Projuris, “Peticionamento eletrônico no e-SAJ do TJSP: como instalar o web signer.” https://www.projuris.com.br/blog/plugin-web-signer-peticionamento-eletronico/, 2026.
[52] Lacuna Software, “Web PKI demos.” https://demos.lacunasoftware.com/, 2026.
[53] 1Password White Paper, “Malicious processes on your device.” https://agilebits.github.io/security-design/leopard.html#malicious-processes-on-your-devices, 2026.
[54] 1Password, “Unlocked vault security.” support.1password.com/device-unlock-security, 2026.
[55] KeePassXC Contributors, “KeePassXC-Browser protocol specification.” https://github.com/keepassxreboot/keepassxc-browser/blob/develop/keepassxc-protocol.md, 2026.
[56] W. Palant, “What goal does the protocol encryption serve?,” https://github.com/keepassxreboot/keepassxc-browser/issues/1884, 2023. GitHub issue #1884, keepassxc-browser.
[57] Anthropic, “Claude for chrome.” https://claude.com/claude-for-chrome, 2026.
[58] Chrome for developers, “Url protocol handler registration.” https://developer.chrome.com/docs/web-platform/best-practices/url-protocol-handler, 2026.
[59] Heather Chen, “Finance worker pays out 25 million after video call with deepfake chief financial officer.” https://www.cnn.com/2024/02/04/asia/deepfake-cfo-scam-hong-kong-intl-hnk, 2024.
[60] L. Deshotels, C. Carabas, J. Beichler, R. Deaconescu, and W. Enck, "Kobold: Evaluating decentralized access control for remote nsxpc methods on ios," in IEEE S&P '20, IEEE, 2020.
[61] Y. Wang, Y. Hu, X. Xiao, and D. Gu, “iservice: Detecting and evaluating the impact of confused deputy problem in apples,” in ACSAC '22, 2022.
[62] S. A. G. III and W. Enck, “Arf: identifying re-delegation vulnerabilities in android system services,” in WiSec '19, ACM, 2019.
[63] L. Xing, X. Bai, T. Li, X. Wang, K. Chen, X. Liao, S.-M. Hu, and X. Han, “Unauthorized cross-app resource access on mac os x and ios,” arXiv preprint arXiv:1505.06836, 2015.
[64] M. Lin, J. Zhu, T. Yin, Z. Cai, G. Wen, Y. Guo, and M. Li, “Chekhov's gun: Uncovering hidden risks in macos application-sandboxed pid-domain services,” in ACM CCS '25, 2025.
[65] “Mac rumours - setapp’s mac developer survey.” https://www.macrumors.com/2018/10/11/mac-app-store-developer-survey-2018/.
[66] “Setapp by macpaw - mac developer survey.” https://app.setapp.com/mac-developer-survey, 2024.
[67] “Setapp by macpaw - mac user survey.” https://insights.setapp.com/reports/mac-users-download-apps-outside-mas-statistics, 2026.
[68] The Chromium Authors, “NativeMessagingUserLevelHosts policy definition — Chromium source.” https://chromium.googlesource.com/chromium/src/+refs/heads/main/components/policy/resources/t emplates/policy_definitions/NativeMessaging/NativeMessagingUserLevelHosts.yaml. Accessed: June 2026.
[69] Google, “NativeMessagingUserLevelHosts — Chrome enterprise policy.” https://chromeenterprise.google/policies/native-messaging-user-level-hosts/. Accessed: June 2026.
[70] Apple Inc., “Defining launch environment and library constraints.” https://developer.apple.com/documentation/security/defining-launch-environment-and-library-constraints. Accessed: June 2026.
[71] Apple Inc., “SecTaskCreateWithAuditToken — security framework.” https://developer.apple.com/documentation/security/1401168-sectaskcreatewithaudittoken. Accessed: June 2026.
[72] Google LLC, “PackageManager.hasSigningCertificate() — android developer documentation.” https://developer.android.com/reference/android/content/pm/PackageManagerhasSigningCertificate(java.lang.String,byte[],int). Accessed: June 2026.
[73] The Chromium Authors, “Android IPC security considerations.” https://chromium.googlesource.com/chromium/src.git/+refs/heads/main/docs/security/android-ipc.md. Accessed: June 2026.
[74] W. Diffie, P. C. Van Oorschot, and M. J. Wiener, “Authentication and authenticated key exchanges,” Designs, Codes and cryptography, vol. 2, no. 2, 1992.
[75] T. Dierks and E. Rescorla, “The transport layer security (tls) protocol version 1.2,” tech. rep., 2008.
[76] S. M. Bellovin and M. Merritt, “Encrypted key exchange: Password-based protocols secure against dictionary attacks,” 1992.
[77] K. Wang, Y. Ling, Y. Zhang, Z. Yu, H. Wang, G. Bai, B. C. Ooi, and J. S. Dong, “Characterizing cryptocurrency-themed malicious browser extensions,” Proc. ACM Meas. Anal. Comput. Syst., vol. 6, Dec. 2022.
[78] M. Ter Louw, J. S. Lim, and V. N. Venkatakrishnan, “Enhancing web browser security against malware extensions,” Journal in Computer Virology, vol. 4, no. 3, 2008.
[79] F. Xiao, Z. Yang, J. Allen, G. Yang, G. Williams, and W. Lee, “Understanding and mitigating remote code execution vulnerabilities in cross-platform ecosystem,” in ACM CCS '22, 2022.
[80] Luca Caretonti, BlackHat, "Electronegativity - a study of electron security." https://infocondb.org/con/black-hat/black-hat-usa-2017/electronegativity-a-study-of-electron-security, 2017. [81] C. Paloscia, K. Solomos, M. M. Ali, and J. Polakis, "Lost in translation: Exploring the risks of web-to-cross-platform application migration," Proceedings on Privacy Enhancing Technologies, 2025. [82] M. M. Ali, M. Ghasemisharif, C. Kanich, and J. Polakis, "Rise of inspectron: Automated black-box auditing of cross-platform electron apps," in USENIX Security '24, 2024. [83] T. Bui, S. P. Rao, M. Antikainen, V. M. Bojan, and T. Aura, "{Man-in-the-Machine}: Exploiting {Ill-Secured} communication inside the computer," in USENIX Security '18, 2018. [84] M. M. Ahmadpanah, D. Hedin, M. Balliu, L. E. Olsson, and A. Sabelfeld, "{SandTrap}: Securing {JavaScript-driven}" {Trigger-Action} platforms," in USENIX Security '21, 2021. [85] C. Wang, Y. Zhang, and Z. Lin, "Rootfree attacks: Exploiting mobile platform's super apps from desktop," in AsiaCCS '24, 2024. [86] D. Silver, S. Jana, D. Boneh, E. Chen, and C. Jackson, "Password managers: Attacks and defenses," in USENIX Security '14, 2014. [87] X. Lin, P. Ilia, and J. Polakis, "Fill in the blanks: Empirical analysis of the privacy threats of browser form autofill," in ACM CCS '20. [88] Y. Fu and D. Wang, "Leaky autofill: An empirical study on the privacy threat of password managers' autofill functionality," in ACSAC '24, IEEE, 2024. [89] Y. Fratantonio, C. Qian, S. P. Chung, and W. Lee, "Cloak and dagger: from two permissions to complete control of the ui feedback loop," in IEEE S&P '17, IEEE, 2017. [90] A. Gangwal, S. Singh, and A. Srivastava, "Autospill: Credential leakage from mobile password managers," in CODASPY '23, 2023. [91] A. Infantino, M. M. Ali, K. Solomos, and J. Polakis, "Vault raider: Stealthy ui-based attacks against password managers in desktop environments," in NDSS '26, 2026. [92] Wojciech Regula, "Broken isolation - draining your credentials from popular macos password managers." https://objectivebythesea.org/v7/talks/OBTS_v7_wRegula.pdf, 2026. [93] C. M. Jeffrey Hofmann, "Discovering and exploiting local attacks against the Ipassword macos desktop application." Presentation at DEF CON, August 2024. [94] Jeffery Hofmann, "Ipassword exploits." https://github.com/morganc3/Ipassword-exploits/blob/main/frida/nmh.js, 2026. [95] Apple, "Disabling and enabling system integrity protection." https://developer.apple.com/documentation/security/disabling-and-enabling-system-integrity-protection, 2026.
Appendix A.
Manifest File Details
Here we provide additional details about the native messaging manifest file.
A.1. Manifest File Location
Windows: During installation, apps create a registry key at one of these paths:
- HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts
- HKEY_CURRENT_USER\Software\Wow6432Node\Google\Chrome\NativeMessagingHosts
- HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts
{ "name": "com.Ipassword.Ipassword",
"description": "Ipassword BrowserSupport",
"path": "/apps/Ipassword.app/Contents/Library/LoginItems/Ipassword Browser
→ Helper.app/Contents/MacOS/IPassword-BrowserSupport",
"type": "studio",
"allowed_origins": [
"*chrome-extension://aeb1fdkhhdcdjplfhhdiojplfjncoa/"
]
}
Listing 1: 1Password manifest file.
The default value of the key contains an absolute path to the Native Messaging manifest.
macOS: The manifest file is stored at two locations depending on user privileges:
- ~/Library/ApplicationSupport/Google/Chrome/NativeMessagingHosts (current user's location)
- ~/Library/Google/Chrome/NativeMessagingHosts (system-wide location)
Most of the apps we tested install their manifest file in the user-level directory. Some security-sensitive apps install in the system-wide directory, since it requires root privileges for macOS and administrator privileges for Windows.
A.2. Example manifest file
Listing 1 shows 1Password's manifest file, which points to the dedicated helper binary for handling native messaging.
Appendix B.
Unidirectional Attacks
Figure 4 details the unidirectional version of our cross-boundary host-to-browser attack. The benefit of this attack is that the adversary can also target users that only have one of the two target components installed on their machine (i.e., only the extension or only the native app). The diagram presents two distinct variants of the unidirectional attack:
A Extension Imitation Attack: The attacker communicates directly with the native messaging host by impersonating a legitimate extension. The user does not need to have the legitimate extension for this attack to work.
1 : If the native messaging host doesn't check their parent process, the attacker can directly spawn the native host as a child process. Extension ID checks implemented on the host can be bypassed by passing the spoofed ID as the first command-line argument when launching it.
2 → 3 → 4 : If the native messaging host performs parent process validation, the attacker launches a headless Chrome instance containing a malicious spoofed extension. Extension ID matches that of the legitimate extension. The extension then launches the native messaging host via the legitimate Chrome binary thereby bypassing the parent process validation check. The spoofed extension's ID is passed via Chrome to the native messaging host bypassing any host-side checks.
In both cases, the attacker is able to communicate directly with the host.
B Host Imitation Attack: The Attacker communicates directly with the browser extension by impersonating

Figure 4: (A) Extension Imitation Attack: The attacker only attacks the Native Host by pretending to be the Extension. (B) Host Imitation Attack: The attacker only attacks the Target Extension by pretending to be the Native Host.
a legitimate native messaging host. This attack works even if no native messaging host is ever installed by the user.
5 → 6 : The attacker either creates or overwrites the target app's manifest with a poisoned path pointing to attacker-controlled binary.
7 → 8 → 9 : Once the extension call connect-Native, the browser launches the attacker binary which can then communicate with the extension via the browser.
Appendix C.
Tested Extensions and Native Hosts
Table 2 provides information and the specific version tested for each component.
Appendix D.
Local Attacker Capabilities
Next we provide additional details about the capabilities of a local attacker.
Filesystem Access. Windows does not prevent user-level processes from accessing other apps' data. macOS is far more restrictive; TCC protects sensitive resources, and App Containers (tied to Apple Developer Team IDs and enforced by SIP) secure data even for non-sandboxed apps. Moreover, native hosts can also store sensitive data in the macOS keychain which is also not accessible by other apps.
TABLE 2: Tested versions of extensions and native hosts. extension version; >_ native host version.
| Windows | macOS | |||
|---|---|---|---|---|
| ⊕ | >_ | ⊕ | >_ | |
| Adobe Acrobat | 26.8.2.1 | 26.1.21771.0 | 26.5.2.3 | 7.0 |
| App Launcher for Drive | 3.10 | 126.0.5.0 | 3.10 | 126.0 |
| Chrome Remote Desktop | 2.1 | 149.0.7827.18 | 2.1 | 147.0.7727.3 |
| Cisco Webex | 2.0.4 | 10056.4506.2025.121- | 2.0.4 | 46.5.0.35006 |
| Claude in Chrome | 1.0.75 | 1.0.0 | 1.0.75 | 1.11187.4 |
| Foxit PDF Creator | 12.1.0.0 | 12.1.0.25862 | 12.1.0.0 | — |
| WPS PDF | 1.4.0 | 2025.1.1.10517 | 1.0.0.55 | — |
| iCloud Passwords | 3.3.0 | 15.9.0 | 3.2.0 | 2.4 |
| Bitwarden | — | — | 2026.2.0 | 2026.2.1 |
| IPassword | 8.12.22.1 | 8.12.22.17 | 8.12.22.1 | 8.12.22.17 |
| Web PKI | 2.17.5 | 2.14.2.0 | 2.17.5 | 2.14.2 |
| Web Signer | 2.17.1 | 2.11.1.0 | 2.17.1 | 2.12.1 |
| Web elD | 2.3.0 | 2.9.0.927 | 2.3.0 | 2.8.0 |
| RoboForm | 9.9.6.0 | 9.9.4.6 | 9.9.6.0 | 9.9.4 |
| KeePassXC-Browser | 1.10.2 | 2.7.12 | 1.10.2 | 2.7.12 |
| UiPath | 26.10.1 | 25.10.178.58789 | 26.10.1 | 8.0.12.6609 |
| Automation 360 | 4.3.0.0 | 1.5.0.253321140 | 4.3.2.0 | — |
Native Host Tampering. Local Attackers may attempt to modify other user apps (e.g., password managers) in an attempt to steal data or keyboard input. They can achieve this by tampering with the target's app's binary file on disk or dynamically injecting code at runtime. Windows does not provide the same level of memory protection as macOS, so on Windows local attackers can tamper with other native apps through process hollowing or dll injection. In contrast, macOS by default verifies the app bundle integrity at runtime and allows app developers to enforce runtime restrictions preventing any processes, even root-owned ones, from modifying or reading app memory.
Extension Tampering. Chrome implements safeguards to mitigate the damage which can be caused by a local attacker. For example, a local attacker cannot directly modify the extension files to achieve JavaScript execution in the context of the Default User profile. Chrome implements an integrity check on Extensions downloaded via the Chrome Web Store which prevents a local attacker from trivially modifying the extension code stored on disk. Any modification to the extension code triggers a corruption warning from Chrome and disables the extension altogether. The user is presented with a choice to repair the extension which reverts any modifications made by the attacker. Similarly, an attacker cannot add a new extension by directly modifying Chrome's Default profile. Prior Chrome versions allowed loading arbitrary extensions from disk via -load-extension flag but this was deprecated due to misuse. Adding an extension now requires enabling developer mode via GUI and manually loading in the extension from disk, which is beyond the capabilities of a user-privileged attacker on macOS.
However, while native messaging is intended to offload sensitive functionality and data to the native apps (e.g., the app storing the password vault and the extension simply autofilling it in the webpage) certain extensions may still store sensitive data. If the extension stores it in an unencrypted form, that would be readable by other local apps. In practice, security-critical apps typically do not store sensitive data unencrypted. E.g., password manager extensions that include the password vault, prompt the user for their Master Password, and pass that through a key derivation function to calculate the key used to decrypt sensitive data in memory, thereby preventing local attackers from accessing it.
Appendix E.
Sandboxing Exceptions
Since strict sandboxing often prevents legitimate apps from operating normally, both Windows and macOS implement a mechanism for exceptions for necessary capabilities which can be granted to apps.
For example, in macOS com.apple.securitytemporary-exception.files.home-relative-path.read-write, is required to access the NativeMessagingHosts directory. Apps distributed via the App Store which use native messaging contain exceptions, giving the sandboxed apps access to native messaging manifest directories across all major browsers. Malicious apps published through the App store that have been provided with this exception are able to overwrite legitimate manifests and create fake ones, allowing them to mount Host Imitation Attacks against target extensions. However, mounting Extension Imitation or the full MITM attack would require more sandbox exceptions or broader permissions. The Windows App store is far more lax, allowing apps to completely forgo sandboxing, by requesting the runFullTrust capability. 7 of the apps in our experiments were granted this capability. In summary, while attackers can request exceptions to overcome the limitations of sandboxing, in practice attackers can simply choose to avoid the official app stores given desktop users' tendency to install apps directly from websites.
Appendix F.
Ethics Considerations
Purpose and Impact of Research. The native messaging protocol, which enables bidirectional communication between web browsers and native host applications, remains a significantly understudied component of modern browser architectures. Despite a lack of academic scrutiny, the protocol is widely deployed across popular browsers and serves as a critical infrastructure layer for numerous productivity, security, and utility applications. Our research is motivated by the imperative to secure user data in this under-protected communication channel. We find that the native messaging protocol suffers from significant flaws that, if left unaddressed, enable severe attacks. Given the massive user base of applications leveraging this protocol, our findings carry significant real-world impact for end-user privacy and security.
Experimental Conduct. All experiments described in this paper were conducted exclusively on the researchers' own machines, using isolated test browser profiles and synthetic or personally owned data. No actual end users were targeted, contacted, or otherwise implicated in our experimental procedures. All data collection and analysis was performed in a controlled, environment to ensure that no third-party data was accessed without explicit authorization.
Beneficence. Our research involves several stakeholder groups, each of whom stands to benefit from the findings and recommendations presented in this work, as we discuss next. Browser Vendors. Our empirical evaluation focuses primarily on Google Chrome. Nonetheless, the design flaws we identify may not be isolated to a single browser, as they likely extend to other Chromium-based browsers and potentially other browsers as well. Our findings reveal significant architectural shortcomings in the native messaging security model that warrant a comprehensive redesign. As such, our research is beneficial to browser vendors as it provides the blueprint for them to incorporate additional mechanisms to mitigate our attacks. Application Developers. Our research highlights a previously unknown attack vector that enables unauthorized access to sensitive user data through the native messaging protocol. As application developers bear responsibility for securing their applications against such threats, we have initiated disclosure with the developers of the applications evaluated in this study. Similarly, application developers that want to incorporate native messaging, will benefit from our research as it will allow them to secure their apps against the attacks we present. End Users. By exposing the security deficiencies inherent in the native messaging protocol, our research aims to raise awareness of the risks embedded in the products that end users rely upon daily. We believe that informed users are better positioned to make decisions about which applications to install. Our findings may empower users to exercise greater caution when interacting with applications that leverage native messaging, and to advocate for stronger privacy protections from vendors and developers.
Responsible Disclosure. We adhere to responsible disclosure practices throughout this research. For each app, we parsed their official websites or public repositories to identify the appropriate disclosure mechanisms. From browser vendors, Google, Mozilla, Microsoft Edge, Opera, and Vivaldi were contacted. Google and Mozilla explicitly consider user-level local attackers outside their browser threat models; Google closed all reports on this basis, including those for Chrome Remote Desktop and Launcher for Google Drive. Edge attributed the issue to upstream Chromium, and Opera and Vivaldi did not commit to changes. These responses reflect the long-standing practice of treating user-level local attackers as out of scope. However, this assumption is increasingly outdated as OS security has evolved, particularly on macOS, with stronger app integrity guarantees and restrictions on user-level apps' access to sensitive resources such as other apps' files, keyboard input, and screen data. Treating local execution as equivalent to unrestricted host compromise overlooks these boundaries and
https://issues.chromium.org/issues/40080979 risks leaving cross-app attack vectors, such as those enabled by native messaging, systematically understudied.
Feedback from the targeted apps varied considerably. The Estonian Information System Authority (RIA) (administrator of Web eID) acknowledged the attack surface and after considerable communication proposed a vendor-neutral security framework as a longer-term desired direction. Several vendors confirmed the attacks and implemented or pursued mitigations: Foxit deployed HMAC-SHA256 message integrity and anti-replay protections; Anthropic confirmed the issue was previously reported and is tracked for remediation; and RoboForm is exploring potential changes. 1Password, Bitwarden, and KeePassXC also engaged with the reports and assessed the implications for their threat models but did not commit to any changes. Cisco (Webex) was determined that their implementations did not cross a security boundary, while Adobe has not provided a final response. Lacuna Software and Automation Anywhere acknowledged receipt without substantive responses; UiPath and WPS PDF did not respond. These outcomes demonstrate that disclosure can prompt meaningful improvements, but also highlight the difficulty of securing native-messaging channels at the app level. Doing so requires apps to correctly implement and maintain message integrity, authentication, replay protection, and appropriate origin/browser validation across diverse deployment environments. We argue that native messaging should instead provide these guarantees by design, avoiding the need for each app to independently secure a complex browser-to-host communication channel.
Decision to publish. We believe that the benefits of publishing our work significantly outweigh any potential risk. As critical workflows leveraging native messaging are emerging (including citizen-government processes in the EU), it is imperative that vendors are aware of the risks that they face. Moreover, we propose mitigations steps that can assist developers and vendors in deploying appropriate mechanisms for securing their systems.
Appendix G. Meta-Review
The following meta-review was prepared by the program committee for the 2027 IEEE Symposium on Security and Privacy (S&P) as part of the review process as detailed in the call for papers.
G.1. Summary
This paper presents a new privilege escalation attack that abuses the Native Messaging API to target communication between browser extensions and their native host counterparts under a local-attacker threat model. The paper demonstrates the feasibility of man-in-the-middle (MITM) and confused deputy attacks against Chrome extensions and unsandboxed macOS applications. Through an empirical study of real-world extensions, the paper shows that these attacks affect widely deployed applications across several security-sensitive domains.
G.2. Scientific Contributions
- Identified an Impactful Vulnerability
- Provides a Valuable Step Forward in an Established Field
G.3. Reasons for Acceptance
-
This paper identifies an impactful vulnerability that is exposed by the Native Messaging API ecosystem. Through an analysis of 17 Chrome extensions and their unsandboxed macOS native hosts, the authors find that 16 are vulnerable, spanning more than 500 million installations, although this count includes non-macOS installations. The affected applications include government verification applications, password managers, and a popular AI platform.
-
This paper provides a valuable step forward in an established field by examining the Native Messaging API, which has received comparatively little attention despite extensive prior research on browser extensions. The paper presents the first systematic evaluation of this mechanism and thus advances an established line of browser security research.
G.4. Noteworthy Concerns
-
The PC noted that the paper demonstrates meaningful privilege escalation primarily on macOS. While the attack was also replicated on Windows, the assumed local attacker already has substantial privileges there, limiting the additional impact demonstrated by the attack. Further, given the attack is feasible even without the browser being present, the evaluation may not capture the full attack surface.
-
The reviewers also agreed that the threat model is restricted by requiring unsandboxed native applications. This may limit the applicability of the attack, since applications downloaded from OS vendor-monitored stores do not fall within this threat model.
-
The threat model already grants the local attacker considerable capabilities. As such, a more systematic presentation of the exact additional capabilities enabled by this attack, compared with what an attacker with the assumed local access can already achieve, would strengthen the paper.
Appendix H.
Response to the Meta-Review
-
Indeed, our attack is significantly more impactful in macOS, due to the various OS-level defenses present in macOS that considerably limit the capabilities of user-level non-privileged processes (see discussion in Section 7). Moreover, as our experiments demonstrate, attackers can exploit the NativeMessaging API against certain targets even if the user has not installed the browser extension or the native app (see Table 1). As such, we agree that other attack techniques may be possible using native messaging; nonetheless, our paper presents an extensive, in-depth analysis of the NativeMessaging API, and demonstrates a powerful novel attack vector.
-
We broadly agree that the threat model is somewhat restricted by requiring the attacker to be unsandboxed. However, we contend that this has limited real world implications given the popularity of unofficial distribution channels in desktop environments. As we discuss in Section 7, surveys have found that macOS app developers tend to avoid the app store due to revenue loss, review delays, and incompatibility with sandboxing restrictions. In fact, only 4 out of the 17 apps in our evaluation were available via the Mac App Store despite their popularity, while all of them were available outside the app store through the vendors' official websites.
-
We also agree that a local attacker possesses certain capabilities by default. Thus for some target applications, the native messaging channel provides an alternative vector rather than the only one. However, our empirical testing of non-native-messaging local attacker capabilities showed that numerous attacks demonstrated in the paper cannot be mounted without exploiting the Native Messaging channel. The difference between local attacker capabilities and the importance of our native messaging attacks are significantly more pronounced in macOS, as the numerous built-in OS-level defenses constitute significant barriers for local attacks and largely constrain their capabilities.