Microcode

Microcode (μCode or uCode) is utilized in modern CPUs to flexibly define how the instruction set architecture (ISA) is implemented by the hardware. Microcode data has two components: static data built into a ROM within the CPU and dynamic data stored within specialized RAM.
The microcode within the ROM can not be modified and is incredibly difficult to analyze. The process involves removing the integrated heat spreader (IHS), decapsulating the die with fuming nitric acid, chemical mechanical polishing (CMP), and plasma etching. Once exposed, a scanning electron microscope (SEM) can be used to image the bit array of the microcode ROM. [1]
Microcode patches can be loaded into dedicated RAM by either the firmware or operating system to dynamically update/replace parts of the microcode ROM. Patches are provided by the CPU manufacturer to firmware and operating system developers to fix bugs in the microcode ROM. The microcode RAM is smaller than the microcode ROM, meaning only a fraction of the microcode ROM can be replaced by a patch. [2]
The AMD microcode patch format has evolved over time. Encrypted microcode patches were first implemented in AMD CPU Families 14h, 15h, and 17h. The Family 14h microcode patches were released in both unencrypted and encrypted formats. Signed microcode patches are used on the 15h, 16h, and 17h families. Researchers at Google have thoroughly analyzed the signature and encryption algorithms used on Family 17h processors[3].