---
description: "Attest a Verda Confidential VM on Intel TDX: verify TDX is active, run the tdx-attest helper, and verify quotes locally or with Intel Trust Authority."
revision_date: 25.11.2026
---

# CPU attestation on Intel TDX

The TDX module produces a **TDREPORT** containing MRTD (the firmware measurement), RTMR0-3 (firmware configuration, kernel, initramfs and command line), the TCB version of the TDX module, and a user-supplied nonce. The host forwards it to Intel's **Quoting Enclave**, which turns it into a **quote** signed with a key certified for that exact CPU by Intel's Provisioning Certification Service. The host only relays bytes and cannot alter or forge them: the signature chain ends at Intel's root certificate, not at Verda. The guest requests the report through the kernel's TDX guest driver (`/dev/tdx_guest` / configfs-tsm).

## Verify TDX is active

```console
$ sudo dmesg | grep -iE 'tdx: Guest|Memory Encryption'
[    0.000000] tdx: Guest detected
[    0.000000] Memory Encryption Features active: Intel TDX
```

## Run TDX attestation

Download the helper and run the self-check **inside the CVM, as root**. On its first run the helper adds Intel's public DCAP apt repository, installs `libtdx-attest`, `libsgx-dcap-quote-verify` and `libsgx-dcap-default-qpl` from it (no account needed), and points the verification library at Intel's public collateral service in `/etc/sgx_default_qcnl.conf`, keeping a `.bak` of any existing file. The instance needs outbound internet and `apt` the first time, exactly like `measure_boot.sh` on AMD.

