This article is based on analysis originally published at infoworld.com following the 2017 Petya and WannaCry ransomware outbreaks.
Two Major Ransomware Outbreaks in Weeks
In mid-2017, two significant ransomware campaigns struck organizations worldwide in rapid succession. WannaCry spread across enterprise networks by exploiting a vulnerability in older, unpatched versions of Microsoft Windows. Weeks later, Petya—sometimes called NotPetya—followed a similar pattern, causing widespread disruption from Ukraine to the United States. In both cases, the initial vector was straightforward: unpatched systems exposed to a network-propagating exploit.
The common thread was not sophisticated, nation-state tradecraft that no defender could anticipate. It was a failure to apply security patches that had already been released.
The Real Weakness: Inconsistent Patch Management
Both WannaCry and Petya exploited known vulnerabilities for which patches existed before the attacks began. Organizations that had applied those patches were largely unaffected. Organizations that had not—whether because of budget constraints, operational complexity, or legacy system dependencies—bore the brunt of the damage.
This is not unusual. Maintaining a fully patched, holistically secured on-premises environment is genuinely difficult at scale. Security teams must track vulnerabilities across operating systems, middleware, applications, and firmware, then test and deploy fixes across heterogeneous hardware—often while minimizing downtime. For many enterprises, especially mid-market organizations without large security budgets, this is simply not feasible at the pace that modern threat actors require.
Why the Cloud Reduces Common Attack Vectors
A widespread but understandable misconception holds that outsourcing infrastructure to a public cloud provider introduces additional risk because you cede direct control. In practice, the opposite is often true for the specific class of threats that ransomware represents. Here is why:
- Automated patching at scale. Major cloud providers patch their underlying hypervisors, managed services, and platform runtimes continuously. For managed services—databases, container orchestration platforms, serverless runtimes—the provider handles OS and runtime patching without customer intervention. This removes one of the most common failure points that ransomware exploits.
- Dedicated security operations. Large cloud providers operate security operations centers with teams whose sole responsibility is monitoring for and responding to threats across their platforms. Few individual enterprises can match that investment in specialist expertise.
- Defense-in-depth by default. Cloud environments are built with layered controls: network segmentation, identity and access management, encryption at rest and in transit, anomaly detection, and audit logging are standard features rather than optional add-ons.
- Rapid incident response. Providers can detect anomalous behavior across their entire fleet and push mitigations quickly. A threat identified in one customer’s workload can inform defenses across all tenants on the platform almost immediately.
What Cloud Providers Do Not Protect Against
Cloud infrastructure security does not eliminate all risk, and it is important to understand the boundaries of the shared responsibility model. While the provider secures the underlying infrastructure, customers remain responsible for:
- Correctly configuring identity and access management (IAM) policies
- Securing application code and dependencies they deploy
- Patching operating systems on infrastructure-as-a-service (IaaS) virtual machines they manage directly
- Protecting credentials and API keys from phishing or leakage
- Enforcing endpoint security on user devices that access cloud services
Misconfigured storage buckets, overly permissive IAM roles, and leaked API keys are among the most common causes of cloud-related breaches. Moving to the cloud shifts, but does not eliminate, the security burden.
Using a Ransomware Attack as a Security Audit Trigger
Rather than reacting to attacks by simply shoring up the same on-premises posture, security and DevOps leaders should treat each incident as a prompt for a structured assessment. A useful framework:
- Inventory current state. Document all systems, including operating systems, patch levels, network exposure, and data sensitivity. Shadow IT and legacy systems are common blind spots.
- Identify gaps. Determine which systems are unpatched, which have EOL operating systems, and which lack network segmentation that would limit lateral movement by malware.
- Define the target state. Assess which workloads are strong candidates for cloud migration, which can be modernized in place, and which require decommissioning.
- Prioritize by risk. Systems holding sensitive data or with broad network access should be addressed first, regardless of migration timeline.
- Build a patching cadence. For systems that remain on-premises, establish and enforce a consistent patching process. Automate where possible.
Cloud Availability vs. Security: Separating the Concerns
Critics sometimes cite cloud outages as evidence that cloud infrastructure is not more reliable or more secure than on-premises alternatives. It is worth separating these two dimensions. Major cloud providers have experienced availability incidents, and those incidents are worth factoring into architecture decisions—use of multiple availability zones, multi-region deployments, and appropriate SLAs are all relevant considerations.
However, availability incidents are distinct from security breaches. The track record of major public cloud providers in avoiding widespread malware compromise of their platforms—of the kind that WannaCry and Petya inflicted on unpatched on-premises Windows estates—has been strong. That does not mean cloud infrastructure is invulnerable, but it does mean the specific failure mode that ransomware exploits (delayed patching of known vulnerabilities) is addressed more systematically by providers than by most individual enterprises.
Key Takeaways for DevOps and Security Teams
- Ransomware like WannaCry and Petya exploits known, patchable vulnerabilities. The primary defense is timely patching—something cloud providers do more reliably for managed services than most enterprises do on-premises.
- Public cloud does not eliminate security responsibility, but it shifts the most operationally demanding elements—infrastructure patching, physical security, platform monitoring—to providers with dedicated expertise.
- The shared responsibility model means application security, IAM configuration, and credential hygiene remain customer responsibilities in the cloud.
- Use security incidents as a structured audit trigger, not just a reason to apply emergency patches to the existing environment.
- Evaluate cloud migration on a workload-by-workload basis, factoring in data sensitivity, compliance requirements, and the organization’s capacity to manage on-premises security correctly.