# Phala Intel TDX: Confidential Telegram Collection

Canonical page: https://phishdestroy.io/tgwitness/docs/phala/

See how a TgWitness collector runs in an Intel TDX confidential VM on Phala Cloud: chain of trust, six checks, TDX breaks, disk rollback and price.

[Project context and measured scale](https://phishdestroy.io/tgwitness/docs/reference/overview/)

[Documentation index](https://phishdestroy.io/tgwitness/llms.txt)

The highest of the three assurance levels. The collector runs in a confidential virtual machine whose memory the host cannot read, and the processor itself signs what runs inside. Anyone can check that signature against Intel's root, without trusting Phala, TgWitness or you.

**Intel**the only party you trust

**6 checks**from Intel's root to the collector key

**Offline**verify.py checks the quote without a network

**$0.06**an hour for tdx.small, about $44 a month

THE HOST CANNOT LOOK INSIDEIntel TDX

Someone with root on the host tries to read the confidential machine's memory and is stopped; the processor's quote goes to the verifier, who checks it against Intel's root. · PHYSICAL HOST · HYPERVISOR · root · on the host · Confidential VM · Collector and signing key · Memory encrypted · Processor signs a quote · Verifier · checks the TDX quote · Intel root · pinned in the verifier · TDX quote

Root on the host, the hypervisor and Phala's staff see only encrypted memory. What the verifier receives is a quote signed inside the processor, checked to Intel's root.

## Why

On a verified server the provider's log shows everything done through the API. It cannot show what someone with root on the physical host does: read the server's memory and its signing key, or change data before it is signed. Intel TDX closes that gap.

ORDINARY VIRTUAL MACHINE**The host sees inside**

- Memory, signing key included, readable by the host
- Disk a file the host can copy
- Which code runs: the collector's own account

INTEL TDX ON PHALA CLOUD**The host sees a sealed box**

- Memory encrypted and integrity-protected by the processor
- Disk encrypted, keys from Phala's KMS
- Which code runs: measured and signed by the processor

## The chain of trust

Every link is checked by the verifier itself. If one breaks, the result is a failure, not a warning.

01 / FROM INTEL'S ROOT TO THE COLLECTOR KEYWhat verify checks, in order

1. **Intel root certificate**Pinned inside the verifier; revocation lists and the platform's security level checked
2. **Certificate of this processor**Signed by Intel, so the quote comes from a genuine Intel processor
3. **TDX quote**Signed inside the processor, in production mode; the machine can be neither debugged nor migrated
4. **Measurements**Firmware, kernel and OS image equal the published dstack image; the compose equals the one the commit builds
5. **Collector key**The quote covers the collector's signed statement and the random challenge of this check

Five links, from a certificate Intel controls to the key that signs every record.

The same chain is checked offline by `verify.py` for every collector start recorded in the journal.

## The six checks

Choose what happened to the deployment and watch which check stops it.

02 / WHAT VERIFY MAKES OF ITCheck names from the report

1. `tdx_binding`The quote covers the collector's signed statement and this check's challengeThe quote does not cover this check's challenge: an old answer replayed
2. `tdx_quote`The quote leads to Intel's root, the platform is up to date, the machine cannot be debugged or migratedThe machine can be debugged: its memory is open to the host, so it is refused
3. `tdx_compose_hash`RTMR3, replayed from dstack's event log, equals the hash of the reported composeRTMR3 does not equal the reported compose
4. `tdx_compose`The compose is byte for byte the one the deployed commit buildsThe compose is not the one the commit builds: other code ran; Phala's log also shows the new revision
5. `tdx_identity`The quote comes from the deployed application and instance, with keys from Phala's KMS and an encrypted diskThe quote comes from another application or instance
6. `tdx_os`MRTD and RTMR0-2 equal the values computed from the published production imageThe measurements match a development image, which has SSH

RESULT**PASS**`exit 0`

All six checks pass: the published code ran in a sealed machine.

A failure is never softened into a warning. The full report also checks Phala's log of revisions, the tunnel and, with `--evidence`, every start in the journal.

## What it means for a court

SIGNED BY HARDWARE**How it was collected**

Intel hardware signs that this published code, at this commit, ran in a sealed machine that neither the hosting company nor the operator could read or change.

REPEATABLE**Anyone can check**

The standalone `verify.py` repeats the check offline, without a Phala account, a TgWitness server or trust in whoever produced the evidence.

SEALED REPORT**Time and signature**

The report carries a qualified EU time stamp, a second independent time stamp and the verifier's signature.

The attestation shows how the evidence was collected, not that what someone wrote in a message is true. What weight it carries is for the court or authority to decide.

## What it means for you

1. **Deploy from the panel****More tools → Extras → Server 24/7 → Confidential virtual machine · Phala Cloud**, with a Phala Cloud API key. Without a domain you get a quick tunnel.
2. **No way in, for you as well**There is no SSH and no console. You work through the panel; data leaves only as exports.
3. **Sign in inside the machine**Log in to Telegram by phone or QR code, so the session key is created inside.
4. **Leave the application as it is**A changed compose fails the report. Restarts are listed.

## What the trust rests on

TRUSTED**Intel**

The TDX module, the microcode, Intel's signing keys and the physical integrity of the memory bus. Nothing replaces them.

NOT TRUSTED, CHECKED

- **dstack**OS measurements rebuilt from the published image
- **TgWitness code**compose rebuilt from the commit, byte for byte
- **Phala Cloud**cannot read memory; any change is a new revision that fails
- **You**no SSH, no console; the Telegram key is created inside

The host still controls the network and the clock. Blocked traffic shows as gaps in the journal, and time comes from RFC 3161 time stamps, OpenTimestamps and drand.

## Who uses it

DSTACK**Open-source framework**

A project of the Linux Foundation's Confidential Computing Consortium, audited by zkSecurity and described in [arXiv:2509.11555](https://arxiv.org/abs/2509.11555). OpenRouter and NEAR AI build on it.

PHALA CLOUD**Hosting service**

Reports SOC 2 Type I and HIPAA compliance. Both concern how Phala runs its service; the proof does not rely on them.

## What if TDX is broken

Processor flaws are found and fixed with microcode updates; Intel then rates platforms without the fix as out of date. Suppose someone breaks TDX on the machine that runs your collector:

### They can

- Read the memory of a machine on that host, the signing key included
- Sign false new records from then on
- Produce quotes that look valid for new records

### They cannot

- Change checkpoints that witnesses already hold
- Move RFC 3161 time stamps or OpenTimestamps receipts
- Change copies already stored under S3 Object Lock
- Change what Telegram itself still holds
- Change the result of earlier quotes: each is rated as of the time it was recorded

A break reaches forward, not back.

## Rollback of the disk by the host

dstack encrypts the disk, but the host can put back an older copy of it; dstack acknowledges this limit. Checkpoints kept outside the machine catch it.

03 / AN OLDER DISK PUT BACKInvented record counts

JOURNAL ON THE MACHINE****128 records**

CHECKPOINT AT THE WITNESS****120 records**

COPY UNDER S3 OBJECT LOCK****128 records**

The journal, the witness's checkpoint and the locked copy agree.

The machine restarts from 96 records. The witness holds a checkpoint at 120, so the shorter journal no longer matches and is reported; the locked copy still holds all 128 records.

Run a witness and an off-site copy under Object Lock for every deployment on this level.

## Price

TDX.SMALL**$0.06 an hour**

1 vCPU · 2 GB. About $43.80 a month. The wizard's choice.

TDX.MEDIUM**$0.12 an hour**

2 vCPU · 4 GB. About $87.60 a month.

TDX.LARGE**$0.23 an hour**

4 vCPU · 8 GB. About $167.90 a month.

Disk costs $0.000139 per GB an hour, about $0.10 per GB a month, while the machine exists, stopped or running. Prices from [Phala's price list](https://phala.com/pricing) on 21 November 2026; the wizard shows the current price before anything is created.

## Technical reference

The six checks in detail, the command line, the offline `verify.py`, the sealed certificate and the live runs on Phala Cloud: [Phala Cloud and Intel TDX reference](https://phishdestroy.io/tgwitness/docs/reference/phala/). All three levels side by side: [assurance levels](https://phishdestroy.io/tgwitness/docs/assurance-levels/).
