OMI Vulnerabilities Exposed 65% of Azure Customers Silently
OMI vulnerabilities silently exposed 65% of Azure customers. Discover how root-level agent risks impacted your infrastructure.
A Silent Agent Running on Thousands of Azure VMs
Imagine renting an office in a building and later discovering the landlord installed an unlocked back door you never knew about. That is essentially what happened with Microsoft's Open Management Infrastructure — a lightweight management agent quietly deployed across Azure virtual machines, carrying seventeen vulnerabilities that left over 65% of sampled Azure customers exposed.
The component is called OMI, and most Azure administrators had never heard of it. Yet it ran with root privileges on their Linux servers, listened on open ports, and in the worst case accepted unauthenticated commands from anyone on the network.
What Is OMI and Why Was It There?
Open Management Infrastructure is an open-source UNIX/Linux agent that Microsoft uses behind the scenes for VM management. It powers services like Azure Log Analytics, Azure Diagnostics, and Azure Security Center. As Wiz Research documented, OMI is installed automatically by multiple popular Azure services, usually as part of the Operations Management Suite (OMS) agent.
Put simply: if a team enabled monitoring, logging, or security scanning on a Linux VM in Azure, OMI was almost certainly running on that machine — whether the team knew it or not.
The deeper problem? According to Wiz, "OMI's functions within Azure VMs are almost completely undocumented and there are no clear guidelines for customers regarding how to check and/or upgrade existing OMI versions." No documentation, no visibility, no clear upgrade path. A perfect storm for a vulnerability to persist long after a patch becomes available.
Seventeen Vulnerabilities, One Devastating Exploit
Wiz Research first reported four critical OMI vulnerabilities to Microsoft in June 2021. The collection became known as "OMIGOD," and for good reason.
The most severe of the group, CVE-2021-38647, carried a CVSS severity rating of 9.8 out of 10. It allowed unauthenticated remote code execution as root. The exploit mechanism was almost absurdly simple: the OMI server trusted any request that arrived without an Authentication header. As Wiz described it, this was a "perfect RCE: single-request-to-rule-them-all."
No credentials needed. No user interaction required. One HTTP request, full root access.
Three additional vulnerabilities (CVE-2021-38645, CVE-2021-38648, CVE-2021-38649) enabled privilege escalation, allowing attackers who already had limited access to elevate to full system control.
Real numbers: Wiz's survey found that over 65% of sampled Azure customers were unknowingly at-risk from these vulnerabilities. The affected services — Log Analytics, Diagnostics, Security Center — are among the most commonly enabled features on Azure Linux VMs.
Fourteen Days of Silence
Here is where the timeline gets uncomfortable.
Microsoft's official patch (OMI version 1.6.8-1) was released on September 8, 2021. But Wiz noted that a "strange 'Enhanced Security' commit was introduced on August 12th, 2021" — nearly a month before the public patch. During that window, the vulnerability was essentially known internally but customers had no patch, no advisory, and no way to protect themselves.
Cornell IT Security issued an alert on September 14, 2021, recommending "immediate patching of any vulnerable assets" and confirming version 1.6.8.1 as the fix. But between the quiet August commit and the September disclosure, affected organizations were left exposed with nothing they could do to prevent exploitation.
Honest take: this gap between internal awareness and public disclosure is a recurring pattern in cloud security. Vendors face a tension between verifying a fix and leaving customers exposed. But when the exploit requires a single unauthenticated packet to gain root access, every day of silence carries real risk.
The Vulnerability That Kept Coming Back
The story did not end with the September 2021 patch. In June 2022, Microsoft patched yet another OMI vulnerability — CVE-2022-29149, a privilege escalation flaw with a CVSS score of 7.8, the highest possible score for local privilege escalation vulnerabilities. This was the fifth known vulnerability in OMI.
Wiz Research noted that because OMI is installed silently by Azure services, "customers may still not be aware of its existence," which led to "lower remediation rates." In other words, even after OMIGOD made headlines, many organizations still had unpatched OMI instances running because they did not know the software existed on their systems.
To address this, Wiz collaborated with Azure to onboard OMI-dependent agents — including the OMS agent, Desired State Configuration agent, and Azure Diagnostics agent — to Azure's Extension Auto-update feature. This was a practical step, but it came nearly a year after the original disclosure.
Why This Matters Beyond Azure
The OMIGOD case is a textbook example of shadow components — software installed as a dependency of a service, invisible to the team operating the infrastructure, and carrying its own attack surface.
This pattern appears everywhere in cloud environments. A team enables a monitoring feature through a dashboard. Behind the scenes, an agent gets deployed with root privileges. Nobody audits it because nobody knows it is there. When a vulnerability surfaces, the team responsible for patching does not even know the component exists on their systems.
Key takeaway for business: cloud security is not just about the services a team consciously deploys. It is about understanding every component running on the infrastructure — including the ones cloud providers install silently.
The Patching Responsibility Gap
One of the most consequential questions OMIGOD raised: who is responsible for patching a component that the cloud provider installed automatically?
Microsoft released the patch, but customers had to apply it manually in many cases. There was no automatic update mechanism for OMI at the time of the initial disclosure. The BigFix Forum advisory confirmed the remediation: "Upgrade to Azure Open Management Infrastructure version 1.6.8.1 or later." Simple instruction — but only useful if the administrator knows OMI is installed.
This mirrors the broader lesson from incidents like WannaCry. As ConnectSecure notes, the WannaCry ransomware exploited a vulnerability that "had been patched months earlier," and an internal investigation concluded it "could have been prevented with basic IT security." Timely patching remains one of the most effective mitigations, but it requires knowing what needs to be patched.
How OMI Exposure Actually Works
Understanding the attack surface helps explain why the risk was so severe.
OMI listens on specific network ports to receive management commands. When exposed to the network — which happens by default in certain Azure configurations — any device that can reach those ports can send commands. CVE-2021-38647 exploited a flaw in the authentication logic: the server processed requests that simply omitted the authentication header entirely.
The architecture also creates privilege escalation paths. OMI uses a frontend-backend socket architecture where the frontend accepts connections and passes them to a backend running with elevated privileges. Misconfigurations or vulnerabilities in how the frontend validates requests before passing them to the backend can allow a low-privilege user to execute commands as root — which is exactly what the three privilege escalation CVEs enabled.
Practical Steps for Identifying and Mitigating OMI Risk
Here is what we recommend for any organization running Linux workloads on Azure:
1. Discover OMI Instances
Run a scan across all Linux VMs to check for OMI installations. The agent is typically located at /opt/omi/. Check the installed version:
/opt/omi/bin/omiserver --version
Any version below 1.6.8.1 is vulnerable to OMIGOD. Any version below 1.6.9-1 is vulnerable to CVE-2022-29149.
2. Enable Auto-Update for Azure Extensions
After the OMIGOD incident, Microsoft added OMI-dependent agents to the Extension Auto-update feature. Verify that auto-update is enabled for all extensions on every VM. This is the single most impactful mitigation — it closes the gap between patch release and deployment.
3. Restrict Network Access to OMI Ports
OMI listens on ports 5985 (HTTP) and 5986 (HTTPS) by default. If these ports are not needed for external management, restrict them using Network Security Groups. In many environments, there is no reason for these ports to accept traffic from outside the Azure management plane.
4. Audit Silently Installed Components
Build a process — automated if possible — that inventories every running process and listening port on cloud VMs. Compare this inventory against what the team explicitly deployed. Any discrepancy represents a potential blind spot.
5. Monitor for Future OMI CVEs
OMI has had five known vulnerabilities over two years. The pattern suggests more may surface. Subscribe to Microsoft Security Response Center advisories and include OMI in vulnerability scanning policies.
The Broader Cloud Security Lesson
The OMIGOD incident exposed a fundamental tension in cloud computing: convenience versus visibility. Cloud providers bundle management agents to deliver features like monitoring, diagnostics, and security scanning. These agents simplify operations — but they also expand the attack surface in ways that are invisible to customers.
In our experience with production Azure environments, the most dangerous vulnerabilities are not the ones teams know about and deprioritize. They are the ones that exist in components teams never knew were installed.
What this means for your project: if a team runs workloads on any major cloud provider, an inventory of silently installed agents and their update status should be part of the security baseline. Not annually. Continuously.
The WannaCry parallel is instructive. The vulnerability was known, the patch was available, and organizations still got hit — because the patching process failed. With cloud-installed components like OMI, the process can fail at an even earlier stage: before the team even knows there is something to patch.
Honest take: Microsoft's response improved significantly after the initial OMIGOD disclosure. The auto-update integration for OMI-dependent agents was the right move. But the original sin — deploying a root-privileged, network-exposed agent without documentation or customer visibility — created a class of risk that took years to fully address.
Key takeaway for business: cloud does not mean someone else handles security. It means the attack surface includes components a team did not choose, may not see, and is still responsible for. Visibility into what actually runs on the infrastructure is not optional — it is the foundation of every other security measure.
Frequently Asked Questions
How can I identify which of my Azure VMs are running OMI?
Check for the OMI installation directory at /opt/omi/ on each Linux VM. You can also query running processes for omiserver. Azure Resource Graph queries can help identify VMs with extensions that depend on OMI, such as the OMS agent, Azure Diagnostics, or Desired State Configuration.
Who is responsible for patching OMI vulnerabilities — customers or Microsoft?
Both. Microsoft releases patches and has since added auto-update support for OMI-dependent extensions. However, customers must ensure auto-update is enabled and verify that patches are actually applied. In the original OMIGOD incident, there was no auto-update mechanism, leaving all patching responsibility with customers who often did not know OMI existed.
How does CVE-2021-38647 allow attackers to gain root access with a single unauthenticated packet?
The OMI server's authentication logic had a flaw: it trusted requests that arrived without an Authentication header entirely. An attacker could send a specially crafted HTTP request to the OMI port, omit the authentication header, and the server would execute the command with root privileges. Wiz Research described it as a "single-request-to-rule-them-all" exploit.
What are the default ports that OMI exposes and can they be disabled or restricted?
OMI listens on ports 5985 (HTTP) and 5986 (HTTPS) by default. These ports can and should be restricted using Azure Network Security Groups. If external management access is not required, blocking inbound traffic to these ports eliminates the remote exploitation vector for vulnerabilities like CVE-2021-38647.
How do misconfigurations in OMI's frontend-backend socket architecture enable privilege escalation?
OMI uses a frontend process that accepts connections and forwards them to a backend process running with elevated privileges. The privilege escalation vulnerabilities (CVE-2021-38645, CVE-2021-38648, CVE-2021-38649) exploited weaknesses in how the frontend validated requests before passing them to the privileged backend. A local attacker with limited access could craft requests that the backend would execute with root authority.
This article is based on publicly available sources and may contain inaccuracies.


