We discover that enabling both eavesdropping and non-invasive, per-key injection is viable on keyboards, in particular, the fast-emerging commodity Hall-effect keyboards. This paper introduces DualStrike, a new attack system that allows attackers to remotely listen to victim input and control any key on a Hall-effect keyboard. This capability opens doors to severe attacks (e.g., file deletion, private key theft, and tampering) based on the victim’s input and context, all without requiring hardware or software modifications to the victim’s computer. We present several key innovations in DualStrike, including a novel, compact electromagnet-based hardware design for high-frequency magnetic spoofing, a synchronization-free attack scheme, and a magnetometer-based listening mechanism using commercial off-the-shelf components. Our real-world experiments demonstrate that DualStrike can reliably compromise arbitrary keys across six recent Hall-effect keyboard models. Specifically, DualStrike achieves over 98.9% keystroke injection accuracy across all tested models. In an end-to-end test, the eavesdropping module achieves a high listening accuracy (i.e., above 99%). To improve the robustness of DualStrike, we implement a calibration algorithm to account for keyboard displacement, allowing it to maintain 98.5% injection accuracy even with offsets up to 4 cm. We also identified DualStrike’s immunity to existing magnetic shielding mechanisms and propose a novel shielding approach for Hall-effect keyboards.
Hall-effect keyboard : A Hall-effect keyboard uses a magnet and a Hall sensor beneath each key to continuously detect key movement. Unlike conventional mechanical keyboards, it provides contactless sensing, adjustable actuation points, faster response, and improved durability.
Fast-emerging Hall-effect keyboard : Hall-effect keyboards are rapidly gaining market adoption. The number of available models grew by an average of 82.60% every three months, while the global Hall-effect keyboard market has exhibited a compound annual growth rate (CAGR) of 18.7% since 2024.
However, are Hall-effect keyboards truly trustworthy?
Hall-effect switches cannot distinguish magnetic fields generated by legitimate keystrokes from those introduced externally, while their magnetic variations can also leak information about key movements. Exploiting this fundamental vulnerability, we develop an attack model that achieves both real-time keystroke eavesdropping and non-invasive, per-key keystroke injection. The attack is also robust against practical disturbances, such as keyboard displacement, making it applicable to realistic usage scenarios. With DualStrike, an attacker can:
Eavesdrop on sensitive user inputs, such as root and system passwords, and then use the captured context to launch targeted keystroke injections. For example, the attacker may execute malicious commands, download malware, or tamper with sensitive files—all without modifying the victim’s keyboard or computer.
DualStrike consists of three main components: keystroke eavesdropping, keystroke injection, and calibration for injection misalignment.
DualStrike can capture magnetic field changes on Hall-effect keyboard using COTS magnetometers (MLX90393), enabling key classification. A 4x2 magnetometer array can achieve over 99% keystroke inference accuracy.
We use structure-optimized electromagnets. Our design includes a Universal Electromagnet Layout, and through High-frequency Magnetic Spoofing and novel Attack Parameters, we can achieve over 98.9% keystroke injection accuracy across all tested models.
Existing EMI keystroke injection methods do not account for potential keyboard displacement during an actual attack. We use the eavesdrop results to calculate possible displacements of the keyboard (dx/dy/θ) before the attack. During the attack, we adjust the attack device's mapping accordingly. DualStrike can maintain an accuracy of 98.5% even with a displacement of up to 4 cm.
Tested Commodity Keyboards
DualStrike can disable user input by injecting random keystrokes at a high APM (approximately 5000 keystrokes per minute).
User cannot distinguish their intended inputs from the randomly injected sequences.
(a) Disable User's input(SteelSeries Apex Pro)
(b) Disable User's input(Corsair K70 MAX)
DualStrike can perform targeted keystroke injection with 100% accuracy.
The attacker can send any specified sequence for injection attacks.
Specifically, we demonstrate this by using a classic game: Stardew Valley as an example, showing how the attacker can control the game character to move independently of the user's input.
(c) Keystroke Injection(Wooting 60 HE)
(d) Strange Happenings in Stardew Valley
DualStrike can cause user login suspension through keystroke injection.
Specifically, by striking random keys and the "Enter" key twice, DualStrike can simulate rapid, incorrect login attempts.
Once the error count exceeds a certain limit, the user will be locked out by the system and unable to log in.
(e) Login Suspension(Keydous NJ98)
(f) Login Suspension(Wooting 60 HE)
DualStrike can inject a system shutdown command in a flash, leaving users no time to react.
Specifically, for Windows systems, the shutdown can be executed by pressing Ctrl+X followed by pressing 'U' twice.
(g) System Forced Shut Down(Wooting 60 HE)
(h) System Forced Shut Down(Corsair K70 MAX)