[Paper Review] MagneticSpy: Exploiting Magnetometer in Mobile Devices for Website and Application Fingerprinting
This paper proposes MagneticSpy, a side-channel attack that exploits magnetometer sensor readings in smartphones to fingerprint running websites and applications by detecting electromagnetic disturbances caused by CPU workload. The method achieves up to 91% accuracy in website fingerprinting and 90% in application fingerprinting without requiring user permissions, even from within web pages via the Generic Sensor API.
Recent studies have shown that aggregate CPU usage and power consumption traces on smartphones can leak information about applications running on the system or websites visited. In response, access to such data has been blocked for mobile applications starting from Android 8. In this work, we explore a new source of side-channel leakage for this class of attacks. Our method is based on the fact that electromagnetic activity caused by mobile processors leads to noticeable disturbances in magnetic sensor measurements on mobile devices, with the amplitude being proportional to the CPU workload. Therefore, recorded sensor data can be analyzed to reveal information about ongoing activities. The attack works on a number of devices: we evaluated 80 models of modern smartphones and tablets and observed the reaction of the magnetometer to the CPU activity on 56 of them. On selected devices we were able to successfully identify which application has been opened (with up to 90% accuracy) or which web page has been loaded (up to 91% accuracy). The presented side channel poses a significant risk to end users' privacy, as the sensor data can be recorded from native apps or even from web pages without user permissions. Finally, we discuss possible countermeasures to prevent the presented information leakage.
Motivation & Objective
- To investigate whether magnetometer sensors in mobile devices can leak information about CPU activity due to electromagnetic interference.
- To develop a passive side-channel attack that identifies running applications and visited websites using only magnetometer data.
- To evaluate the feasibility of such fingerprinting in both native apps and web-based scenarios, including through browser-accessible sensors.
- To assess the privacy implications of this leakage vector and propose countermeasures.
Proposed method
- The method analyzes magnetometer readings collected from smartphones to detect variations in magnetic field intensity correlated with CPU workload.
- It leverages the fact that electromagnetic emissions from the processor induce measurable disturbances in the magnetometer, with amplitude proportional to CPU utilization.
- A machine learning classifier is trained on sensor traces to distinguish between different applications and websites based on unique magnetic disturbance patterns.
- The approach is evaluated across 80 modern smartphone and tablet models, with fingerprinting performed both in native apps and via web-based access using the Generic Sensor API.
- Sampling rate reduction and sensor access restrictions are explored as mitigation strategies.
Experimental results
Research questions
- RQ1Can magnetometer readings in mobile devices be used to infer CPU workload and, by extension, running applications or visited websites?
- RQ2To what extent does this side-channel leakage persist across diverse smartphone models and operating systems?
- RQ3Can the attack be executed without user permissions, including from within a web page via browser APIs?
- RQ4How accurate is the fingerprinting of websites and applications using only magnetometer data?
- RQ5What are the most effective countermeasures to prevent such information leakage?
Key findings
- The attack was successfully demonstrated on 56 out of 80 tested smartphone and tablet models, confirming widespread susceptibility to the side channel.
- Website fingerprinting achieved up to 91% accuracy using a classifier trained on magnetometer traces from 50 popular websites.
- Application fingerprinting reached up to 90% accuracy for a set of 65 commonly used applications.
- The method works without user permissions and can be executed from within a web page using the Generic Sensor API, significantly expanding the attack surface.
- Reducing the magnetometer sampling rate to 1 Hz significantly degrades fingerprinting accuracy, though coarse-grained detection may still be possible.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.