The recent disclosures from Microsoft highlight a troubling shift in how adversaries target the nervous system of modern AI deployments. Rather than focusing solely on the models themselves, attackers are now honing in on the control planes that orchestrate, configure, and connect these intelligent services. This trend underscores the growing value of the metadata, credentials, and integration points that sit beneath the surface of AI applications. As organizations rush to embed large language models into everything from customer support bots to internal analytics tools, the attack surface expands far beyond the visible API endpoints. The implications are significant: a compromised control plane can act as a springboard, granting intruders deep visibility into tenant configurations, model usage patterns, and even the ability to manipulate the behavior of downstream services. In this environment, traditional security perimeters that once protected web applications are insufficient. Security teams must adopt a more granular view, treating the AI control plane as a critical asset worthy of the same protection afforded to core identity stores or financial transaction systems.

Microsoft’s investigation uncovered three distinct but related intrusion patterns that illustrate how attackers chain together misconfigurations, software vulnerabilities, and lax host-level controls to gain a foothold. The first campaign targeted an exposed LiteLLM gateway, leveraging a pair of recently disclosed CVEs to achieve initial code execution. Once inside the gateway process, the adversaries probed the host environment for sensitive files, notably reading the environment variables of the init process to harvest provider API keys and database connection strings. With those credentials in hand, they queried the underlying PostgreSQL instance to extract virtual key mappings and model metadata, then proceeded to install cryptocurrency mining binaries and establish persistent access via SSH keys and scheduled cron jobs. The second incident involved the RAGFlow platform, where attackers performed SSRF-style reconnaissance before injecting a malicious Python hook into the application’s startup sequence. This hook silently harvested tenant‑specific LLM configuration details each time a new service was provisioned, allowing the threat actors to accumulate a trove of credentials without triggering obvious mining activity. The third case centered on Kestra, an orchestration tool whose authentication bypass flaw enabled unauthenticated users to craft and execute arbitrary workflows. By abusing the platform’s ability to run shell commands and access the Docker socket, the attackers gathered host‑level information, deployed XMRig for Monero mining, and stored exfiltrated data within Kestra’s own key‑value store.

Analyzing the LiteLLM episode reveals why API gateways have become such lucrative targets in AI‑centric architectures. These gateways sit at the intersection of external traffic and internal model services, often holding the keys to multiple LLM providers, vector databases, and authentication systems. When exposed to the public internet without adequate segmentation, they present a single point of failure that can cascade into broader credential theft. The attackers’ decision to read /proc/1/environ is a classic technique for extracting secrets that are injected into containers at launch time, bypassing the need to compromise application code directly. By pivoting from the gateway process to the hosted PostgreSQL database on Azure, they demonstrated how trust relationships between services can be abused when network policies are too permissive. The persistence mechanisms they employed—dropping disguised binaries in temporary directories, using fallback download URLs, and establishing outbound callbacks to attacker‑controlled infrastructure—highlight a mature playbook aimed at maintaining long‑term access while evading basic signature‑based detection. For defenders, this underscores the importance of treating gateway management interfaces as Tier‑0 assets, restricting them to private networks, and enforcing strict egress filters.

The RAGFlow intrusion, while lacking the overt cryptomining payload seen in the other cases, offers a different but equally concerning perspective on stealth and persistence. By focusing on SSRF‑style probing, the attackers first mapped internal endpoints and identified potential injection points without triggering alarms. Their subsequent modification of the application’s startup path to load a hidden Python hook is a textbook example of living‑off‑the‑land techniques: they used legitimate platform mechanisms to embed malicious logic that would survive service restarts and upgrades. Each time a tenant configured a new LLM service, the hook intercepted provider names, model identifiers, endpoints, and API keys, exfiltrating this data covertly. Notably, the absence of mining activity suggests the attackers’ primary goal was intelligence gathering—building a repository of credentials that could later be used for targeted supply‑chain attacks, model poisoning, or unauthorized inference at scale. This approach is particularly dangerous because it can remain undetected for extended periods, especially in environments that monitor only for resource anomalies rather than subtle changes to file integrity or startup scripts.

The Kestra incident demonstrates how orchestration platforms, when granted excessive host privileges, can become force multipliers for attackers. The critical authentication bypass (CVE-2026-49869) allowed an unauthenticated actor to create and launch arbitrary workflows, effectively turning the platform into a remote command execution engine. By inspecting the Docker socket that was mounted into the Kestra worker container, the adversaries gained visibility into other running containers, extracted environment variables, and enumerated host‑level processes. This information facilitated the deployment of XMRig, a widely used Monero miner, which consumed CPU resources to generate cryptocurrency for the attackers. Beyond mining, a subsequent workflow leveraged Kestra’s native key‑value store to hold encoded results, illustrating how attackers can abuse legitimate storage mechanisms for data exfiltration. The episode reinforces a core principle: any service that provides shell access or socket mounting must be treated as a privileged component, with strict controls over who can create workflows, what commands they can run, and which host resources they may access.

