The NEAR AI Breach: When the AI Infrastructure Itself Becomes the Target
An attacker exploited a flaw in the SGLang inference engine to reach NEAR AI systems and agent data. Why confidential computing could not stop it.

Almost every AI agent story in 2026 cast the agent as the one doing the damage. The NEAR AI breach flips the roles. Here the agents and the people using them were on the receiving end, because the software that runs AI models had a hole in it.
Why it matters: companies are pouring money into protecting AI models with special hardware. That protection ends where the software running inside it begins.
Watch: this case in the documentary
The NEAR AI case has its own chapter in the WakeWill documentary. The player below starts there.
The full film follows 12 investigations. See every chapter.
What happened
NEAR AI is the AI product and infrastructure arm of the NEAR ecosystem. In early November 2026 an unauthorised party exploited a remote code execution flaw in SGLang, an open-source inference engine running on NEAR AI’s servers. An inference engine is the software that actually runs an AI model and answers requests.
From one compromised inference server, the attacker reached an internal system behind a previously deprecated “Private Chat” feature. NEAR AI says the attacker could have observed requests on November 8, and published its incident report the following Monday; The Block reported it on November 10.
What was exposed
According to NEAR AI’s report, as summarised by The Block:
- About 100 users: account details such as email addresses, names and, in some cases, plan and balance information.
- 18 agents on a legacy NEAR AI Agents deployment that did not run inside the confidential computing environment: their chat history, settings and logs.
- API keys for two cloud customers that had ended up in logs. These have been revoked.
The attacker could also have observed requests being processed on the compromised server, including confidential-mode ones. NEAR AI says it found no sign that stored Private Chat conversations or uploaded files were accessed.
Why confidential computing did not save it
NEAR AI runs inference inside hardware-protected enclaves, a technology meant to keep data private even from the people operating the servers. It is a real protection. But as NEAR AI itself put it, the enclave does not protect against “a vulnerability in the software running inside the environment”, and that is exactly what happened.
In other words, a locked room does not help if the person you let inside is the one who opens the window. The inference engine was trusted, and it had a bug.
What NEAR AI did
NEAR AI closed the unauthorised access and patched the flaw across all inference servers. It replaced affected credentials, revoked active sessions and administrative credentials and rotated agent tokens. It took Private Chat offline, completed a full forensic review, restored its cloud service after a pause and contacted affected users and agent owners individually. It also said it will apply the same security rigour to the inference software and surrounding services as it does to the enclave, and keeps its confidential inference code and configurations public.
Lessons for anyone hosting AI models or agents
- Treat inference servers as internet-facing applications. Patch inference engines such as SGLang, vLLM and others as fast as you patch web servers.
- Retire deprecated features completely. The attacker reached data through a feature that had already been deprecated but was still running.
- Keep secrets out of logs. Two customers’ API keys were exposed because they had been logged.
- Put every deployment on the same footing. The 18 exposed agents were on a legacy setup that did not use the protected environment.
- Know what hardware security covers and what it does not. Enclaves protect against the operator; they do not fix vulnerable code.
Key takeaways
- An attacker exploited a remote code execution flaw in SGLang to reach NEAR AI’s internal systems in November 2026.
- About 100 users’ account details, 18 legacy agents’ data and two customers’ API keys were exposed.
- Confidential computing could not help, because the vulnerability was inside the software it was protecting.
- AI infrastructure needs the same patching, logging and decommissioning discipline as any other system.
Read next: How OpenAI missed its rogue agent for a week · AI agents explained
This article was prepared with AI assistance and checked against the sources listed below.
Sources
Spotted an error or have more information? Contact the editor.