Course contentsShow
← Security
Lesson 2773 of 3,05252. Embedded and IoT SecurityFree lesson

Side-Channel Attacks: Timing and EM

Timing attacks exploiting execution duration and electromagnetic emanation attacks that reveal internal processing.

Side-Channel Attacks: Timing and EM

What You'll Learn

You'll learn how attackers exploit the timing of operations and electromagnetic emissions from hardware to extract secrets without breaking cryptographic algorithms directly.


The Core Idea

While previous lessons covered power analysis side-channels, two other powerful attack vectors exist:

Timing attacks exploit variations in how long operations take to execute. Cryptographic implementations that take different amounts of time based on secret data leak information through these timing differences. For example, if a password comparison stops early when it finds a wrong character, an attacker measuring execution time can deduce where the mismatch occurred—byte by byte.

Electromagnetic (EM) emanation attacks capture the radio frequency emissions that electronic components naturally produce during computation. Every transistor switch and data bus transfer creates electromagnetic signals that radiate from the device. By placing an antenna near a chip (or even from a distance), attackers can capture these emissions and correlate them with internal processing—potentially revealing cryptographic keys, data being processed, or control flow.

Real-World Examples

  • Timing: RSA implementations that use different code paths for squaring versus multiplication operations reveal the private key bits through timing measurements.
  • EM: Researchers have extracted AES keys by analyzing the EM emissions from smartphones and embedded devices during encryption operations.

Why They're Dangerous

Both attacks bypass all software-level protections. They don't need code execution or memory access—just physical proximity (for EM) or network access (for remote timing attacks).

Key Takeaway: Timing attacks exploit execution duration variations to infer secrets, while EM attacks capture electromagnetic radiation from hardware to reveal internal processing—both circumvent cryptographic strength by targeting physical implementation characteristics.