Looking across the three cases, several common themes emerge that should inform defensive strategy. First, attackers consistently sought to move from the initially compromised service to the host operating system or adjacent containers, exploiting excessive privilege assignments such as Docker socket access or overly broad service accounts. Second, the use of legitimate administrative features—cron jobs, startup hooks, workflow engines—for persistence shows that detection based solely on malware signatures is insufficient. Third, the attackers paid close attention to credential harvesting, targeting environment variables, configuration files, and database tables that store secrets needed for downstream model access. Fourth, they employed a range of evasion tactics, including disguising binaries as innocuous files, using temporary storage locations, and establishing fallback download channels to bypass simple blocklists. Finally, each incident highlighted the risk of exposing management interfaces to the public internet without network segmentation or strong authentication, turning a convenience feature into a critical vulnerability.

From a market perspective, these findings arrive amid explosive growth in AI infrastructure spending. Enterprises are investing billions in GPU clusters, managed model services, and custom tooling to integrate generative AI into core business processes. As the value of AI models and the data they process rises, so does the attractiveness of the surrounding control planes to financially motivated and espionage‑driven threat actors. The shift toward AI‑specific threats mirrors earlier evolutions seen in web application security, where attackers moved from defacement to data theft and ransomware once the underlying data became more valuable. Organizations that treat AI gateways as ordinary API proxies risk being blindsided by adversaries who understand the unique concentration of secrets and operational logic present in these layers. Consequently, vendors are beginning to offer specialized AI gateway products that incorporate deep prompt inspection, automated secret rotation, and integrated policy enforcement, but adoption remains uneven. Security leaders must now evaluate whether their current tooling provides the visibility and control needed to safeguard these critical components.

Practical steps to harden AI control planes begin with network architecture. Management interfaces for gateways, orchestration engines, and metadata stores should reside exclusively in private subnets, accessible only through jump hosts or zero‑trust access brokers. Public‑facing endpoints, if required, must be protected by web application firewalls that enforce strict rate limiting, bot mitigation, and request inspection. Authentication should rely on short‑lived tokens or mutual TLS, with privileges scoped to the exact set of operations each component needs. Secrets such as provider API keys, database passwords, and encryption keys must never reside in environment variables or plain‑text configuration files; instead, they should be pulled from managed secret stores like Azure Key Vault, AWS Secrets Manager, or HashiCorp Vault at runtime, with automatic rotation and audit logging. Database access should be limited to the minimum required permissions, and network policies should prevent lateral movement from the gateway to the data layer unless explicitly authorized.

Monitoring and detection play an equally vital role. Administrators should establish baselines for normal process execution within AI service containers and alert on deviations such as the spawning of shells, interpreters, or unexpected child processes. File integrity monitoring should cover critical directories—especially /tmp, /var/tmp, and application startup scripts—to catch unauthorized modifications like hidden Python hooks or dropped binaries. Access to sensitive pseudo‑files such as /proc/1/environ should trigger immediate investigation, as it is a strong indicator of credential‑harvesting attempts. Likewise, any container that attempts to mount the host Docker socket or engage in privileged syscalls must be flagged and reviewed. Outbound connections to known mining pools, unusual DNS queries, or repeated attempts to download executables from external sites should be blocked at the network level and generate high‑severity alerts. Finally, changes to authorized SSH key files or cron tables should be treated as potential signs of persistence mechanisms and investigated promptly.

Treating AI gateways as Tier‑0 secret stores reshapes how organizations approach policy and governance. This classification mandates that gateway administration be subject to the same rigorous controls applied to domain controllers, privileged access workstations, and primary credential vaults. Access to gateway management consoles should be limited to a small, vetted set of administrators, each required to use multi‑factor authentication and privileged access workstations. All configuration changes must be logged, reviewed, and ideally approved through a change‑management workflow that includes security review. Virtual keys used to authenticate to LLM providers should be narrowly scoped—granting only the specific model inference permissions needed—and rotated frequently, ideally tied to short‑lived tokens issued by an identity provider. Audit trails must capture not only administrative actions but also data plane events such as prompt submissions, model invocations, and response emissions, enabling correlation between anomalous admin activity and unusual model usage patterns.

Beyond technical controls, cultivating a security‑aware culture around AI operations is essential. Data scientists, machine learning engineers, and platform teams should receive training on the risks associated with exposing internal services, the dangers of hard‑coding credentials, and the importance of least‑privilege principles when designing workflows or automation scripts. Regular red‑team exercises that simulate attacks on AI control planes can help uncover hidden assumptions about trust boundaries and validate detection capabilities. Collaboration between security, DevOps, and AI product teams ensures that security considerations are baked into the CI/CD pipeline rather than bolted on after deployment. Furthermore, organizations should maintain an inventory of all AI‑related services, their dependencies, and the data flows between them, enabling rapid impact assessment when a vulnerability is disclosed in any component of the stack.

In conclusion, the Microsoft‑reported attacks serve as a wake‑up call that the security of AI systems cannot be an afterthought. By recognizing the control plane as a high‑value target, implementing network segmentation, enforcing strict secret management, enhancing detection capabilities, and treating gateway administration as a privileged function, organizations can dramatically reduce the risk of compromise. The actions outlined above are not merely theoretical; they represent concrete, achievable steps that align with emerging best practices and regulatory expectations for protecting sensitive AI workloads. As adversaries continue to refine their techniques, proactive defense and continuous improvement will be the keys to maintaining trust in AI‑driven services. Start today by reviewing your AI gateway exposure, tightening credentials, and establishing monitoring that looks for the subtle signs of host‑level manipulation—because the next attack may already be probing your environment.