Skip to main content
QUICK REVIEW

[Paper Review] KeyDrown: Eliminating Keystroke Timing Side-Channel Attacks

Michael Schwarz, Moritz Lipp|arXiv (Cornell University)|Jun 20, 2017
Security and Verification in ComputingComputer Science35 references9 citations
TL;DR

KeyDrown is a comprehensive defense mechanism that eliminates keystroke timing side-channel attacks by injecting a high volume of fake keystrokes at the kernel level and propagating them through all software layers. It prevents detection via interrupt monitoring, Prime+Probe, and Flush+Reload attacks by ensuring real and fake keystrokes exhibit identical timing and cache behavior, rendering attackers unable to distinguish them, thus achieving 0.0% advantage over random classification in evaluation.

ABSTRACT

Besides cryptographic secrets, side-channel attacks also leak sensitive user input. The most accurate attacks exploit cache timings or interrupt information to monitor keystroke timings and subsequently infer typed words and sentences. Previously proposed countermeasures fail to prevent keystroke timing attacks as they do not protect keystroke processing among the entire software stack. We close this gap with KeyDrown, a new defense mechanism against keystroke timing attacks. KeyDrown injects a large number of fake keystrokes in the kernel to prevent interrupt-based attacks and Prime+Probe attacks on the kernel. All keystrokes, including fake keystrokes, are carefully propagated through the shared library in order to hide any cache activity and thus to prevent Flush+Reload attacks. Finally, we provide additional protection against Prime+Probe for password input in user space programs. We show that attackers cannot distinguish fake keystrokes from real keystrokes anymore and we evaluate KeyDrown on a commodity notebook as well as on two Android smartphones. We show that KeyDrown eliminates any advantage an attacker can gain from using interrupt or cache side-channel information.

Motivation & Objective

  • To address the gap in existing countermeasures that fail to protect keystroke processing across the entire software stack.
  • To prevent interrupt-based side-channel attacks that exploit keyboard interrupt timing.
  • To mitigate microarchitectural side-channel attacks such as Prime+Probe and Flush+Reload on cache and memory access patterns.
  • To ensure that attackers cannot distinguish real keystrokes from fake ones, even when multiple traces are available.
  • To provide a defense that is effective for both general text input and password fields, without requiring application-level changes.

Proposed method

  • Injecting a large number of fake keystrokes at the kernel level to obscure real keystroke timing from interrupt-based side-channel analysis.
  • Unifying control flow and data access patterns between real and fake keystrokes to prevent Prime+Probe and Flush+Reload attacks on the kernel.
  • Carefully propagating all keystrokes—including fake ones—through shared libraries to maintain consistent cache behavior and prevent cache-based side-channel leakage.
  • Protecting user-space applications against side-channel leakage by ensuring that keystroke processing routines are always active and indistinguishable in timing and memory access.
  • Using a combination of kernel-level interrupt injection and microarchitectural obfuscation to eliminate side-channel advantages across the full software stack.
  • Evaluating KeyDrown on commodity x86 notebooks and Android smartphones to validate effectiveness in real-world environments.

Experimental results

Research questions

  • RQ1Can a defense mechanism eliminate keystroke timing side-channel attacks across the entire software stack, including kernel and user space?
  • RQ2To what extent can fake keystrokes prevent detection via interrupt-based side-channel analysis?
  • RQ3Can Prime+Probe and Flush+Reload attacks be mitigated when real and fake keystrokes exhibit identical cache and memory access patterns?
  • RQ4Is it possible to achieve indistinguishability between real and fake keystrokes even when an attacker collects multiple timing traces, as in password input scenarios?
  • RQ5Does the countermeasure remain effective under practical conditions, including on mobile platforms like Android smartphones?

Key findings

  • KeyDrown successfully prevents attackers from distinguishing real keystrokes from fake ones, achieving 0.0% advantage over a random classifier in side-channel analysis.
  • The defense is effective against both interrupt-based attacks and microarchitectural side-channel attacks, including Prime+Probe and Flush+Reload, on both x86 and ARM platforms.
  • Evaluation on a commodity notebook and two Android smartphones confirms that KeyDrown eliminates any side-channel advantage from timing or cache information.
  • The mechanism works without requiring changes to existing applications, provided input is processed after user input completion, such as in password fields or text input forms.
  • KeyDrown adds measurable noise to browser-based keystroke timing attacks, such as those targeting Chrome's event queue, effectively neutralizing them.
  • The solution is not effective against side-channel leaks from other sources such as accelerometer-based attacks or application-level behaviors like real-time autocomplete, which are out of scope.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.