Hardware and software you can check

7 min 5 sections 3 practice questions 8 sources cited

A pharmacist will not hand out medicine from a box with a broken seal, and checks the batch number against the maker's list. Devices and software can be checked in the same spirit: by a sealed starting point inside the chip, by a fingerprint no copier can reproduce and by a list of ingredients. No background is assumed. A security professional chooses these checks when buying and when accepting delivery, and knows what each one proves and what it does not.

By the end of this unit you will be able to:

  • Explain what a root of trust is, and how silicon and hardware roots of trust relate
  • Tell apart secure boot and measured boot, and say what the Trusted Platform Module does in each
  • Explain how a physically unclonable function gives a device an identity and helps expose counterfeits
  • Explain what a software bill of materials lists, what it is used for and what it does not show
  • Match each supply chain risk to the mitigation that answers it

Two hundred laptops on a pallet

An illustrative example

A secondary school takes delivery of 200 laptops for its pupils. They were bought through a reseller the school had not used before, because the price was lower. Several boxes have torn tape.

The network manager has a day to decide whether to hand them out. She cannot open 200 laptops and inspect the circuit boards, and she could not tell a changed chip from a genuine one if she did.

What checks could tell her, without opening a single laptop, whether they are genuine and unaltered?

Start from something that cannot be changed

Every check needs a starting point that is itself trusted. If the program that checks other programs could be altered, its answer would mean nothing. A root of trust is a component that is trusted without being checked, and on which every later check depends. It must therefore be small, reliable and very hard to change.

A hardware root of trust is a built into physical hardware, so that software cannot alter it. It typically holds a key that cannot be read out and a small fixed program that runs first when the device starts.

A silicon root of trust is a hardware root of trust built into the circuits of a chip when the chip is made. Silicon is the material chips are made from. The two terms describe the same idea; silicon names exactly where it lives. Examples include a security chip on a server's main board and a protected area inside a computer's main processor.

Checking each stage as a device starts

When a device is switched on, it boots: a short chain of programs runs, each loading the next. The firmware runs first. It starts the boot loader, a small program whose job is to start the operating system. The operating system then starts everything else. An attacker who changes any link in that chain controls everything after it.

Two techniques use the root of trust to protect the chain.

Secure boot
Each stage checks the of the next before running it. If a signature is missing or wrong, the device refuses to start that stage. It prevents.
Measured boot
Each stage takes a of the next and records it in a protected place before running it. The device starts either way, but the record shows exactly what ran. It detects.

The Trusted Platform Module (TPM) is a security chip, or a protected function inside the main processor, that stores keys and records boot measurements where software cannot rewrite them. In it holds the record. Another system can then ask the device to prove what it started with before letting it join the network.

Each start-up stage is checked before it runs

Each start-up stage is checked before it runsA chain from the root of trust through firmware, boot loader and operating system to applications. Secure boot's signature check can refuse a stage. Measured boot records each stage in the TPM, which a remote check can read.Root oftrustin the chipFirmwareruns firstBootloaderstarts the OSOperatingsystemstarts the restApplicationsSignaturechecksecure bootTPM recordmeasured bootRemote checkasks for proofrefuses unsignedproves what ranEach start-up stage is checked before it runsA chain from the root of trust through firmware, boot loader and operating system to applications. Secure boot's signature check can refuse a stage. Measured boot records each stage in the TPM, which a remote check can read.Root oftrustin the chipFirmwareruns firstBootloaderstarts the OSOperatingsystemstarts the restApplicationsSignaturechecksecure bootTPM recordmeasured bootRemote checkasks for proof
Read this figure as text

When a device starts, a short chain of programs runs, each loading the next. Trust begins in a root of trust built into the chip and is passed along one stage at a time. Secure boot prevents and measured boot records.

  1. The root of trust is fixed code and a key in the chip. It is trusted without being checked, so it must be small and very hard to change. It checks the firmware, then starts it.
  2. The firmware runs first. It checks the boot loader, then starts it.
  3. The boot loader is a small program whose job is to start the operating system. It checks the operating system, then starts it.
  4. The operating system starts the applications.
  5. Secure boot: each stage checks the digital signature of the next before running it. If a signature is missing or wrong, the device refuses to start that stage.
  6. Measured boot: each stage takes a hash of the next and records it in the Trusted Platform Module before running it. The device starts either way, but the record shows exactly what ran.
  7. Another system can ask the device to prove its record before letting it join the network.

Firmware also needs protection after start-up. Good practice is to protect it from unauthorised change, detect a change if one happens and recover to a known good copy.

A fingerprint the chip is born with

No two chips come out of a factory exactly alike. Tiny, random differences in manufacture make each one behave very slightly differently. A physically unclonable function (PUF) is a circuit added to a chip on purpose to turn those differences into a value. The value is the same every time it is read on that chip, and different on every other chip.

Because the value comes from the physical chip, it does not have to be stored anywhere, so it cannot be copied off a memory. It has two main uses.

  • Identity: the chip proves it is itself by answering a challenge in a way only it can, which lets a device be authenticated
  • Keys: the chip derives its own from the PUF each time it starts, instead of keeping a key that could be read out

Spotting counterfeits follows from identity. The maker reads each chip's response when the chip is made and records it, which is called enrolment. Later, anyone with access to that record can challenge a part and compare. A copy cannot give the right answer. A buyer cannot do this alone: it relies on the maker's enrolment record.

A list of ingredients for software

A software bill of materials (SBOM) is a formal record of the components used to build a piece of software and how they relate to each other. It works like the ingredients panel on food. The minimum data recorded for each component is set out in a 2021 United States government report.

  • Supplier name
  • Component name
  • Version of the component
  • Other unique identifiers
  • Dependency relationship: which component is included in which
  • Author of the data
  • Timestamp of when the data was assembled

