
Cloud & Infrastructure
https://hmmnm.com/omigod-azure-linux-vulnerabilities/
September 2021’s cloud lesson came from a daemon most Azure admins had never heard they were running. OMIGOD (the name given by Wiz researchers to a set of four vulnerabilities, most critically CVE-2021-38647 CVSS 9.8) affected the Open Management Infrastructure agent — Microsoft’s open-source WSMan/OMI implementation silently installed on most Linux VMs in Azure (and on-prem systems via Azure automation tooling) whenever customers enabled Azure Automation, Update Management, Inventory, or related services. The flagship bug: a default-configuration authentication bypass in the OMI HTTP listener — send a malformed header (empty/absent `Authorization` handling when the server expected one but received none in a specific parsing path) and the daemon executed the request as root. Remote code execution as root, on millions of Azure Linux boxes, via a management agent 99% of owners didn’t know existed, listening on localhost by default but network-exposed in common misconfigurations (NAT/forwarded 5986/1270). The episode’s structural punchline: invisible-software supply chains inside cloud roots — Microsoft installing privileged daemons as side-effects of feature toggles — became a named, monitored risk class afterwards.
Wiz (fresh off ChaosDB weeks earlier) discovered the OMI bugs while researching Azure’s Linux management plane. Disclosure choreography per Wiz’s timeline: reported privately ~2 September 2021; Microsoft began silently patching GitHub releases around 8 September without advisory — Wiz noticed version bumps, flagged the risk (silent fixes on an unsigned/self-built channel leave unmanaged installs exposed), and coordinated full disclosure 14 September with patches, advisories, and Azure-initiated auto-remediation. Scale of exposure: Azure’s own statements and Wiz estimations put OMI deployment in the “millions of endpoints” class across Azure/Hybrid cloud estates; the patch campaign (auto-update for Azure-managed agents + manual GitHub/download paths for self-managed) ran for weeks, with residual unpatched populations persisting for months in long-tail estates (common for invisible software nobody owns).
Two structural criticisms stuck: (1) silent-install opacity — customers learned a root daemon was running because researchers found bugs in it, not because change management said so; (2) the initial silent-patch reflex — fixing GitHub artifacts without an advisory — risked leaving the most-exposed (self-built, non-Azure-managed) segment blind. Both fed the post-2021 consensus that cloud agents deserve supply-chain-grade transparency: SBOMs, install/enable disclosures, signed auto-update channels, and kill-switch documentation.
The flagship bug (CVE-2021-38647) in one diagram:
target: Linux VM in Azure with OMI agent
(omiserver running as root, installed
silently by Update Management /
Automation / Inventory features)
normal flow:
client -> HTTPS 5986/HTTP 1270 -> omiserver
-> WSMan auth (Basic/certificate) -> CIM ops as root
attack (CVE-2021-38647, auth bypass):
1. reach the OMI port:
- direct if exposed (mis-NAT, 0.0.0.0 binds)
- pivot via SSRF to localhost:1270
- container escape into host netns
2. craft request with malformed/missing
Authorization header in the specific
parsing path (empty-credential compare
logic flaw)
3. omiserver treats request as authenticated
4. execute WSMan/CIM operations AS ROOT:
command exec, config change, full
host takeover
companion bugs:
CVE-2021-38648/38649 - local EoP via symlink/
race in log/patch paths (user -> root)
CVE-2021-38650 - unauth DoS
The composite lessons — loopback-is-not-authentication (SSRF pivots make localhost internet-adjacent), and invisible-privileged-software is unaudited attack surface — are permanent entries in cloud hardening baselines, the same baselines we maintain across infrastructure guidance.
| Metric | Value | Source |
|---|---|---|
| Flagship CVE | CVE-2021-38647 (RCE as root, CVSS 9.8) | Wiz/Microsoft |
| Full set | 38647/38648/38649/38650 | advisories |
| Disclosure | 14 September 2021 (Wiz) | coordinated release |
| Installed base | Millions of Linux endpoints (Azure + hybrid) | Wiz/estimates |
| Install visibility | Silent — feature-toggle side-effect | Wiz critique |
| Initial fix event | ~8 Sept silent GitHub bumps, then full advisory | Wiz timeline |
| Remediation tail | Weeks-months (self-managed agents) | industry telemetry |
| Date | Event |
|---|---|
| 2021-09 (early) | Wiz reports privately; silent GitHub patches observed ~8 Sept |
| 2021-09-14 | Coordinated disclosure: 4 CVEs + Azure auto-remediation |
| 2021-09–10 | Fleet patch campaigns; manual-path guidance for self-managed OMI |
| 2021 Q4–2022 | Long-tail unpatched estates; agent-transparency reforms |
| 2022+ | CVE joins permanent hardening-baseline checklists |
OMIGOD’s permanence is structural: the modern cloud VM runs a small village of privileged agents (security sensors, management daemons, observability collectors, CSP-internal helpers), most installed as side-effects of toggles rather than deliberate rollouts — and every one is a kernel of root-level trust deserving inventory, signing, update cadence, and kill documentation. In 2026’s estates, the OMIGOD checklist items are standard: SBOM-golden-images with agent manifests; “what runs as root here?” queries (osquery/FIM class); loopback services treated as attack surface (SSRF-to-localhost is a routine pivot in every web-app IR); and vendor-contract terms demanding install disclosure for anything a feature silently deploys. The episode also remains the reference case against silent patching: fixes without advisories protect the managed while abandoning the self-managed — the transparency norm (conspicuous disclosure even without in-the-wild exploitation) it violated is now table stakes, a discipline we reinforce throughout hardening guidance.
No widespread in-the-wild exploitation was ever confirmed — the exposure was defended fast (Azure auto-remediation + advisory coordination), and the technique required network reachability to the OMI port. But the “no exploit” outcome shouldn’t soften the lesson: the same invisible-agent pattern reappears regularly, and not every instance gets a researcher-driven, vendor-coordinated save.
Because its job demanded host-wide authority: update management, config inventory, and automation execution require reading system state and applying changes — root is the natural privilege for a CIM/WSMan server. The problem wasn’t root per se; it was root + invisible deployment + authentication bugs + network-reachable listener. Remove any one (inventory, loopback-only authenticated, patched) and the story deflates.
Look for /opt/omi, the omiserver/omiagent processes, ports 1270/5985/5986 listening, and OMI-adjacent packages (scx, omsagent integrations) on Linux fleets — especially VMs created before late 2021 with Azure automation-era features enabled. Anything found should be current-version or removed; the 2021 episode made “OMI version audit” a standing item in Linux-on-Azure hardening checklists.
OMIGOD — root-level vulnerabilities in the Open Management Infrastructure agent that Azure silently installed on Linux VMs for log analytics — taught the invisible-dependency lesson with unusual clarity: customers ran, and were compromised through, a privileged agent many did not know existed, installed by the platform rather than the operator, reachable from the network by default. Four CVEs, remote root, and an attack surface that appeared in no one asset inventory because no one had provisioned it.
The doctrine formalized on two layers. Customer-side: platform-installed components count as attack surface — cloud agents, vendor management tools, and silent dependencies require the same inventory, monitoring, and network-exposure discipline as operator-installed software, and the network-exposure question (should this agent accept connections from the internet?) must be answered per component rather than per VM. Provider-side: silent installation of privileged software is a transparency obligation, and the era shifted toward customer-visible, optionally-removable agents precisely because this class of incident priced the alternative.
The consolidation with the forgotten-infrastructure canon: the pattern broadened from forgotten servers to invisible dependencies — components nobody deployed, running with privileges nobody granted, reachable from networks nobody scoped. The inventory discipline that answers every other entry in this series answers this one too, with one addition: the inventory must include what the platform puts there, or it is a catalogue of assumptions rather than assets.