CTRL-ALT-LED: Leaking Data from Air-Gapped Computers via Keyboard LEDs

Mordechai Guri, Boris Zadov, Dima Bykhovsky, Yuval EloviciCOMPSAC 2019

Introduction

In high-security environments, "air-gapping"—the physical isolation of a computer from any network—remains the gold standard for protecting sensitive information. However, the security of an air-gapped system is only as strong as its ability to prevent data exfiltration. While infection can occur via compromised USB drives or supply chain attacks, getting data out is a significant hurdle. This paper explores a modernized optical exfiltration channel: using the standard status LEDs (Caps-Lock, Num-Lock, and Scroll-Lock) on a keyboard to transmit data to nearby sensors.

The Exfiltration Challenge

Previous research has investigated acoustic, thermal, and electromagnetic side channels. This study revisits an optical approach first proposed in 2002, updated for the era of high-speed USB controllers and ubiquitous mobile sensors. The goal is to create a high-bandwidth, covert channel that bypasses traditional Data Leakage Prevention (DLP) systems without requiring hardware modifications.

Methodology

The attack involves two primary components: a software-based transmitter and an optical receiver.

The Transmitter

The researchers developed malware capable of controlling keyboard LEDs through standard operating system APIs (e.g., SendInput in Windows) or by sending raw Human Interface Device (HID) packets over USB. Modern USB keyboard controllers allow for significantly faster toggling of LED states compared to older PS/2 interfaces, which is crucial for achieving high data rates.

Keyboard LEDs (Caps, Num, and Scroll Lock) modulated to transmit binary data.

Three modulation schemes were implemented:

  1. On-Off Keying (OOK): A simple binary representation where the LED being 'on' represents a 1 and 'off' represents a 0.
  2. Binary Frequency-Shift Keying (B-FSK): Data is represented by different blinking frequencies.
  3. Amplitude Shift Keying (ASK): For non-imaging sensors, the total light intensity (determined by the number of active LEDs, 0-3) allows for multi-bit transmission.

The Receiver

The study evaluated two types of receivers:

  • Imaging Receivers: Standard cameras (DSLRs, security cameras, smartphones) that require line-of-sight and are limited by their frame rate.
  • Non-Imaging Receivers: Photodiodes capable of sampling light at much higher frequencies than cameras, enabling significantly higher bandwidth.
Practical exfiltration scenario using a smartwatch as a receiver to capture blinking LED patterns.

Experimental Evaluation

The researchers tested the attack across various keyboard models (Dell, Lenovo, Logitech, SilverLine) and receiver types.

Key Results

  • Maximum Bandwidth: Using a dedicated photodiode, the system achieved up to 3000 bits per second (bps) per LED. With all three LEDs, the theoretical throughput reaches 9000 bps.
  • Mobile Exfiltration: Smartphone cameras (e.g., Galaxy S7) successfully captured data at over 120 bps using high-speed video modes.
  • Distance and Reliability: Data exfiltration was successful at distances up to 9.5 meters with a Bit Error Rate (BER) below 1%. Even at high speeds, the BER remained manageable for standard error-correction techniques.

Discussion and Mitigation

A key insight of this research is the "stealth via speed" effect. At frequencies around 3000 bps, the blinking is imperceptible to the human eye; the LEDs simply appear to be continuously on at a slightly reduced brightness. This makes the attack difficult to detect visually.

Limitations

The primary constraint is the requirement for a clear line-of-sight between the keyboard and the receiver. If the LEDs are obscured or the keyboard is hidden, the channel is broken.

Countermeasures

Defenses could include OS-level monitoring of HID requests to detect unusual LED activity or implementing "low-pass filters" in keyboard drivers to limit the maximum toggle frequency of the status LEDs. Future work may explore using RGB backlighting on gaming keyboards for even higher data rates via Wavelength Division Multiplexing.

Reference: Guri, M., Zadov, B., Bykhovsky, D., & Elovici, Y. (2019). CTRL-ALT-LED: Leaking Data from Air-Gapped Computers via Keyboard LEDs. arXiv preprint arXiv:1907.05851.

Summary updated

BibTeX
@inproceedings{guri2019ctrl,
  author = {Mordechai Guri and Boris Zadov and Dima Bykhovsky and Yuval Elovici},
  title = {{CTRL-ALT-LED: Leaking Data from Air-Gapped Computers via Keyboard LEDs}},
  booktitle = {COMPSAC},
  year = {2019},
  doi = {10.1109/compsac.2019.00118},
}
Figure