Skip to content

Light and infrared: optical links and optical emanations

Simulated The figures on this page are generated in your browser from the published timings and from a simple model. Nothing here is received from a real device. The traces scroll slowly and nothing on screen flashes.

Infrared and visible light are electromagnetic radiation at hundreds of terahertz. An 850 nm infrared LED, for example, emits at about 353 THz. The ideas on the radio pages carry straight across. There are deliberate links that carry commands, data and sound, and there is unintended leakage: light that varies with the information a device is handling. This page is a companion to TEMPEST and thermal imaging.

Infrared remote controls

A TV remote flashes an infrared LED in short bursts of a carrier, typically tens of kilohertz. The receiver in the TV is tuned to that carrier. Vishay's application note on remote-control data formats lists standard receivers for 30, 33, 36, 38, 40 and 56 kHz. It describes three ways to code a bit with bursts:

  • Bi-phase: an edge in the middle of each bit slot, rising for 1 and falling for 0. This is the same idea as Manchester coding.
  • Pulse distance: every burst is the same length, and the gap to the next burst sets the bit value.
  • Pulse length: two burst lengths, one for each bit value.

Two widely used formats:

NECRC-5
Carrier38 kHz36 kHz
CodingPulse distance: 0 = 1.125 ms, 1 = 2.25 ms between burst startsBi-phase: half the bit silent, half a burst of 32 carrier cycles
Frame9 ms leader burst, 4.5 ms pause, then 8-bit address, inverted address, 8-bit command, inverted command2 start bits, 1 toggle bit, 5 address bits, 6 command bits
Burst / bit length22 pulses, each 8.77 µs wide with a 26.3 µs period (578.6 µs)1.78 ms per bit; whole frame 24.9 ms
While the key is heldThe leader and a single bit repeat, in 108 ms time slotsThe whole frame repeats every 114 ms; the toggle bit changes at each new key press

Sources differ slightly on NEC. SB-Projects gives a 560 µs burst and a 110 ms repeat period, against Vishay's 22 × 26.3 µs and 108 ms. The Linux kernel documentation notes that NEC sends the least significant bit first, and that sending each byte followed by its inverse is a check. SB-Projects adds that a final burst ends the message, so the length of the last bit can be measured, and that both RC-5 start bits are 1.

Top: the whole frame, with each orange block a burst of carrier. The blue digits are the bits in the order they are sent. Bottom: one burst zoomed in to show the individual carrier pulses. NEC pulse widths are from Vishay. Vishay gives no RC-5 pulse width, so it is drawn at the 1/4 duty cycle SB-Projects quotes (it says 1/3 or 1/4).

IrDA

IrDA is a family of standards for short-range infrared data links. Vishay's physical-layer note summarises the IrDA Serial Infrared Physical Layer Specification (IrPHY 1.4):

  • Wavelength: peak between 0.85 µm and 0.90 µm.
  • Rates (SIR): 9.6 kbit/s is mandatory. 2.4, 19.2, 38.4, 57.6 and 115.2 kbit/s are optional.
  • Pulses: only the 0 bits of the UART stream are sent, each as a short flash of 3/16 of the bit time (1.63 µs at 115.2 kbit/s; the minimum allowed is 1.41 µs).
  • Range and beam: a standard link works from 0 m to at least 1 m within a ±15° cone. Low-power devices only need to reach 0.2 m. The half angle is between ±15° and ±30°, and intensity is capped at 500 mW/sr.
  • Errors: the bit error ratio must be no greater than 10−8.

Audio over infrared and data over light

  • Infrared audio: the IEC 61603 series covers "Transmission of audio and/or video and related signals using infrared radiation". Part 8-1 (2003) specifies digital audio systems "with sub-carrier of the frequency ranges 3 MHz to 6 MHz".
  • Wi-Fi over light: IEEE 802.11bb-2023, "Amendment 6: Light Communications", modifies the 802.11 physical and MAC layers for operation "over the light in the 800 nm to 1000 nm band" (about 375 THz to 300 THz). It specifies throughput from 10 Mb/s up to 9.6 Gb/s. The SIS catalogue now lists the amendment as superseded.

Optical emanations: when light leaks information

In 2002, Joe Loughry and David Umphress showed that the LED status lights on data equipment can carry the data itself. They sorted indicators into three classes:

