arXiv:2611.04291cs.CRNov 2026

Manuscript Offprint

arXiv:2611.04291

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

Jyotirmay Chauhan, Rownak Islam, Jason Polakis

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.

References (93)