Confidential computing is meant to let you send sensitive prompts to a model you don't host without trusting whoever runs the hardware. NEAR AI built its private inference service on that idea. This month an attacker got onto one of its inference servers anyway, through a flaw in the inference software running inside the enclave, and never had to break the enclave itself.
What Happened
On November 9, NEAR AI published its own incident report. An attacker exploited a remote code execution flaw in SGLang, the open-source engine that serves models on NEAR AI's servers. That gave them code execution on one inference server, and from there they moved into other internal systems. NEAR AI has not said which SGLang flaw was used.
By the company's account, the attacker downloaded account details (email, name and, for some accounts, plan and balance) for roughly 100 users from a system behind a deprecated chat feature. They also reached 18 agents on a legacy deployment that ran outside the trusted execution environment (TEE), retrieving their chat history, settings and logs. API keys belonging to two cloud customers had been written to logs, and NEAR AI revoked them. Requests passing through the compromised server on November 8, including ones sent in confidential mode, could have been seen. NEAR AI says it found no indication that they were, or that stored conversations or uploaded files were accessed.
NEAR AI revoked all sessions and admin credentials, replaced agent tokens, took the affected chat product offline, patched SGLang across its inference fleet, rotated the remaining credentials and reported the flaw to the SGLang maintainers. The company also said plainly what its TEE covers. Confidential computing keeps data away from the operator and the host machine. It does nothing about a vulnerability in the software running inside the protected environment.
The Cloud Security Alliance's research note on the incident adds context. A July CERT/CC vulnerability note described several SGLang flaws, including unauthenticated remote code execution, with no patched release available at the time. CSA is careful to say that no public source has tied NEAR AI's breach to any of those specific flaws.
Four Control Lessons
- The inference engine is part of what you trust: a TEE protects data from the people and systems outside it. Anything running inside, such as the serving framework, its dependencies and its admin endpoints, is part of the trusted computing base. If that code is exploitable, the enclave protects the attacker's session as well as the user's data. Patch, harden and review inference software with the same care as the enclave.
- Legacy deployments sit outside the boundary you advertise: the 18 agents reached here ran on an older deployment outside the TEE, so the product's confidential-computing claim never covered them. Keep a current map of which services sit inside the protected boundary and which don't.
- Secrets in logs extend the blast radius: the two customer API keys were exposed simply because they had been written to logs on a system the attacker reached. Keep keys and prompts out of logs, and treat log stores as sensitive data.
- Least privilege applies to the serving process: one compromised inference node became a route into internal systems. CSA's recommendations include running the engine as a sandboxed, low-privilege process, removing admin and weight-update endpoints the service doesn't need, and giving each node only the credentials its job requires.
Questions to Ask a Confidential AI Vendor
For a security manager, most of the value here is in vendor due diligence. If a provider markets confidential or private inference, ask:
- Which products and features actually run inside the TEE, and which (logging, agents, older tiers) don't?
- Which inference engine and version are used, and how quickly are advisories for it patched?
- What does attestation actually check? CSA notes that AMD published two SEV-SNP advisories on November 10, one of them affecting attestation reports, with some platform firmware fixes still pending. Ask the provider to show the firmware and software versions that attestation enforces.
- What gets logged, and could a customer credential or prompt end up there?
Want to go deeper on how this domain is tested on the AAISM™ exam? The AI Security Management Prep App covers it across 307 practice questions, fully offline — free to download on Google Play.
Explore the AppRelated Reading
For the full exam breakdown, see the AAISM™ Certification Study Guide. For another case of a vendor's internal weakness spreading to its customers, see The Vercel Breach: An AI Vendor Risk Case Study and One Vendor, Three AI Breaches. On mapping AI-specific vulnerabilities to controls, see OWASP LLM Top 10, Explained for Security Managers.
Sources
NEAR AI — Security incident report: SGLang vulnerability
Cloud Security Alliance — Confidential AI under pressure: SGLang RCE and SEV-SNP attacks