Home / Learn / Chiplets and Memory / Hardware Security Blocks in SoCs
On this page
Why hardware securityRoot of trustSecure boot and measured bootCryptographic acceleratorsTrue random number generatorKey storageIsolated executionDebug and lifecycle controlAttestationProtection against physical attacksSecurity for data in motionSecurity in AI chipsCertification and standardsBuilding or licensingCommon questionsRelated guidesHardware Security Blocks in SoCs: Root of Trust and More
A system-on-chip needs security hardware built in. The main blocks are a root of trust, secure boot, cryptographic engines, protected key storage, a true random number generator and controls over debug access. Together they establish that the chip is running genuine software, protect its secrets and isolate sensitive operations from everything else. Security built into hardware is harder to bypass than security added in software, and it has to be planned from the start of a design.
Why hardware security
Software can be modified. If an attacker gains control of the operating system, any protection that relies only on software running under that system can be switched off.
Hardware security blocks give a foundation that software cannot alter. They are fixed in silicon, often physically isolated from the rest of the chip and designed to resist tampering.
They address several needs.
- Authenticity. Ensuring only authorized software runs.
- Confidentiality. Keeping keys and sensitive data secret.
- Integrity. Detecting modification.
- Identity. Proving to others what the device is.
- Isolation. Separating trusted from untrusted activity.
Root of trust
A root of trust is the small set of functions that everything else relies on and that must be trusted because nothing can check it. It usually consists of:
- Immutable boot code in read-only memory, fixed at manufacture
- A unique device identity and keys, programmed during production
- Hardware to perform basic cryptographic checks
It is the first thing to run when the chip powers on. Every later stage is verified starting from here. If the root of trust is sound, a chain of verification can extend from it. If it is compromised, nothing above it can be relied on.
Secure boot and measured boot
Secure boot builds a chain of trust. The immutable code verifies the digital signature of the first stage of firmware before running it. That stage verifies the next, and so on up to the operating system. If any stage fails verification, the chip refuses to run it.
Measured boot records a cryptographic fingerprint of each stage as it loads. The record can later be presented to prove what software is running.
Related functions include:
- Anti-rollback. Preventing an attacker from loading an older version of firmware with known weaknesses.
- Firmware update with authentication, and recovery if an update fails.
Cryptographic accelerators
Cryptography is computationally heavy. Dedicated engines perform it far faster and with less energy than a general-purpose processor.
| Function | Typical algorithms | Used for |
|---|---|---|
| Symmetric encryption | AES | Encrypting data in transit and at rest |
| Hashing | SHA-2, SHA-3 | Integrity checks, signatures |
| Public-key operations | RSA, elliptic curve | Signatures, key exchange |
| Post-quantum algorithms | Lattice-based schemes | Protection against future quantum computers |
Hardware engines are also designed to resist attacks that software implementations are vulnerable to.
New designs increasingly include support for post-quantum algorithms. Chips have long lifetimes, and data encrypted today could be stored and decrypted later if quantum computers become capable enough.
True random number generator
Cryptography needs unpredictable numbers for keys and other values. A true random number generator derives them from physical noise in the circuit. Its output is checked continuously for quality and conditioned before use. Weak randomness has been the cause of serious security failures, so this small block matters more than its size suggests.
Key storage
Keys must be kept where software cannot read them.
- One-time programmable memory. Fuses that are set at manufacture and cannot be changed.
- Physical unclonable functions. Circuits that derive a unique key from tiny manufacturing variations in each chip. The key is not stored anywhere and is regenerated when needed.
- Key hierarchies. A root key is used only to derive other keys, so it is never exposed directly.
- Key management logic that lets keys be used for operations without revealing their values.
Isolated execution
Sensitive operations need an environment that the main operating system cannot reach.
- A dedicated security processor. A small, separate processor with its own memory that handles boot, keys and cryptographic services. It is isolated from the main processors.
- Trusted execution environments. Processor features that create a protected region for trusted code alongside the normal operating system.
- Confidential computing. Hardware that keeps a virtual machine’s memory encrypted and inaccessible even to the system’s own administrator.
- Memory protection units and bus firewalls that restrict which blocks can access which parts of the chip.
Debug and lifecycle control
Debug and test interfaces give deep access to a chip, which is necessary during development and dangerous in the field.
- Debug authentication. Access is unlocked only with valid credentials.
- Lifecycle states. The chip moves through stages such as manufacturing, deployment and end of life, with access rights narrowing at each.
- Protection of test features, since scan chains could otherwise be used to read out secrets.
Attestation
Attestation lets a chip prove its identity and state to a remote party. The chip signs a statement of what hardware it is and what software it has loaded, using a key rooted in its hardware. The other party checks the signature and decides whether to trust it.
This underpins confidential computing and device management in data centers. Industry standards define how components in a system, such as accelerators and network cards, authenticate themselves to each other and establish encrypted links.
Protection against physical attacks
Some attackers have physical access to the chip.
- Side-channel attacks observe power consumption, electromagnetic emissions or timing to deduce secret keys. Countermeasures include randomizing operations and balancing power use.
- Fault injection deliberately disturbs the chip, with voltage glitches or lasers, to make it skip a security check. Countermeasures include redundant checks and sensors.
- Tampering. Sensors detect abnormal voltage, clock frequency, temperature or physical intrusion.
The level of protection required depends on the product and the threats it faces.
Security for data in motion
High-speed interfaces can encrypt the data they carry.
- Network encryption at the link or network layer, performed inline at full speed.
- Encryption of PCI Express and CXL links, protecting data moving between components in a system.
- Memory encryption, so that data read from memory chips is unintelligible.
For chips that handle networking and storage, inline encryption is one of the heaviest security workloads and a major use of hardware acceleration.
Security in AI chips
AI accelerators have their own reasons to need these blocks.
- Protecting models. Trained model weights are valuable and may be confidential.
- Protecting user data processed during inference.
- Multi-tenant use. Accelerators shared among customers must keep them apart.
- Confidential AI. Extending confidential computing to accelerators so that data stays protected while being processed.
- Firmware integrity for a chip that sits at the center of critical infrastructure.
Certification and standards
Many markets require security to be independently evaluated. Schemes exist for cryptographic modules, for general security evaluation of products and for specific sectors such as automotive and payment. Meeting them affects design choices and adds time. Choosing security IP that has already been certified reduces both risk and effort.
Building or licensing
Security blocks are difficult to design correctly. Small mistakes can undermine the whole scheme, and resistance to physical attacks demands specialized expertise. Most chip teams license security IP, often as an integrated subsystem with a root of trust, cryptographic engines and key management, and with certification evidence.
Common questions
What is a hardware root of trust?
A small, protected set of hardware functions and immutable code that the rest of the system relies on to establish that its software and identity are genuine.
What is the difference between secure boot and measured boot?
Secure boot refuses to run software that is not properly signed. Measured boot records what was loaded so that it can be reported and verified later. Many systems use both.
Why not handle security in software?
Software can be altered by anyone who gains sufficient control of the system. Hardware security provides a base that software cannot change, and it performs cryptography much faster.