ClassWhat the light showsInformation to an observer
Class IThe state of the device. Unmodulated: on or off.Low (at most one bit)
Class IIThe activity level of the device or channelMedium
Class IIIThe content: a modulated signal strongly correlated with the data being sent or receivedHigh

They tested 39 devices with 164 LED indicators. Class III emanations were present in 36% of the devices, and data could be read from them at a distance of at least 20 m. In the laboratory they recovered error-free data at up to 56 kbit/s. They suggested the physics should keep working up to about 10 Mbit/s, which is where typical LED response times set the limit. Their fix keeps the LED useful: a pulse stretcher that holds the LED on for more than 1.5 unit intervals of the data rate turns a Class III indicator into Class II. Black tape also works, but they called it "inelegant".

A model of the Loughry and Umphress result. The serial line sends "RFos.net" as asynchronous characters (start bit, eight data bits, stop bit). The activity LED lights during 0 bits. A distant observer sees it through noise and a slow detector, then decodes by sampling in the middle of each bit (dashed line: decision threshold). With direct drive the text comes out. With the pulse stretcher, the LED still shows activity, but short 1 bits between 0s are filled in and the text is lost.

Screens

Markus Kuhn (University of Cambridge, 2002) showed that a CRT monitor's light, measured over time, is the video signal smeared by the phosphor's afterglow. With a fast photosensor and deconvolution he reconstructed readable text, even from light diffusely reflected off a wall. His conclusions set the limits. Shot noise from background light is the critical factor, so the attack only works in fairly dark surroundings (around late twilight, about 1 lx), and even then at less than "a few tens or hundreds of meters". Direct line of sight works better, even through frosted glass. He also expected liquid-crystal displays to carry much less risk, because their pixels react far more slowly than phosphors and most flat panels refresh a whole line of pixels at once.

Sound from light

  • Power-indicator LEDs (Glowworm): Nassi and colleagues recovered sound from the power-indicator LED of devices such as speakers, whose brightness varies with the sound being played. They report good intelligibility from 15 m and fair intelligibility from 35 m. They also note that many devices have no dedicated countermeasure.
  • Light bulbs (Lamphone): the same group used a remote electro-optical sensor to measure a hanging light bulb's response to sound in a room, from a bridge 25 m away.
  • Video of objects (The Visual Microphone): Davis and colleagues (MIT, SIGGRAPH 2014) partially recovered sound from high-speed video of objects such as a bag of crisps, a glass of water and a potted plant. The authors also describe using the rolling shutter of an ordinary camera.

Light into devices, and covert links

  • Light Commands: Sugawara and colleagues (USENIX Security 2020) aimed amplitude-modulated light at the opening of a voice-controlled device's microphone. The microphone turned the light into sound, injecting commands, at distances up to 110 m and from two separate buildings.
  • aIR-Jumper: Guri and Bykhovsky used the infrared LEDs of security cameras as a covert channel: out of an organisation at 20 bit/s per camera over tens of metres, and into it at over 100 bit/s from hundreds of metres to kilometres away.
  • xLED: Guri and colleagues used router LEDs to leak data from isolated networks at 10 bit/s to more than 1 kbit/s per LED.

The distances and rates above are each research team's own results, measured under their own conditions.

Countermeasures

  • Cover or remove the light path. Loughry and Umphress note that optical emanations are easier to contain than RF: opaque materials shield them effectively, and tape over an LED works.
  • Design the indicator properly. Use a pulse stretcher so the LED shows activity, not data. Switch status displays off when not in use, or use slower display types (Loughry and Umphress).
  • Lighting and display choice. Kuhn's attack on reflected light needs dark surroundings, although direct line of sight works even in office light. In his assessment, flat-panel displays greatly reduce the risk.
  • Treat line of sight as a path. Loughry and Umphress point out that equipment racks with LED indicators are often in view through lit office windows in the evening.

Law and ethics

The Wireless Telegraphy Act 2006 defines "wireless telegraphy" in terms of electromagnetic energy "of a frequency not exceeding 3,000 gigahertz" (s.116(2)). Infrared and visible light are at hundreds of terahertz, far above that. Whatever law applies, trying to recover information from someone else's equipment, or listening in on a room, is a serious privacy intrusion and may be an offence. The research above was done on the researchers' own equipment. See UK law & ethics.

Sources

References, standards and the open-source software used to generate and verify the signals on this page are listed on Sources & credits.

Cite this resource

Harvard (UK) and BibTeX citations for this page are generated here when JavaScript is enabled.