Mapping the audit surface of Private Inference
In my last post I reported on KTibow’s demonstration that Venice had a design flaw that could be used to read answers to prompts users believe are end-to-end encrypted. In other words, they spotted a backdoor.
Their post said that Venice’s “encryption is mostly for show.” On one hand, this is harsh and too dismissive of all the credible engineering effort that has gone into these designs. The relevant code path includes Venice’s integration with NEAR AI, which also serves Brave’s Leo assistant and shares a common software stack, dstack, with Phala.
On the other hand, flaws like these are actually pervasive across the private inference providers, and we should be doing much better.
It’s important to discuss now, because findings like KTibow’s are usually triaged along with the other security vulnerability reports, and regarded as lower severity because they can only be exploited by insiders. They rarely get attention unless they coincide with a security breach, as happened several times in November.
Zero data retention with publicly checkable receipts
Private inference uses technical measures to ensure that providers follow a zero data retention policy.
Volunteers and downstream integrators inspect the code that private inference providers publish, and that code changes constantly. The unofficial Awesome Private Inference Observatory I run saves attested records daily. Across these providers, the attested code changes on roughly one day in four to one day in three. A review of last month's version leaves plenty of new code to account for.
Auditors' work gets used in two ways. The first is proactive: a verifier, run by the client or by the gateway that forwards its requests to the provider’s machines, compares the configuration in the attestation against code that has already been audited, and refuses to send the prompt if it doesn't match. These acceptable configurations are called reference values. The second is retrospective: because attestations are kept in public records, anyone can work out later whether audited code was being served at the time.
Spotting gaps in the audit trail
What does it look like to spot a gap? Here is a fresh one I’m proud to have found, shared here as a case study (having filed it as cvm-compose-files #570 a few days ago). The figure below shows the deployment log of the small-models machine, gpu13, one of the five NEAR AI machines that serve Brave’s and Venice’s models. It runs several models, including GLM 5.3 Flash. NEAR AI's machines start and stop containers while they run, so working out what software was running means replaying that deployment log. It plays the role of the event log a dstack machine records in RTMR3, a hardware register that tracks software measurements.
I made this figure by parsing the deployment log signed by the compose-manager service on each machine and mapping its entries to configurations in a public repository. For NEAR AI's own images, signed build records in Rekor, Sigstore's public transparency log, connect the images to source commits. An auditor can follow a deployment through to the code it started.
While most of this software is open source and can be checked, this machine also runs Sage, a proprietary model from Levanto Labs, a startup that launched Sage's second version on 2 November and offers it through NEAR AI. Because Sage is proprietary, the audit trail stops there: its image is in a private registry, so we cannot obtain and review it.
Using a trusted execution environment (TEE) doesn’t require every component to be open source; proprietary code can be used if it is sufficiently isolated, or sandboxed. Sage is partly sandboxed: it has a separate network and a dedicated GPU. However, I spotted a gap: Sage can reach the certificate channel, the socket through which a container asks the hardware for an attestation quote. A filter on that channel passes those requests through unchanged, so Sage could impersonate the other models on that machine. Phala’s model machines have a similar gap: an admission proxy that sees every request runs privileged with the attestation socket (phala-inference-guard #11).
Public records like these also let us follow how providers patch. Phala says an attacker obtained the root key of its key management service (KMS), so it started a new KMS on 6 November and began moving machines to it. Its gateway’s public session list shows each machine’s root, and the investor David Gobaud’s audit, run with AI agents, found one still on the old one on 27 November, serving a Venice model. By 2 December none reported the old root. Migrating gradually was reasonable, since using the stolen key would also take an insider’s access to Phala’s network or encrypted disks.
Many gaps stay open long after they’re reported. Among the gaps in the figure below, NEAR AI has had at least one open every day since 14 September, Phala from 8 September to 1 December, and Chutes since 18 June. (In my experience, Phala and NEAR AI have both been responsive to reports I’ve made, including fixing several within days of seeing this draft.)
Fifteen known gaps across four providers, selected from public issue trackers and incident reports; not an exhaustive list. Each bar is a gap that a client could not check or that let the operator, or a component on the machine, misrepresent what was running. A bar starts when the gap is known to have been live, if a dated record shows it, and otherwise at its filing date. Ten of the fifteen were open on 2 December; the two Chutes findings have been open since 18 June with no reply on GitHub. Two were fixed only after being exploited.
- Reply key: NEAR's E2EE v3, merged 28 Oct and announced 27 Nov, binds it, but v1 and v2 are still accepted (retirement PRs inference-proxy #394, cloud-api #1469, open).
- Engine admin routes: teemoon's reviews recorded the missing password from 3 Aug; no issue was filed; fixed in cvm-compose-files ab7eeee on 10 Nov after the 6–8 Nov breach.
- Sage: first deployed on gpu04 on 21 Oct (cvm-compose-files #371), moved to gpu13 on 23–24 Oct.
- Phala development image: Phala's reply on #119 says the dev image was kept during the early deployment; replaced by the production image between 31 Aug and 1 Sep (observatory snapshots).
- Phala log endpoint: exploited 8–12 Oct, fixed in dstack v0.6.1 / v0.5.12 on 13 Oct.
- Chutes: #75 followed a live demonstration on 16–17 June of one customer's chute reading another's prompts from a verified enclave; Chutes said on a call on 18 Nov that fixes are on its roadmap. Another reporter filed the same key gap as e2ee-proxy #9 on 12 Sep.
- Venice: E2EE launched in March 2026 on NEAR's v1 format; KTibow published on 26 Nov; Venice has no public issue tracker, and its fix status is unclear.
Why don’t we agree on how to triage backdoors?
Researchers and providers also disagree about what counts as a legitimate report, and there isn’t yet a clear rule about what constitutes a high priority problem.
One way to express a standard programmatically is through a “verifier library.” Tinfoil, Phala and NEAR AI each provide such a verifier, which can be taken as a reference for integrating with their service and inspecting all the attested evidence provided. However, each first-party verifier library, perhaps unsurprisingly, “passes” its provider’s own service, despite the known gaps above. Alternative verifiers implemented by community members or downstream integrators often define and enforce stricter rules motivated by audits like the ones above. These include teep and Phala’s private-ai-gateway, which both cover several providers, Juraj Bednar's proxy for Venice, and Brave’s verifier library for NEAR AI.
Even when we agree on the best practice, deciding how and when to enforce it is a dilemma. A downstream integrator has to choose: reject a provider on the basis that it doesn’t meet the standard embodied by one of these verifiers, or make an exception and tolerate it despite the gap. It is clear, for example, that Brave’s verifier is not enforced by its own service. This library parses NEAR AI’s per-machine deployment logs and checks, among other things, that only NEAR AI’s pinned inference proxy can reach the dstack socket, the certificate channel described above. This rule actually already catches the Sage container issue reported above. In fact, Brave’s verifier pins exact software versions it last updated on 19 October. NEAR AI changed its machines two days later, so today the verifier passes none of the machines serving the model it checks.
Another reason it’s difficult to give a bright line rule is that confidential computing inherently relies on “trust anchors,” meaning parties or services that must be trusted for some task (hopefully limited and well-defined). In particular, we have to trust NVIDIA’s attestation service (NRAS) to vouch for the GPU, as well as the CPU manufacturer like Intel or AMD. Additionally, since physical attacks are outside the design spec for TEEs, we have to trust the machines’ physical security. As another example, we often decide to trust attested builds, such as those recorded in Sigstore’s Rekor log, to maintain a mapping of high level source code to compiled container images, when reproducible builds are infeasible. Using TEEs still earns us something, which is not having to trust the platform and application providers like NEAR AI and Phala.
We should have more observatories and bounties
There are no bug bounties covering insider-only attacks. Phala is the only private inference provider with a published bug bounty at all. It only pays for reports that show “clear, reproducible end-to-end impact in production” from researchers testing their own accounts, so a gap that only an insider could exploit presumably wouldn’t qualify.
Phala co-founder Hang Yin has said he will call out people using AI to manufacture FUD without doing their own homework. Anthony Ronning, Maple's CTO, replied that there was "a lot of gas lighting going on here", and that he had receipts going back to the start of the year on problems with dstack, Phala and NEAR AI.

What else could be done? Maybe a lesson from autoresearch and hillclimbing campaigns like those on Yukon, Eigen Labs’ platform for open research challenges, is that if we find the right way to express the problem, swarm power can be harnessed to solve it.
It’s generally impossible to demonstrate “backdoors” on a live system (such as a test network or canary network), because independent researchers inherently lack the insider access required. So, maybe something that would help is a “testbench for insider-exploitable attacks”, which would give reporters something to confirm their results against.
One thing we should do is encourage more retrospective analysis. NEAR AI's public deployment log keeps only seven days of entries, so I’ve started archiving those entries in the unofficial Awesome Private Inference Observatory. (It’s also possible that NEAR AI retains them privately and could provide them later.)
Another motivation for writing this post is to react to a planned change from NEAR AI. Its documentation schedules NEAR Direct for retirement on 6 December. Direct lets clients inspect an individual machine and refuse it before sending a prompt, as teep's Direct mode did. Once every request goes through the gateway, a client rejecting gpu13 will have to stop using NEAR AI or accept that its prompt may go there. Clients should not be discouraged from applying their own stricter policies. Phala's gateway already allows each request to name acceptable machines by session ID, forwarding only to those machines. NEAR AI should preserve that choice as it retires Direct, so integrators can act on their own verdicts.
Thanks to Mikerah Quintyne-Collins, Hang Yin and Rahul Saxena for comments on drafts of this post.