- [tdx-attest](https://docs.verda.com/assets/confidential_compute/tdx-attest.py){:download="tdx-attest"}

Check the download before running it. Version 0.6.0 has this SHA-256:

<!-- regenerate with: shasum -a 256 docs/assets/confidential_compute/tdx-attest.py  (and bump the version above) whenever the tool changes -->
```console
$ sha256sum tdx-attest
01188c677bf79c769da47bbf38832f84f2574e39a048f2dca67c5911c208283b  tdx-attest
```

```console
$ chmod +x tdx-attest
$ sudo ./tdx-attest self-check
[ PASS ] - TDX guest: ENABLED
[ PASS ] - Quote: v4 TDX, PCK chain embedded, nonce bound
[ PASS ] - TD debug: DISABLED

[ PASS ] - Quote verified against Intel root (signature, PCK chain, CRLs, QE identity)
[ PASS ] - TCB status: OK  (advisories: none)
TEE TCB SVN          : 08030700000000000000000000000000
TDX module (MRSEAM)  : f40772d82608da5443887dd7247be3e0092927e62409a9bb8da98eaed9017704be075466a13d3ca30501000d69407495

Firmware (TDVF)      : /boot/OVMF.inteltdx.fd  sha384 2b9f519b400abf3e0003a090736dbc89cbd185fb8eee4d095d4a2ab3edf612c80c52d993d624b1504a9e027e128372b2
Kernel               : /boot/vmlinuz  measured sha384 19fc2880c1a79028...  MATCH on disk  (PE image hash, direct boot)
Initrd               : /boot/initrd.img  measured sha384 7d692aadadb19324...  MATCH on disk  (EFI stub, direct boot)
Cmdline              : initrd=initrd console=ttyS0 root=UUID=... ro net.ifnames=0 biosdevname=0 fsck.mode=auto fsck.repair=yes pci=realloc,nocrs  MATCH measured (LoadOptions)

MRTD                 : eff2f480219e7b692982f8bad9b4c3c91939014823d58395421e58061e3db1624ae294ee62f76881f4b0ebe24106145c
RTMR0                : 519866def24174ad737a4d7eba520c2c3b6a238e88dff57e7d4b14821aaa3017fc526779732406a78def408ada6a7ec9
RTMR1                : 27eede9c0b797520188d6d1bb0e159a11df01253c6e2e86381604cb8ca81a3ec72cfe0f3951b7ff4a719f9a038ab880a
RTMR2                : c11f865a8cb7041718553e6e3f5bc344b33f279dee18df006422a89efd04f0742c04bd13dd2607b241b53adabb78eb5c
RTMR3                : 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Event log replay     : MATCH

PASS: genuine Intel TDX guest, TCB OK, boot chain measured and consistent
```

Key fields to check in the output:

| Field | Expected |
|---|---|
| TD debug | DISABLED |
| Quote verified against Intel root | PASS |
| TCB status | OK |
| Kernel, Initrd | MATCH on disk |
| Cmdline | MATCH measured |
| Event log replay | MATCH |
| Final line | `PASS: genuine Intel TDX guest, TCB OK, boot chain measured and consistent` |

### TDVF

**TDVF** (Trust Domain Virtual Firmware) is the OVMF build for TDX guests and the only thing in **MRTD**. The host loads it at launch, so you can't bring your own: Verda pins one public build for all TDX instances. Unlike Ubuntu's `OVMF.inteltdx.ms.fd`, it has no Secure Boot, because your kernel and initramfs are measured into RTMR1 and RTMR2 instead of being signature-checked.

| | |
|---|---|
| Source | [verda-cloud/edk2](https://github.com/verda-cloud/edk2), branch `inteltdx` |
| Release | `verda-inteltdx-stable202605` |
| SHA-256 | `f17a622af0e60fc15b4630669dab372c7e1df2d266b60df1f6216f535b9095a6` |
| MRTD | `eff2f480219e7b692982f8bad9b4c3c91939014823d58395421e58061e3db1624ae294ee62f76881f4b0ebe24106145c` |

To verify it, download the `.fd` file from the [GitHub release](https://github.com/verda-cloud/edk2/releases/tag/verda-inteltdx-stable202605) and compare its SHA-256 with the table, or rebuild it with [`build-inteltdx.sh`](https://github.com/verda-cloud/edk2/blob/inteltdx/devenv_build/build-inteltdx.sh). The measured copy is also on your instance at `/boot/OVMF.inteltdx.fd`. Pin the MRTD in your reference file; it changes only with a new firmware release, announced here.

## tdx-attest commands and options

`self-check` is one of five subcommands. It and `quote` run inside the CVM as root; `verify`, `verify-ita` and `ita-nonce` run on whichever machine wants to check the quote.

Pin known-good measurements by passing a reference file with the registers recorded from a trusted build (`mrtd`, `rtmr0`-`rtmr3`, hex). A mismatch fails the check, and a misspelled key is reported as an error:

```console
$ cat reference.json
{"mrtd": "eff2f480219e...", "rtmr0": "519866def241...", "rtmr1": "27eede9c0b79...", "rtmr2": "c11f865a8cb7..."}
$ sudo ./tdx-attest self-check reference.json
...
Reference MRTD       : MATCH
Reference RTMR0      : MATCH
Reference RTMR1      : MATCH
Reference RTMR2      : MATCH

PASS: genuine Intel TDX guest, TCB OK, boot chain measured and consistent
```

Add `--json` to get every value and every event-log entry as JSON instead.

To convince a remote party, let them choose a nonce (hex, e.g. `openssl rand -hex 32`), bind a quote to it and send the envelope out. Without a nonce the tool still produces a quote but warns that it proves nothing about freshness:

```console
$ sudo ./tdx-attest quote <nonce-hex> att.json
wrote att.json (5247 quote bytes)
```

`att.json` holds the quote (base64, with its certificate chain, so it is self-contained and public) and the nonce. Its other fields, a SHA-384 of the instance's SSH host key, the hostname and a timestamp, are informational: the quote does not cover them.

Verify it on Ubuntu 20.04, 22.04, 24.04 or 26.04, the releases Intel's repository serves. No TD or Intel account is needed; run it as root once so the tool can install Intel's verification library. Pass the nonce you issued and, optionally, your reference file:

```console
$ sudo ./tdx-attest verify att.json reference.json --nonce <nonce-hex>
verify=ok  verdict=OK  collateral_expired=0
TD debug: DISABLED
BIND: matches (REPORTDATA at offset 568)
MRTD: eff2f480219e...
RTMR0: 519866def241...
RTMR1: 27eede9c0b79...
RTMR2: c11f865a8cb7...
RTMR3: 000000000000...
Reference MRTD       : MATCH
Reference RTMR0      : MATCH
Reference RTMR1      : MATCH
Reference RTMR2      : MATCH
envelope host_key_hash: 4e0c...

PASS: genuine Intel TDX quote, TCB OK, nonce bound, reference matched
```

`verify` exits `0` only if the quote checks out against Intel's root, the TD is not in debug mode, the nonce matches, the TCB verdict is accepted and every pinned register matches. Without `--nonce` it checks the nonce stored in the envelope, so compare that with the one you issued.

With an [Intel Trust Authority](https://www.intel.com/content/www/us/en/security/trust-authority.html) subscription, Intel can verify the envelope instead. The tool submits the quote, saves Intel's signed token as `att.ita.jwt`, verifies the token's signature against Intel's published key set for the region, and then applies the same checks as `verify` to the token's claims: TCB status, debug mode, the nonce and, if given, your reference file. This needs no library and works from any machine, including macOS. Pass the region your key was issued for:

```console
$ ITA_KEY=... ./tdx-attest verify-ita att.json eu reference.json --nonce <nonce-hex>
Token: signature verified against Intel's key set (kid ..., PS384), expires 2026-10-21T14:35:10Z
TCB status: OK [UpToDate]  (advisories: none)
TD debug: DISABLED
BIND: matches (tdx_report_data claim)
MRTD: eff2f480219e...
RTMR0: 519866def241...
...
Reference MRTD       : MATCH
Reference RTMR0      : MATCH

PASS: Intel Trust Authority token verified, TCB OK, nonce bound, reference matched
```

Add `--json` to print the verified claims as well. Instead of choosing the nonce yourself, you can let Intel issue one, so that the token itself carries the freshness proof: fetch it on the verifier, bind it in the CVM, then verify. The nonce is short-lived, so run the three steps together:

```console
verifier$ ITA_KEY=... ./tdx-attest ita-nonce eu ita-nonce.json
cvm$      sudo ./tdx-attest quote --ita-nonce ita-nonce.json att.json
verifier$ ITA_KEY=... ./tdx-attest verify-ita att.json eu
```

A token whose signature does not verify, that uses a non-RSA algorithm, or that is expired is rejected. The tool never follows a key location named inside the token; it only uses Intel's key set for the region you passed.

Options are set through the environment:

- `TDX_ATTEST_ACCEPT`: TCB verdicts to accept, default `OK`. For example `OK,SW_HARDENING_NEEDED` accepts a platform Intel marks with advisories. `REVOKED` and `INVALID_SIGNATURE` are always rejected; never add `OUT_OF_DATE`.
- `TDX_ATTEST_NO_SETUP=1`: skip the first-run install of Intel's packages (air-gapped instances or images with them preinstalled).
- `TDX_ATTEST_KEY_HASH`: replace the informational SSH host-key hash in the envelope with your own value.
- `ITA_KEY`: Intel Trust Authority API key for `verify-ita` and `ita-nonce`; pass the region it was issued for (`eu` or `us`). It is read from the environment only and never written to disk.

Exit codes: `0` passed, `1` usage or setup error, `2` the evidence did not pass.
