MITRE ATLAS 2026.10 · AML.T0096 · High severity
AI Service API
Malware and threat actors abuse legitimate commercial AI service APIs (such as Assistants, Threads, or hosted inference endpoints) as stealthy command-and-control infrastructure, tasking relays, or dynamic payload generators that blend into normal enterprise SaaS traffic.
Technique dossier overview
- Category
- Infrastructure and access
- Severity
- High
- Attack surface
- Inference API & Hosting · Tool-Using Agents & MCP
- Framework maturity
- Realized
- Platforms
- Predictive AI, Generative AI, Agentic AI
- Tactics
- Command and Control
- Catalog entry modified
How the mechanism works
- Threat actors embed an attacker-controlled API key and assistant/thread identifier inside a backdoor or compromised workflow.
- The implant polls the legitimate AI provider's HTTPS API to fetch encoded commands stored in assistant instructions, vector stores, or thread messages.
- Execution outputs are posted back to the same commercial AI thread, bypassing traditional domain-reputation and firewall blocks.
Detection & telemetry signals
- Non-browser workstation processes or background services calling commercial LLM API endpoints using non-corporate API keys.
- Periodic fixed-interval polling patterns to assistant/thread read APIs lacking interactive user session correlation.
- API keys embedded in binaries or scripts authenticating to external vendor accounts outside organization SSO.
Architectural defensive countermeasures
- Enforce corporate TLS proxy inspection or centralized AI gateways that permit AI API calls only with approved organization tenant headers/keys.
- Restrict outbound internet access from production servers and high-sensitivity hosts to strictly allowlisted endpoints.
- Monitor endpoint process-to-network telemetry to detect unauthorized background executables communicating with AI SaaS APIs.
- Coordinate with AI API providers on abuse reporting when malicious keys or C2 threads are identified.
Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)
- OWASP LLM Top 10 (2025)
- OWASP rationale
- Abusing hosted AI threads as C2 relays facilitates covert data exfiltration (LLM02) and bypasses boundary controls around external AI connectors (LLM06).
- NIST AI RMF functions
- NIST AI RMF guidance
- MAP authorized enterprise AI tenants and egress gateways, and MANAGE covert API abuse by enforcing tenant-header validation at proxies and restricting server egress.
Mapped defensive controls
- Control Access to AI Models and Data in Production AML.M0019
Enforce deterministic runtime authentication, tenant isolation, and per-document RAG authorization outside the LLM context window for every inference and retrieval request.
- AI Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- Segmentation of AI Agent Components AML.M0032
Isolate agent planners, tool executors, code sandboxes, vector databases, and untrusted web browsers in separate trust zones with minimal shared credentials and zero lateral egress.
- AI Agent External Resource Lifecycle Management AML.M0043
Govern the complete lifecycle—vetting, version pinning, token rotation, retention limits, and revocation—of every external MCP server, SaaS integration, and agent sandbox resource.
Documented incidents & exercises (5)
- SesameOp: Novel backdoor uses OpenAI Assistants API for command and control AML.CS0042 · Incident · July 2025 · Critical · Enterprise Windows Infrastructure & Cloud AI
Disclosed by the Microsoft Security Blog in July 2025, SesameOp is a real-world backdoor malware family that abused the legitimate OpenAI Assistants API as a covert command-and-control (C2) channel. Rather than contacting suspicious attacker domains, the implant polled OpenAI's…
- Agentic Coding CLI Project-Level API Base URL Override Exfiltrating API Keys INC-2026-21852 · Incident · Jan 21, 2026 · High · Software Development & AI Tooling
CVE-2026-21852 (published January 21, 2026, disclosed by Check Point Research) revealed an API-key exfiltration vector in Claude Code caused by honoring project-level configuration overrides for outbound API endpoints (`ANTHROPIC_BASE_URL` or equivalent project settings). If a…
- Rabbit R1 AI Hardware Companion Hardcoded ElevenLabs and Cloud API Keys Leak INC-OBS-020 · Incident · Jun 25, 2024 · Critical · Consumer AI & Local Runtimes
On June 25, 2024, the reverse-engineering collective Rabbitude publicly disclosed that Rabbit Inc. had shipped hardcoded, high-privilege third-party API keys directly inside its `r1` AI companion codebase (initially accessed May 16, 2024). The leaked credentials included…
- OpenAI Sora Early-Access Tester Group Leaking API Proxy via Hugging Face INC-OBS-046 · Incident · Nov 26, 2024 · Elevated · Media & Publishing
On November 26, 2024, a collective of visual artists and filmmakers granted private alpha testing access to OpenAI's unreleased Sora text-to-video model published a working public front-end proxy on Hugging Face Spaces backed by their authorized authentication tokens.…
- Your Agent Is Mine: Empirical Audit of 428 Third-Party LLM API Routers OBS.EX0138 · Exercise · Apr 9, 2026 · 28 Paid & 400 Free Public LLM API Routers · Canary Credential & Injection Study
Liu et al. (2026) conducted the first large-scale empirical security measurement of third-party LLM API routers across 28 purchased paid routers and 400 free community proxies operating as plaintext intermediaries for tool-calling agents. Measurements identified 1 paid and 8…
Source citation records
- MITRE ATLAS: AI Service API · MITRE ·
- SesameOp: Novel backdoor uses OpenAI Assistants API for command and control | Microsoft Security Blog · Cited by MITRE ATLAS; publisher not independently verified
Common questions
- What is AI Service API (AML.T0096)?
- Malware and threat actors abuse legitimate commercial AI service APIs (such as Assistants, Threads, or hosted inference endpoints) as stealthy command-and-control infrastructure, tasking relays, or dynamic payload generators that blend into normal enterprise SaaS traffic.
- How do you mitigate AI Service API?
- MITRE ATLAS maps 4 mitigations to AML.T0096: Control Access to AI Models and Data in Production, AI Telemetry Logging and Monitoring, Segmentation of AI Agent Components, and AI Agent External Resource Lifecycle Management. Enforce corporate TLS proxy inspection or centralized AI gateways that permit AI API calls only with approved organization tenant headers/keys.