How to hunt for Backdoors in Private Inference
Inference providers have been the focus of a recent wave of AI-assisted exploits and research. It's a good moment to look at their security, especially for those of us watching the rollout of private inference among them. Is the use of TEEs, like Intel TDX and NVIDIA's confidential computing mode, helping?
Recent headlines are unfortunately troubling. In HD Moore's widely covered canary campaign, which planted fake secrets in prompts sent to AI providers and watched for anyone who used them, revealing a breach or misuse, OpenRouter disconnected three providers, apparently AtlasCloud, GMICloud and Phala. Phala runs only TEE-based private inference, so TEE providers are overrepresented in this small sample: together they carry 0.5% or less of the roughly 25 trillion tokens OpenRouter processes each day.
While alternative inference providers like Phala, NEAR AI and Venice make TEEs a differentiating feature, private inference is also gaining adoption at the leading labs: OpenAI said in November that it is testing private inference, following earlier white papers from OpenAI and Anthropic. It builds on confidential computing from chip makers like Intel, AMD and NVIDIA, which lets a provider produce certificates (attestations) that say exactly which code is running. A client can check them before sending a prompt, and outside auditors can review them later.
For Phala and others, the TEE is more than security: it's how they give proactive evidence that they have stood by their zero-data-retention (ZDR) policy. In essence, private inference is designed to give a self-evident technical guarantee that a policy is followed, written into open source code that the attestation certificate matches, so the provider doesn't have to be trusted.
The OpenRouter delisting matters to Phala's private inference business, because OpenRouter sent most of its traffic: about 40 to 75 billion tokens a day in the month up to 11 November, and nothing after that date. Used properly, the TEE should have stopped the exploit HD Moore's study uncovered. It's probably unsurprising that a TEE only helps if it's used, and it turns out the breached server was running in a developer bypass mode. The attack also needed a perimeter breach in systems outside the TEE's protection, specifically Phala's monitoring dashboard. In fact, similar problems, where Phala's production traffic passed through software left in development bypass mode, had been reported before, by Steve Phillips, an open source developer known for CrypTag, encrypted cloud storage he presented at DEF CON.
Phala isn't the only private inference provider to suffer an active exploit in vulnerable software while the TEE did its job. NEAR AI has also reported an actively exploited vulnerability whose root cause was a flaw in code inside the TEE: SGLang, an open source dependency it uses to serve models. SGLang's weight-update route turns data it is sent back into running code, which is why that route is meant to sit behind an admin password; NEAR's configs never set one, so it was open to anything that could reach it. Between 6 and 8 November an attacker reached one of those admin routes through a second bug, in NEAR's own proxy, which let an outside request through, and ran malicious code.
An ad hoc approach to auditing leaves backdoors in plain sight
Software vulnerabilities hiding in plain sight are a recurring theme in TEE deployments. The software ecosystem is not very systematic. Apart from zkSecurity's 2025 audit of dstack, which underlies NEAR AI's and Phala's stacks and so Venice's E2EE as well, there have been no professional audits of this software. Furthermore, none of the private inference providers we’re aware of have a bug bounty program that covers them.
Still, problems do get reported, usually by volunteer auditors working from the open source code and the attestation evidence the hardware produces.
To hunt for backdoors, the basic method is to retrieve the attestation evidence and look for a gap in the attestation chain, or in the "trusted computing base": a place where the host configuring the system could change what runs, or what it can reach, without the attestation showing it.
teemoon, a company that makes an Android client app for NEAR AI, has published a review of every NEAR AI image since July, dozens in all. They very nearly caught this one. As early as August their reviews flagged that the SGLang control routes required no password, and in September that only NEAR's proxy stood between those routes and outside requests. They missed the two steps the attacker used: a route that could run code, and a flaw in the proxy that let an outside request through. teemoon's own incident page notes that its audits "recorded the open door and missed both steps of the chain".
A security researcher KTibow, who writes a blog series tracing which provider actually serves the models that inference services resell, reported a backdoor surface in Venice's end-to-end encryption that undermines its zero-data-retention claims. Venice uses a format NEAR AI designed and Phala kept as its legacy path, in which the key the answer gets encrypted to travels as a plain header outside the encryption. Venice's own server rewrites that header on every request, so an insider, or whoever breaches Venice's servers, could swap in their own key and read the answers.