Its main use is speed. When a weakness is announced in a widely used component, a buyer with SBOMs can find in minutes which of its products contain it.

An SBOM does not say whether a component is safe. It describes the software at one moment, while knowledge of weaknesses changes daily. It must be matched against separate, current vulnerability information, and it is only as accurate as whoever produced it.

Signed code, trusted channels and which check answers which risk

Code signing is the supplier putting a digital signature on software and updates, so that the device can confirm who released them and that nothing changed afterwards. Devices should install only updates that pass this check.

Where something is bought matters as much as what. An authorised channel is the maker itself or a reseller the maker has approved. The grey market is selling genuine-looking goods outside those channels, where counterfeits and tampered stock are far more common. Tamper-evident packaging is sealing that cannot be opened and closed again without visible damage.

Which mitigation answers which risk
RiskMitigationWhat it proves
Counterfeit partPUF identity checked against the maker's enrolment, and buying through authorised channelsThe part is the one the maker made
Firmware or boot software tampered with and measured boot anchored in a root of trustOnly signed code ran, or exactly what ran
Goods tampered with in transitTamper-evident packaging and inspection on deliveryThe box was not opened
Malicious or altered updateCode signing and checking signatures before installingWho released it, and that it is unchanged
Weak component inside softwareSBOM matched against current vulnerability informationWhich products contain the component

Common misconception

“Signed software cannot be malicious.”

A signature proves who released the software and that it was not changed afterwards. If the supplier's own build was compromised, harmful code is signed along with the rest.

A question, worked through

A water company is buying 500 control units for pumping stations. A recent audit found counterfeit parts in units bought from an unapproved broker. The maker offers chips with a physically unclonable function, enrols every chip at the factory and gives customers a way to check parts against its records.

Which control BEST addresses the risk the audit found?

  1. Verify each unit's PUF identity against the maker's records
  2. Require a software bill of materials for each unit's firmware
  3. Enable secure boot on every unit before it is installed
  4. Require tamper-evident packaging on every delivered unit
Decide on your answer, then open the reasoning
  1. The risk found is counterfeit parts, so the control must prove that each part is genuine.
  2. Rule out b: an SBOM lists software components. It says nothing about whether the hardware is genuine.
  3. Rule out c: secure boot checks signatures on the code that runs. A counterfeit unit can still run signed code.
  4. Between a and d: packaging shows that a box was not opened, but a counterfeit can be sealed as neatly as a genuine unit. Only the PUF check, against the maker's enrolment, proves each chip is the maker's.
  5. Choose a, and buy only through authorised channels as well.

Answer: A. Verify each unit's PUF identity against the maker's records

Choosing between good answers

A question is about proving a part is genuine and not a copy
choose a physically unclonable function checked against the maker's enrolment, with purchase through authorised channels.
A question is about stopping altered boot code from running
choose secure boot. Choose measured boot when the need is to record and prove what ran.
A question asks how to find which products contain a newly announced weak component
choose the software bill of materials.
An option relies on a signature alone to show software is safe
rule it out. A signature proves origin and integrity, not the absence of harmful code.

Try it

Follow software from its components to an installed update, and decide where signing, an SBOM and a boot check each catch a problem.

Loading the preview.

Check your understanding

3 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 3

A hospital asks each medical device supplier for a record of the software components inside the device, with each component's supplier, version and dependencies.

What is this record called?

What to remember

  • A root of trust is the trusted starting point for every check. A silicon root of trust is one built into a chip's circuits, and is a kind of hardware root of trust.
  • Secure boot refuses to run unsigned code; measured boot records what ran in the TPM so that it can be proved.
  • A physically unclonable function turns a chip's manufacturing quirks into an identity and a key that are never stored, and lets enrolled parts be checked against counterfeits.
  • A software bill of materials lists each component, its supplier and version and how components depend on each other. It does not say whether they are safe.
  • Code signing, authorised channels and tamper-evident packaging close the remaining gaps between maker and user.

Say it from memory

  1. What is a silicon root of trust, and how do secure boot and measured boot use one?

    A hardware root of trust built into a chip's circuits at manufacture: a trusted starting point that software cannot alter. Secure boot has each stage check the next stage's signature and refuse to run it if the check fails. Measured boot records a hash of each stage in the TPM, so what ran can be proved later.

    Read this part again

  2. What does a physically unclonable function do, and how does it help against counterfeits?

    It turns random manufacturing differences in a chip into a repeatable value unique to that chip, used for the chip's identity and to derive its key without storing it. The maker enrols each chip's response; a part can later be challenged and compared, and a copy cannot answer correctly.

    Read this part again

  3. What is a software bill of materials, what does it record and what does it not tell you?

    A formal record of the components in a piece of software and how they relate. Minimum fields: supplier, component name, version, other unique identifiers, dependency relationship, author of the SBOM data and timestamp. It does not say whether components are vulnerable; it must be matched against current vulnerability data.

    Read this part again

  4. What is the Trusted Platform Module, and what three things does good practice do for firmware after start-up?

    The TPM is a security chip, or a protected function inside the main processor, that stores keys and records boot measurements where software cannot rewrite them. Another system can ask the device to prove what it started with. Firmware is protected from unauthorised change, a change is detected if one happens, and it is recovered to a known good copy.

    Read this part again

  5. Which mitigation answers a counterfeit part, goods tampered with in transit, and a malicious or altered update?

    Counterfeit part: PUF identity checked against the maker's enrolment, and buying through authorised channels, not the grey market. Goods tampered with in transit: tamper-evident packaging and inspection on delivery. Malicious or altered update: code signing and checking signatures before installing.

    Read this part again

Sources