The Web's Sixth Sense: A Study of Scripts Accessing Smartphone Sensors
Anupam Das, Gunes Acar, Nikita Borisov, Amogh Pradeep
Abstract
We present the first large-scale measurement of smartphone sensor API usage and stateless tracking on the mobile web. We extend the OpenWPM web privacy measurement tool to develop OpenWPM-Mobile, adding the ability to emulate plausible sensor values for different smartphone sensors such as motion, orientation, proximity and light. Using OpenWPM-Mobile we find that one or more sensor APIs are accessed on 3 695 of the top 100K websites by scripts originating from 603 distinct domains. We also detect fingerprinting attempts on mobile platforms, using techniques previously applied in the desktop setting. We find significant overlap between fingerprinting scripts and scripts accessing sensor data. For example, 63% of the scripts that access motion sensors also engage in browser fingerprinting.
To better understand the real-world uses of sensor APIs, we cluster JavaScript programs that access device sensors and then perform automated code comparison and manual analysis. We find a significant disparity between the actual and intended use cases of device sensor as drafted by W3C. While some scripts access sensor data to enhance user experience, such as orientation detection and gesture recognition, tracking and analytics are the most common use cases among the scripts we analyzed. We automated the detection of sensor data exfiltration and observed that the raw readings are frequently sent to remote servers for further analysis.
Finally, we evaluate available countermeasures against the misuse of sensor APIs. We find that popular tracking protection lists such as EasyList and Disconnect commonly fail to block most tracking scripts that misuse sensors. Studying nine popular mobile browsers we find that even privacy-focused browsers, such as Brave and Firefox Focus, fail to implement mitigations suggested by W3C, which includes limiting sensor access from insecure contexts and cross-origin iframes. We have reported these issues to the browser vendors.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3c1810db-1f7b-4a4d-9eb8-a2e1ff1fcd88Cited by top-tier papers25
- Fingerprinting the Fingerprinters: Learning to Detect Browser Fingerprinting BehaviorsUmar Iqbal, Steven Englehardt, Zubair ShafiqS&P 2021 · 143 citations
- Watching You Watch: The Tracking Ecosystem of Over-the-Top TV Streaming DevicesHooman Mohajeri Moghaddam, Gunes Acar, Ben Burgess, Arunesh Mathur et al.CCS 2019 · 84 citations
- SensorID: Sensor Calibration Fingerprinting for SmartphonesJiexin Zhang, Alastair R. Beresford, Ian SheretS&P 2019 · 68 citations
- Apophanies or Epiphanies? How Crawlers Impact Our Understanding of the WebSyed Suleman Ahmad, Muhammad Daniyal Dar, Muhammad Fareed Zaffar, Narseo Vallina-Rodriguez et al.WWW 2020 · 42 citations
- WebSocket Adoption and the Landscape of the Real-Time WebPaul Murley, Zane Ma, Joshua Mason, Michael D. Bailey et al.WWW 2021 · 40 citations
Builds on5
- Online Tracking: A 1-million-site Measurement and AnalysisSteven Englehardt, Arvind NarayananCCS 2016 · 798 citations
- Beauty and the Beast: Diverting Modern Web Browsers to Build Unique Browser FingerprintsPierre Laperdrix, Walter Rudametkin, Benoit BaudryS&P 2016 · 279 citations
- Tracking Mobile Web Users Through Motion Sensors: Attacks and DefensesAnupam Das, Nikita Borisov, Matthew CaesarNDSS 2016 · 145 citations
- FP-STALKER: Tracking Browser Fingerprint EvolutionsAntoine Vastel, Pierre Laperdrix, Walter Rudametkin, Romain RouvoyS&P 2018 · 117 citations
- XHOUND: Quantifying the Fingerprintability of Browser ExtensionsOleksii Starov, Nick NikiforakisS&P 2017 · 104 citations
Related papers
- Same Script, Different Behavior: Characterizing Divergent JavaScript Execution Across Different Device PlatformsAhsan Zafar, Junhua Su, Sohom Datta, Alexandros Kapravelos et al.CCS 2025
- Cross-Boundary Mobile Tracking: Exploring Java-to-JavaScript Information Diffusion in WebViewsSohom Datta, Michalis Diamantaris, Ahsan Zafar, Junhua Su et al.NDSS 2026 · 2 citations
- This Sneaky Piggy Went to the Android Ad Market: Misusing Mobile Sensors for Stealthy Data ExfiltrationMichalis Diamantaris, Serafeim Moustakas, Lichao Sun, Sotiris Ioannidis et al.CCS 2021 · 8 citations
- Fingerprinting SDKs for Mobile Apps and Where to Find Them: Understanding the Market for Device FingerprintingMichael A. Specter, Mihai Christodorescu, Abbie Farr, Bo Ma et al.CCS 2025
- Large-Scale Measurement and Real-World Mitigation of Web Browser Fingerprinting in the WildTom Ritter, Fatih Kilic, Frederik Braun, Elisa Luo et al.CCS 2026