KTibow's thread on X, 25 November.
Not only was this around for a long time, but the flaw KTibow reported had been missed by four volunteer reviews since March, all of which looked at the same code. They included mine; two by Juraj Bednar, a Slovak cypherpunk and founder of the Paralelná Polis hackerspace, an audit of the local proxy he built to encrypt Venice requests end to end and a blog post explaining it; and the documentation of teep, a verifier built by Mike Perry, long a Tor developer, and Bradley Erickson to check that AI providers can't read your prompts.
After finding a backdoor, there's no real outlet, which leaves researchers to clamor for attention on their own channels. After KTibow's thread, Venice's founder rebuked it, saying no vulnerability had been demonstrated and calling KTibow's video "a marketing video not a responsible disclosure". NEAR AI and Phala responded with technical fixes, NEAR, which had shipped a fixed format in October, proposing to retire the old ones and Phala proposing a new one, while Venice edited the wording of its documentation. VVV, the token associated with Venice AI, dropped about 9% within a few hours, retracing half of a rise the preceding day.

KTibow, Venice founder Erik Voorhees, and KTibow again, 26 November.
Bug bounties should cover insider attacks and backdoors
As mentioned, none of the providers seems to have a bug bounty that covers these systems. It isn't clear whether vulnerabilities that only insiders can exploit would count. Companies often deprioritize attacks that require insider access, because insiders are trusted in practice, even when the TEE is there as an extra defense. Hopefully providers adopt more of these practices in the future, including bug bounties that make room for insider attacks.
In many ways, insider attacks should be treated differently from others. Venice's founder, Erik Voorhees, argued the finding should have been reported privately first. KTibow's answer was that the insiders you'd report to are exactly the ones who could take advantage of it. That's the principle I've followed in my DevProof audits guide, filing these issues publicly as I encounter them.
Providers can do better at leaving records and at talking to each other
Communication between providers might help. The flaw KTibow reported in Venice had already been filed against NEAR AI's own format in September.
Observatories are especially patchy: few keep attestations, reference values (source code, configuration settings, reproducible builds) or logs of settings over time. Systems could be designed to leave a better trace: signed receipts that name the key each answer was sealed to, and public records of which machines a gateway admitted. Today the closest thing is volunteers saving what changed, like the dated log zoan37 kept of the documentation and models Venice changed after KTibow's post.
The closest thing kept by a provider is Maple's AI privacy timeline, a sourced log of 193 policy changes, breaches and regulatory actions since December 2022, each tied to one primary source and a verification date. It already lists NEAR AI's and Phala's November incidents, but it records what companies announced, not attestation evidence anyone could recheck. I have been setting up an observatory that keeps the attestation evidence and code changes over time.
Perhaps OpenRouter could play a big role by enforcing checks as a client. If OpenRouter were TEE-aware, its integration could require that the attested software matches, for example that development mode is turned off. Today it doesn't distinguish providers whose software is available for audit, though its grant to KTibow is a good sign.
The private inference cohort could also do better by pooling resources. NEAR AI, Phala and Venice already share dstack, and Venice copied NEAR's encryption format, so a fix reviewed once could ship to all three. Others, like Tinfoil and Chutes, are entirely separate stacks, although also open source.
That kind of cooperation isn't happening yet. In their blogs and official pages since January 2025, about 480 posts in all, the providers name each other almost only to announce an integration: NEAR AI, Phala and Venice cite each other as partners, while Tinfoil, Privatemode, Chutes and Confer never name a private-inference peer at all. Other than Maple's privacy timeline, no provider blog post discusses another provider's security incident.
When they did engage each other after KTibow's post, it was on X, and it looked more like the start of infighting. Maple's CTO told Phala and NEAR AI to "get a handle on your hacks and flawed TEE designs", and Phala's co-founder, answering an investor's AI-agent audits that scored every provider against Tinfoil, said he would call out "anyone who uses AI to manufacture FUD".
If the private inference providers don't do a better job at software, they'll squander the opportunity. Used to their full potential, TEEs can help them compete with frontier labs: they can offer much more detailed policies, enforce them technically, and could enjoy more trust than the incumbents. The frontier labs now adopting private inference may well do it opaquely: the hardware still signs which code runs, but if the code and its fingerprints aren't published, outsiders can't tell whether it's the code the company promised. Users are back to taking the company's word on data retention, and the company keeps the discretion to follow its policy or not.
Appendix: private inference providers on OpenRouter
Tinfoil, Privatemode, Confer and Maple have no OpenRouter provider page.
We also had a program recheck this article's sources while running sealed on a Mac, using dsmack, so that its report can be verified as coming from that program unaltered. It fetched every link, found every quoted passage, reran the data scripts, and caught one rounding error in the NEAR AI figures, since fixed.
Sources
- Dan Goodin's November 2026 article in Ars Technica reports on HD Moore's canary campaign: arstechnica.com (archived copy). Dragos published its own write-up of the work: dragos.com
- OpenRouter announced on 21 November (US time) that it had removed three providers, without naming them, and Jordan Nanos identified them as AtlasCloud, GMICloud and Phala because their OpenRouter pages showed "0 models": @JordanNanos on X On 28 November we checked OpenRouter's published provider list and each provider's traffic, and both agree with his identification. Our data and scripts
- Each OpenRouter provider page has a chart of tokens processed per day, and on 28 November we added up those daily figures for all 124 providers in OpenRouter's published provider list: openrouter.ai The four TEE providers averaged 97 billion of 24.1 trillion tokens a day (0.40%) from 1 to 20 October, 141 billion of 27.4 trillion (0.51%) from 21 October to 1 November, and 53 to 62 billion of 36 to 40 trillion (0.13 to 0.17%) from 11 November. OpenRouter's homepage gives a figure of more than 800 trillion tokens a month: openrouter.ai (archived copy). Our data and scripts
- Sam Altman wrote on X on 25 November 2026, "We're now testing Private Inference" with "a small group of customers": @sama on X
- OpenAI's technical white paper "Private Safety Processing Overview" was published on 26 October 2026: openaiassets.blob.core.windows.net (archived copy)
- Anthropic published "Confidential Inference via Trusted Virtual Machines", written with Pattern Labs, on 18 June 2025: anthropic.com (archived copy)
- On 28 November we read the daily traffic chart on OpenRouter's Phala provider page: Phala averaged about 55 billion tokens a day from 1 to 20 October, 76 billion from 21 October to 1 November, 39 billion from 8 to 10 November, and zero from 11 November on: openrouter.ai (archived copy) Our data and scripts
- Phala posts a daily token count on X; on 24 October 2026 it reported "186.42 billion tokens over the past 24 hours", where OpenRouter's chart for Phala shows 157 billion for the same period: @PhalaNetwork on X and openrouter.ai (archived copy) Across eight of Phala's posts from 6 October to 5 November, taking each post to cover the 24 hours before it, OpenRouter's figure was between 0.73 and 1.05 times Phala's; the two counts are not defined the same way, so the ratio is approximate. Our data and scripts
- Phala's detailed incident report, published 23 November 2026, says the attacker logged into Phala's Grafana monitoring dashboard on 20 October, then reached the VM manager that controlled the machine and used the operator's own setup path to install an SSH login key. The report does not say how the attacker got the dashboard login: phala.com (archived copy)
- On 7 August 2026 Steve Phillips opened issue #119 on Phala's private-ai-gateway repository, reporting that the serving machine "runs a dev image (is_dev: true)", that is, a development build rather than the production one: private-ai-gateway issue #119 (archived copy). Phala replied the same day with a plan to move to a production image, and on 8 September Phillips confirmed "the production nologin image on every replica I can observe". As of 28 November the issue is still open, with two comments.
- Steve Phillips (elimisteve on GitHub: github.com/elimisteve (archived copy)) filed three issues on Phala's private-ai-gateway: #119 and #120 on 7 August (#120 was closed as fixed on 12 August), and #184 on 8 September, about end-to-end encryption keys shared across replicas, which has had no reply: private-ai-gateway issue #184 (archived copy) In #119 he writes that he found the problem "while building a third-party ACI client".
- In April I reported that RedPill's production models were running the development image, the first finding of my DevProof review of RedPill: devproof-audits-guide/DEVPROOF-REPORT.md (archived copy) By June those machines ran production images, as the June fleet table shows: devproof-audits-guide/fleet-inventory.md (archived copy)
- NEAR AI's security incident report, published 9 November 2026 and updated 25 November, says the attacker "exploited a remote code execution vulnerability in SGLang": near.ai (archived copy, taken before the 25 November update: archived copy)
- NEAR AI's deployment configuration at commit 132912c, made on 7 November 2026 at 00:32 UTC during the 6 to 8 November incident, starts the GLM-5.3 Flash inference engine with neither an API key nor an admin API key, and when we searched that commit on 28 November no production file set an admin key: cvm-compose-files/GLM-5.3-Flash-SGL-TP4-W4AFP8.yaml NEAR's own notes of 10 November confirm it: "Our engines run with no --api-key and no --admin-api-key": cvm-compose-files/glm53-v13-admin-key.md (archived copy)
- NEAR AI turned on OHTTP (Oblivious HTTP, a way of relaying requests) for all models on 16 April 2026: cvm-compose-files commit 912c8a3 (archived copy) The unchecked local (loopback) address in the OHTTP code dates from its first commit on 14 April and was replaced on 8 November: inference-proxy PR #342 (archived copy) An admin API key first appears in the deployment repository on 9 November: cvm-compose-files commit ab7eeee (archived copy) The 6 to 8 November window for the incident comes from that commit's note, while NEAR AI's report gives only 8 November.
- On 28 November 2026 NEAR's bug bounty listing on HackenProof showed seven live programs (NEAR Web, NEAR Protocol, NEAR Smart Contracts, NEAR Foundation Web, and three for NEAR Intents), and none of their scope pages mentions near.ai or NEAR AI Cloud: hackenproof.com (archived copy from October: archived copy)
- teemoon reviewed the SGLang image NEAR AI deployed (lmsysorg/sglang:v0.5.13.post1) on 3 August 2026, committing the review on 4 August, and rated as critical that its /configure_logging endpoint required no authentication, which it traced to the deployed command setting no key: audits/sha256-1c64fde976bdf0d56474a30bccbcfc19667e5b3ab34c826a534c9d6aaca41212.md (archived copy) teemoon's later incident page says the audits "recorded the open door and missed both steps of the chain": audits/2026-11-06-nearai-sglang.md (archived copy)
- teemoon's record of the NEAR AI SGLang breach, written 25 November 2026, says in its section on what the audits had recorded that they "recorded the open door and missed both steps of the chain": audits/2026-11-06-nearai-sglang.md (archived copy)
- KTibow's blog post "Venice is a DeepInfra+ wrapper", dated 25 November 2026, says "Venice and Phala can read your end-to-end encrypted prompts if they want to": kendell.dev (archived copy)
- KTibow's write-up links to the lines of Venice's documentation for its end-to-end encrypted TEE models, at commit 28d5757: api-docs/tee-e2ee-models.mdx and api-docs/tee-e2ee-models.mdx (archived copy) It also links to the code in Phala's gateway, at commit 9f3e693, that reads the client's key from the x-client-pub-key request header: private-ai-gateway/handlers.rs We re-read all three on 28 November.
- KTibow's full technical write-up links every claim to code pinned to a specific commit, and says "Whoever runs Venice's API can read the replies and inject messages": kendell.dev (archived copy) We saved a copy that was byte-identical to the live file on 28 November:
- My DevProof review of Venice, 24 April 2026, says "Venice does not see plaintext on the E2EE path": devproof-audits-guide/DEVPROOF-REPORT.md Juraj Bednar's audit of venice-e2ee-proxy, 6 August 2026, says "I found no vulnerability in the proxy or library that breaks E2EE confidentiality": venice-e2ee-proxy/SECURITY-AUDIT.md (archived copy) His Slovak blog post of 11 August says Venice's network and infrastructure see only encrypted text: juraj.bednar.io teep's end-to-end encryption audit checklist, in a commit from 25 March 2026, asks "whether additional authenticated data (AAD) is used": teep/08_e2ee.md (archived copy) Its gap document says Venice's servers "relay the encrypted content but cannot read it": teep/aci_gateway.md
- Erik Voorhees posted on X on 26 November 2026 at 05:26 UTC (the time is decoded from the post's ID) that "There has been no demonstrated vulnerability.": @ErikVoorhees on X We quote it as given in KTibow's write-up: kendell.dev (archived copy)
- Erik Voorhees replied to KTibow's video post on X on 26 November 2026 at 05:57 UTC (the time is decoded from the post's ID), calling it "a marketing video not a responsible disclosure": @ErikVoorhees on X
- NEAR AI's inference-proxy pull request #394, "Retire E2EE v1 and v2 field encryption", opened on 27 November 2026 at 05:24 UTC, would make the proxy return an error (HTTP 400) for requests using encryption versions v1, v2 or no version: inference-proxy PR #394 As of 28 November it is open with no comments. The fixed format, v3, had shipped on 28 October in inference-proxy commit 53d5041, "authenticate reply keys and enforce v3 field encryption": inference-proxy commit 53d5041
- Phala's private-ai-gateway pull request #657, "Add E2EE v2.1, a TypeScript client, and a migration guide", opened on 27 November 2026 at 05:15 UTC, contains the phrases "swap X-Client-Pub-Key to read replies" (the header that carries the client's public key) and "for teams running an API in front of the gateway": private-ai-gateway PR #657 As of 28 November it is open with no comments.
- On 26 November 2026 Venice changed only the wording of its API documentation, in pull requests #937, #938 and #939: api-docs PR #937 api-docs PR #938 api-docs PR #939
- KTibow's thread went up at 01:40 UTC on 26 November (the time is decoded from the post's ID): @KTibow on X In CoinGecko's hourly VVV/USD prices, VVV was at 30.12 at 02:00 UTC that day and 27.48 at 03:00, down 8.8%, after rising from 24.61 at 00:00 UTC on 25 November to 30.11 at 01:00 on 26 November, and it stood at 26.22 at 00:00 on 27 November. That the drop took back about half of the rise is our inference from the same price series. Our data and scripts
- My DevProof audits are published openly in the DevProof audits guide: github.com/amiller/devproof-audits-guide In May I posted my notes on Darkbloom's attestation gaps publicly instead of reporting them privately: @socrates1024 on X
- Issue #1061 on NEAR AI's cloud-api repository, "E2EE: authenticate the client response key in the request", was filed on 14 September 2026 and as of 28 November is still open with no comments: cloud-api issue #1061 (archived copy)
- zoan37's verification report on Venice keeps a dated timeline of changes, including the removal of the E2EE models and the deletion of "self-hosted" from Venice's docs on 26 November: zoan.space It was cited on Hacker News the same day: news.ycombinator.com
- Maple's AI privacy timeline, licensed CC BY 4.0, has data through 22 November 2026, and 74 of its 193 entries link to an archived copy of their source: maple.ai (raw data: maple.ai; archived copy from 24 October 2026, before the November entries: archived copy)
- The Private Inference Observatory's evidence page is at amiller.github.io
- KTibow's post says "a grant from OpenRouter helped with the research": kendell.dev
- We went through the providers' blog posts and official pages from 1 January 2025 to 27 November 2026 and classed each mention of another provider as a partnership, comparison, criticism, praise or incident report, and did the same for their posts on X, which show the same pattern.
- Anthony Ronning, Maple's CTO, posted this on X on 27 November 2026 at 15:26 UTC (the time is decoded from the post's ID): @anthonyronning on X
- Hang Yin, Phala's co-founder, posted this on X on 26 November 2026 at 21:20 UTC (the time is decoded from the post's ID), replying to David Gobaud's audits of Venice, Phala and NEAR AI: @bgmshana on X
- We read these figures from the traffic chart on each OpenRouter provider page in Chrome on 28 November, and fetched and saved the same data again that day. The saved data matches the October figures exactly; for 21 to 28 November it gives Venice 96, NEAR AI 26, Chutes 8 and Darkbloom 25 because 28 November was only a partial day, while 21 to 27 November gives Venice 97, NEAR AI 27, Chutes 9 and Darkbloom 26. Our data and scripts
- This is our inference from NEAR AI's daily OpenRouter traffic, in billions of tokens: 42, 53, 37 and 28 on 1 to 4 November; 22, 28, 32, 26 and 23 on 5 to 9 November; and 23, 25, 24, 31 and 32 on 10 to 14 November. Our data and scripts
- From 1 to 27 November, models with -TEE in their names carried 17.8 of Chutes's 20.7 billion tokens a day (86%) and about 96% of its requests, according to the usage statistics Chutes publishes, which we read on 28 November: api.chutes.ai Our data and scripts
- We averaged Darkbloom's daily traffic from its OpenRouter provider page: 12.5 billion tokens a day from 8 to 20 November and 25.8 billion from 21 to 27 November. Our data and scripts
- On 28 November we checked OpenRouter's list of its 124 providers, and none of Tinfoil, Privatemode, Confer or Maple is on it. Our data and scripts
- The reviewer's code, its signed report from the run of 28 November 2026, and instructions for verifying it are in the dsmack release sources-reviewer-2026-11-28, pinned to the commit that ran: dsmack/sources-reviewer