Skip to content
ContentLora

    Tip: press / anywhere to search.

    Explainer

    Side-channel attacks explained: from Spectre to GoFetch

    A side-channel attack steals secrets not by breaking the maths of a cipher but by watching how a real device behaves, through timing, power use or electromagnetic and acoustic emissions.[1] Spectre and Meltdown, disclosed in January 2018, used the CPU cache as such a channel to read memory that should have been off limits.[2] Later research reported leaks even from code written to run in constant time: through CPU frequency changes (Hertzbleed, 2022) and through a prefetcher on Apple chips (GoFetch, 2024).[3][4]

    Editor reviewedUpdated Explainer19 claims · 89% primaryPost-quantum cryptography and security, Next-gen computing hardware, Cybersecurity
    Reading level: 6 passages differ; the rest is the same for everyone.

    This page connects the cryptography and computing-hardware crash courses. It helps to know how CPUs work and how encryption works first. Attack findings described here are the researchers’ own reports unless an advisory body is named. Choose a reading level in each section.

    What a side channel is

    A cipher can be mathematically sound and still leak. A side-channel attack ignores the maths and watches the machine running it. NIST defines it as an attack enabled by information leaking from a physical cryptosystem, through things like timing, power consumption, and electromagnetic or acoustic emissions.[1]

    If a computer takes longer on some secret values than on others, timing it can give those secrets away. That is why defenders write code whose timing does not depend on secrets.[5]

    NIST’s glossary definition (from SP 1800-21B) covers leakage from a physical cryptosystem via timing, power consumption, and electromagnetic and acoustic emissions.[1] Microarchitectural attacks extend this to shared hardware state such as caches and prefetchers, which an attacker can probe through timing.[2][4]

    The standard defence: constant-time code

    The main software defence is constant-time programming. Code is written so that every operation takes the same time whatever the secret values are. It never branches or loops on a secret.[5] Hertzbleed and GoFetch, below, are reported cases where the hardware itself broke that assumption.[3][4]

    The constant-time paradigm forbids secret-dependent branches, loops and other control flow, and secret-dependent memory addresses, so that execution time is independent of secret operands.[5] Hertzbleed and GoFetch, below, are reported cases where hardware behaviour reintroduced secret dependence into code that followed the paradigm.[3][4]

    Spectre and Meltdown (2018)

    Modern processors guess ahead to save time. They start running instructions before they know those instructions are needed, then keep or discard the results once they know.[6] Spectre and Meltdown pull secrets out of the processor’s cache, a small, fast memory, using it as a side channel.[2]

    Spectre tricks a program into speculatively running steps it would never take in correct execution, which leak its secrets.[6] Meltdown let an ordinary program read the operating system’s protected kernel memory.[7] The Spectre researchers said the flaw was found in Intel, AMD and Arm processors used in billions of devices.[6]

    CERT/CC said operating system, microcode and some application updates mitigate the attacks, often with a performance cost, and that attacks from JavaScript in a web browser were possible.[8]

    CERT/CC’s VU#584653 (released 4 January 2018) describes both attacks as using the CPU cache as a side channel. Spectre is triggered by speculative execution from branch prediction, Meltdown by out-of-order execution.[2] Spectre induces a victim to speculatively execute operations that would not occur in correct execution and that leak data through a side channel.[6] Meltdown exploits out-of-order side effects to read arbitrary kernel memory from userspace.[7] Mitigations combined OS changes, microcode and application updates at a performance cost.[8] The Spectre authors argued that sound solutions need changes to processor designs and instruction set architectures.[9]

    Hertzbleed (2022): leaks through clock speed

    Processors constantly adjust their clock speed, a feature called dynamic frequency scaling. The Hertzbleed researchers found that on modern x86 chips this speed can depend on the data being processed. The same program can therefore take a different amount of time on different data, even if its code is constant-time.[10]

    They report extracting full keys for SIKE, an isogeny-based post-quantum key-exchange scheme, by timing it remotely, even though SIKE’s code was written to run in constant time.[3] (SIKE was later compromised by separate mathematical attacks, NIST notes.[11]) Their site reports that Intel’s advisory says all Intel processors are affected and that AMD’s lists several of its chips.[12] The paper appeared at the USENIX Security Symposium in August 2022.[13]

    The authors say Hertzbleed turns power side-channel attacks into timing attacks, even remote ones, via dynamic frequency scaling, whose behaviour they found to be data-dependent on modern x86 processors.[10] The team reports a chosen-ciphertext attack giving full SIKE key extraction through remote timing despite a constant-time implementation, and warns that in the worst case keys could be extracted from remote servers.[3] Vendor scope is as relayed on the project site from Intel and AMD advisories.[12] It was published at USENIX Security 2022.[13]

    GoFetch (2024): leaks through a prefetcher

    Apple’s M-series chips include a data memory-dependent prefetcher (DMP). This helper looks at data as it is loaded and, if a value looks like a memory address, fetches what it points to in advance. The GoFetch researchers report that this lets an attacker pull secret keys out of constant-time cryptographic code.[4]

    They report end-to-end key extraction from widely used encryption code, including OpenSSL Diffie-Hellman, Go’s RSA, and the post-quantum schemes CRYSTALS-Kyber and CRYSTALS-Dilithium, the bases of ml-kem and ml-dsa.[14][15] They ran the attacks on M1 chips and saw similar behaviour on M2 and M3. They found Intel’s Raptor Lake prefetcher robust to their attacks.[14] The team says it told Apple on 5 December 2023, 107 days before going public.[16]

    GoFetch exploits DMPs that dereference loaded values resembling pointers, so secret-dependent data produces secret-dependent memory accesses even in constant-time code.[4] Using chosen inputs, the authors report end-to-end key extraction against OpenSSL Diffie-Hellman, Go RSA, CRYSTALS-Kyber and CRYSTALS-Dilithium on Apple M1. They observed similar DMP behaviour on M2 and M3 and found Intel Raptor Lake’s more restrictive DMP robust.[14] Disclosure to Apple was on 5 December 2023; the paper appeared at USENIX Security 2024.[16]

    Why it matters for new cryptography

    NIST judges new algorithms partly on their implementation characteristics, not just on their security and speed.[17] In its current search for extra post-quantum signatures, NIST lists side-channel resistance as a desirable property.[18] It notes that one candidate, SQIsign, is hard to implement in constant time, and that partial leakage could enable attacks.[19] See NIST’s additional signature round.

    NIST’s evaluation of additional post-quantum signatures lists resistance to side-channel attacks among desirable properties.[18] For SQIsign, it notes that fully constant-time signing is challenging and that recent analyses show partial side-channel leakage could enable attacks.[19]

    Next in the crash course

    More in Post-quantum crypto

    Developing in AI & Computing

    Go deeper

    Questions readers ask

    What is a side-channel attack in simple terms?

    It is an attack that learns secrets from how a device behaves rather than from what it outputs. NIST lists timing, power consumption, and electromagnetic and acoustic emissions as characteristics that can leak.[1]

    What is constant-time code?

    Code written so that every operation takes the same time whatever the secret values are. It may not branch or loop on secrets, which hardens it against timing side channels.[5]

    How did Spectre and Meltdown work?

    Both used the CPU cache as a side channel. Spectre tricks a program into speculatively running instructions that would not run in correct execution and that leak data. Meltdown abused out-of-order execution to read kernel memory from an ordinary program.[2][6][7]

    Were Spectre and Meltdown fixed?

    CERT/CC said operating system updates, CPU microcode updates and some application updates mitigate them, often at a cost in performance. The Spectre authors argued that sound fixes need changes to processor designs.[8][9]

    Do side channels threaten post-quantum cryptography?

    They can. The GoFetch team reports key extraction from CRYSTALS-Kyber and CRYSTALS-Dilithium code on Apple M1 chips. NIST lists side-channel resistance as a desirable property for the post-quantum signatures it is evaluating.[14][18]

    Sources

    · 19 claims from 7 publishers

    Each numbered claim is a statement we checked against the sources listed with it. Tap a number in the text to see its sources in place.

    1. [1]

      NIST defines a side-channel attack as one enabled by information leaking from a physical cryptosystem, through characteristics such as timing, power consumption, and electromagnetic and acoustic emissions. confirmedas of 2026-11-22

      • Glossary: side-channel attack · NIST Computer Security Resource Center · Primary source · Definition (NIST SP 1800-21B) (retrieved 2026-11-22)
    2. [2]

      CERT/CC's January 2018 note says Spectre and Meltdown extract information from instructions executed on a CPU by using the CPU cache as a side channel; Spectre relies on speculative execution from branch prediction and Meltdown on out-of-order execution. confirmedas of 2018-01-04

    3. [3]

      The Hertzbleed team says it extracted full SIKE keys through remote timing even though the SIKE code was written to run in constant time, and that in the worst case such attacks could pull keys from remote servers previously believed secure. reportedas of 2022-06-14

      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Overview (retrieved 2026-11-22)
      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Overview (retrieved 2026-11-22)
    4. [4]

      The GoFetch researchers describe a microarchitectural side-channel attack that extracts secret keys from constant-time cryptographic code through data memory-dependent prefetchers (DMPs), which on Apple M-series chips act on data that looks like a memory pointer; the attack crafts chosen inputs so that pointer-like values appear only when a guess about secret key bits is correct. reportedas of 2024-03-21

    5. [5]

      Constant-time programming tries to harden code against side-channel attacks by making every operation take the same time regardless of its inputs, so code may not branch or loop on secret values or mix secret data with memory access patterns. reportedas of 2024-03-21

    6. [6]

      Processors execute instructions speculatively and later discard or commit the results. The Spectre researchers describe the attack as inducing a victim to speculatively perform operations that would not occur in correct execution and that leak confidential information through a side channel, and say vulnerable speculative execution is found in Intel, AMD and Arm processors used in billions of devices. reportedas of 2018-01-03

    7. [7]

      Meltdown exploits side effects of out-of-order execution to read kernel memory from an ordinary user program; CERT/CC says the attack allows reading kernel memory from userspace. confirmedas of 2018-01-04

    8. [8]

      CERT/CC says operating system updates, CPU microcode updates and some application updates mitigate Spectre and Meltdown, that the software fixes often hurt performance, and that attacks using JavaScript in web browsers are possible. confirmedas of 2018-01-04

    9. [9]

      The Spectre authors argued that makeshift processor-specific countermeasures are possible in some cases, but that sound solutions will need changes to processor designs and instruction set architectures. reportedas of 2018-01-03· interpretation

    10. [10]

      The Hertzbleed researchers describe a family of frequency side channels, based on their finding that the dynamic frequency scaling of modern x86 processors can depend on the data being processed, so the same program can take different time on different data; they say this turns power side-channel attacks into timing attacks, even remote ones. reportedas of 2022-06-14

      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Overview (retrieved 2026-11-22)
      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Overview (retrieved 2026-11-22)
      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · FAQ, What is the impact of Hertzbleed? (retrieved 2026-11-22)
    11. [11]

      NIST says SQIsign is resilient against the attacks on SIDH that broke the earlier isogeny-based key-exchange scheme SIKE, because it avoids the extra torsion-point information those attacks exploited. confirmedas of 2026-05-14

    12. [12]

      The Hertzbleed site reports that Intel's advisory states all Intel processors are affected and that AMD's advisory lists several desktop, mobile and server processors as affected. reportedas of 2026-11-22

      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Affected processors (retrieved 2026-11-22)
      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Affected processors (retrieved 2026-11-22)
    13. [13]

      The original Hertzbleed paper appeared at the 31st USENIX Security Symposium in August 2022. confirmedas of 2022-08-12

      • Hertzbleed Attack · Hertzbleed research team (project site) · Primary source · 2022-06-14 · Paper section (retrieved 2026-11-22)
    14. [14]

      The GoFetch team reports end-to-end key extraction from OpenSSL Diffie-Hellman, Go RSA decryption, and the post-quantum schemes CRYSTALS-Kyber and CRYSTALS-Dilithium, demonstrated on Apple M1 chips, with similar DMP behaviour seen on M2 and M3; it found Intel's Raptor Lake DMP robust to its attacks. reportedas of 2024-03-21

    15. [15]

      ML-KEM is derived from the round-three version of the CRYSTALS-Kyber KEM, and ML-DSA is based on CRYSTALS-Dilithium. confirmedas of 2024-08-13

    16. [16]

      The GoFetch team says it disclosed its findings to Apple on 5 December 2023, 107 days before public release, and the paper appeared at USENIX Security 2024. reportedas of 2024-03-21

    17. [17]

      NIST ranks security first, then cost and performance, then algorithm and implementation characteristics; to differ from existing standards, lattice-based entries had to offer a large performance advantage over Dilithium and Falcon, and non-lattice entries over SPHINCS+. confirmedas of 2026-05-14

    18. [18]

      NIST lists resistance to side-channel attacks, multi-key attacks and misuse among the desirable security properties for candidate signature schemes. confirmedas of 2026-05-14

    19. [19]

      NIST notes that SQIsign's signing procedure is mathematically intricate, which makes a fully constant-time implementation challenging, and that recent analyses show partial side-channel leakage could enable attacks. confirmedas of 2026-05-14

    Revision history (1)
    1. Page created.

    Created Nov 22, 2026. Last reviewed by an editor on Nov 22, 2026. Next scheduled review: Jun 14, 2027.

    Cite this page

    "Side-channel attacks explained: from Spectre to GoFetch." ContentLora, updated Nov 22, 2026. https://contentlora.com/explain/side-channel-attacks-explained

    Spotted an error? Suggest a correction or emailcorrections@contentlora.com.