A side-channel attack is a method for stealing secrets from indirect signals produced by a system instead of from the protected data itself. Attackers look at timing differences, power use, cache behavior, electromagnetic emissions, or other physical leakage to infer sensitive information such as keys, passwords, or internal state.
This matters because software can be mathematically secure and still leak in practice. Cryptographic code is especially exposed: if one operation takes slightly longer than another, or if a device draws a different amount of power during key-dependent steps, an attacker may reconstruct the secret over many measurements. Defenders reduce this risk with constant-time coding, masking, noise generation, hardened hardware, and leakage testing. In real attacks, side channels are often used against smart cards, embedded devices, mobile chips, and poorly implemented cryptographic libraries.


