Trust on bare metal: first credentials, measured boot, BMCs and the provider

On rented bare metal you start with less than you think: no metadata service, a BMC you don't fully control, a provider with physical access. Attest what you can, isolate what you can't, encrypt with keys they don't hold, and keep the most valuable keys elsewhere.

Read the briefing
About 3 min to read 5 drills

What to remember

  1. No metadata service means no free identity. A cloud hands a VM an identity. A bare-metal box has none until you give it one, so enrolment is your problem.
  2. Measured boot proves, secure boot blocks. Measurement records what ran, so someone can check it later. It doesn't stop anything by itself. Interviewers like this distinction.
  3. The BMC is a second computer with power over the first. It's often old, rarely patched and sometimes on default credentials. Treat its network as hostile.
  4. Name what you still trust. The provider has physical access. Saying so, and keeping the crown jewels elsewhere, is what an honest answer sounds like.
  5. A reused box has a past. Firmware and disks may keep something from the last tenant, and yours will reach the next one. Plan both directions.

The big picture

Bare metal gives you the latency and takes away the cloud's identity, isolation and audit plumbing. Whoever owns this layer has to rebuild what matters: machine identity, boot integrity, management-plane isolation and safe decommissioning, and be honest about what can't be rebuilt.

The mental model

You've rented a house. You can change the locks you can see, but the landlord still has a key to the basement, and the last tenant may have left something behind. Put valuables in a safe that isn't in this house.

In depth

Identity

A new box proves itself either with a one-time token bound to its serial, handed over at provisioning, or better, with its TPM's endorsement and attestation keys. It swaps that for short-lived credentials. Everything afterwards builds on this step.

Boot integrity

UEFI secure boot refuses unsigned stages. Measured boot records a hash of each stage in the TPM's platform configuration registers, so a verifier can compare what booted against what should have. Disk keys can be sealed so they release only if the measurements match. Whether a provider lets you do this varies a lot, so ask before you assume.

The BMC

The baseboard management controller can power-cycle, reinstall and sometimes read host memory, with its own network, firmware and bugs. Keep it on an isolated management network behind a jump host, change default credentials, keep firmware patched and log access. If the provider controls it, that's part of what you're trusting.

Disks and decommissioning

Encrypt disks with keys the provider doesn't hold, for example through a network-bound unlock such as Clevis and Tang, or a TPM. Then decommissioning means destroying a key rather than trusting a wipe. Ledger and snapshot data may not need encrypting. Keys and credentials do. Separate what's secret from what's only large.

Hardening a signing host

A separate user for the signer. mlock so key pages don't reach swap, no core dumps, ptrace off, seccomp filters, a minimal package set, no shell tools it doesn't need, and reproducible configuration so drift shows up. These stop mistakes and casual attackers. They don't stop root, so value caps and detection carry that case.

Myths and facts

Myth: Bare metal is safer because nobody else is on the machine.

Fact: You lose noisy neighbours, and you gain a provider with physical and firmware access, and previous tenants' leftovers.

Myth: Secure boot means the machine is trustworthy.

Fact: It means each stage was signed by someone on the allow-list. It says little about the firmware below it or what's running now.

Myth: If we wipe the disk, it's clean.

Fact: Wear levelling, spare blocks and firmware can keep data. Encrypt from the start, and destroy the key.

How pros do it

  • Enrol machines with attestation or bound one-time tokens, and never bake long-lived credentials into images.
  • Isolate BMCs on a separate network with logged access.
  • Encrypt secret-bearing disks with keys the provider doesn't hold.
  • Make host configuration reproducible, so drift is visible.
  • Keep the most valuable keys off rented hardware, and state that decision.

Questions people ask

How do you run validators safely on rented hardware at all?

Accept that the identity key must be hot on the box, and bound what losing it means: keep the withdraw authority cold and off the machine, keep little value on the identity, monitor for a second node using it, and be ready to rotate. The vote account's stake isn't reachable from the box if you've kept the withdrawer away.

Can you trust a provider's firmware?

Not fully, and you can't verify it completely. Choose providers on their practices, measure what you can, keep what's most valuable elsewhere, and state the residual risk out loud.

What about confidential computing on bare metal?

SEV-SNP or TDX can reduce trust in the host, if the hardware has it and you verify attestation yourself. I'd treat it as a real option to evaluate, with a latency and operational cost to measure. Only claim what you've actually run.

Further reading

Drills · 5

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Answer out loud

We run on bare metal from several providers. What's your root of trust when a provider hands you a box?

In short

Honestly, partly the provider: attest what you can with the TPM, encrypt with keys they don't hold, isolate the BMC, and keep your most valuable keys elsewhere.

What a strong answer does
  • Honest about trust: Names provider, firmware and BMC as trusted, and designs for it.
  • Mechanism: Attestation, disks encrypted with keys they don't hold, BMC isolation.
  • Bounds the damage: Keeps valuable keys elsewhere, so a compromised box has a bounded cost.
Why

There's no perfect answer, and the interviewer knows it. They want to hear what you'd verify, what you'd isolate and what you've decided you must trust, and that this shapes where you put valuable keys.

The common mistake

Claiming you can verify everything, or dismissing it as paranoia.

2 Pick the strongest answer

What's the difference between secure boot and measured boot?

  1. Secure boot refuses unsigned stages. Measured boot records hashes in the TPM, so something can verify what ran. One enforces at boot, the other gives evidence afterwards. They work well together.
  2. Secure boot needs a TPM, and measured boot doesn't. Measured boot needs somewhere trustworthy to store measurements, which is usually the TPM.
  3. They're two names for the same thing. Measured boot blocks nothing by itself.
  4. Measured boot encrypts the disk, and secure boot signs it. Measurements can gate a disk key, but they aren't encryption.
In short

Secure boot refuses unsigned code; measured boot records what ran in the TPM, so someone can check it later.

Why

Measurement only helps if something checks it: remote attestation, or a disk key sealed to expected values. Otherwise it's a record nobody reads.

3 Scenario: what do you do next?

An inventory finds BMC interfaces on a new provider's boxes reachable from the public internet, with vendor defaults on some.

Step 1. First move?

  1. Get them off the internet now, through the provider or a filter, and treat them as possibly already touched. Exposure is the urgent problem. Assume someone else scanned before you did.
  2. Schedule a firmware upgrade for next week. Patching matters, but they're open right now.

Step 2. They're isolated. What about the hosts?

  1. Change the BMC passwords, and carry on. It closes the door without checking who came in.
  2. Compare them against what should be running, and reprovision anything holding keys. Rotate those keys if there's any doubt. A BMC can reach the host. If you can't rule it out, don't trust keys that were there.

Step 3. How do you stop this happening again?

  1. Ask providers to be more careful. That isn't a control.
  2. Check it as part of accepting any box: an automated test of BMC reachability and credentials, before it holds anything. It's a gate rather than a reminder, and it catches the next provider too.
In short

Treat them as possibly already compromised: cut public access now, change credentials, patch, and check the hosts for tampering.

Why

The scoring is on assuming compromise when you can't disprove it, and on turning the finding into an automatic check.

4 Pick the strongest answer

You harden a signing host: mlock, no core dumps, seccomp, a separate user, ptrace off. An attacker gets root anyway. What have these controls done?

  1. seccomp blocks root from all system calls. seccomp filters a process's own calls. It doesn't restrict another root process.
  2. With no core dumps, the key can't be extracted. That removes one accidental path. /proc, ptrace and kernel access remain for root.
  3. Little against root, which can undo them or read memory. They stop accidents and lesser attackers, so value caps and detection must carry this case. Being honest about what hardening does is the signal.
  4. They keep the key safe: mlock stops root reading it. mlock keeps pages out of swap. Root can still read process memory.
In short

Very little against root, which can undo them or read memory; they stop mistakes and lesser attackers, so caps and detection must cover root.

Why

These controls still matter: most leaks are accidents, such as a core dump on a shared disk. But keeping a key from root needs a boundary below the OS, like an enclave or HSM. If you don't have one, say so, and bound the value instead.

5 Quick recall

What's the separate computer on a server's board that gives remote power and console control?

In short

The BMC, the baseboard management controller, spoken to over IPMI or Redfish.

Accepted

bmc · baseboard management controller · ipmi

Why

Its own network, firmware and bugs, with power over the host. Keep it isolated.

That's the last lesson in mission 06 Pick your next mission
Drill · Trust on bare metal
0:00

Loading…