Cyber Security News

Linux Ransomware Pay2Key Targets Servers, Virtualization Hosts, and Cloud Workloads

Linux-focused ransomware Pay2Key is actively targeting enterprise servers, VMware ESXi virtualization hosts, and cloud workloads, underscoring how far Linux ransomware has evolved beyond simple file lockers.

Originally known for fast, human-operated Windows intrusions against Israeli and Brazilian organizations, Pay2Key has re-emerged as a ransomware-as-a-service (RaaS) with explicit support for Linux environments.

Recent research shows that newer builders include Linux payload options, allowing affiliates to generate locker binaries tailored for Linux-based infrastructure rather than just Windows endpoints.

This shift aligns with a broader ransomware trend: follow the data and compute power, which increasingly sit on Linux servers, hypervisors, and cloud platforms.

Threat intelligence reports link the operation to Iranian-backed actors, who have expanded their targeting from on-prem corporate networks to critical workloads, including financial systems, SAP databases, and ESXi infrastructure.

Combined with RaaS-style affiliate recruitment and profit-sharing models, Pay2Key’s Linux branch widens the pool of attackers capable of hitting high-value infrastructure.

How the Linux variant attacks

Technical analysis of the Pay2Key Linux build shows a configuration-driven ransomware designed for scale, stability, and minimal operator friction.

Pay2Key Linux installation script (Source : MORPHISEC).

The binary requires root privileges and starts by reading a JSON configuration that controls which paths, file types, and mount classes to target, giving attackers fine-grained control over what gets encrypted.

Before touching files, the malware weakens the host by stopping services and killing processes, then disabling protections such as SELinux and AppArmor to reduce interference during encryption.

Mounts enumeration and filtering (Source : MORPHISEC).

It also installs a cron job that triggers at reboot, ensuring the encryptor resumes or re-runs even if the system restarts mid-incident.

Pay2Key enumerates /proc/mounts and classifies mounts as pseudo, read-only, removable, or standard, skipping read-only and pseudo-filesystems while pushing others into dedicated work queues.

The ransomware creates cron persistence setup, and SSH-facing modifications intended
to stabilize attacker control over host behavior.

Create command to setup cron job (Source : MORPHISEC).

During per-file processing, it deliberately skips ELF/MZ binaries and zero-length files to avoid crashing critical components and to maximize encryptable business data.

Encryption uses the ChaCha20 algorithm in either full or partial modes, with the choice and offset boundaries driven by configuration to balance speed against damage.

Per-file keys are generated and stored inside obfuscated metadata blocks, complicating recovery efforts without the attacker’s key material.

Impact on servers, ESXi, and cloud workloads

Pay2Key’s Linux variant is optimized to hit exactly the systems that underpin modern enterprises: application servers, virtualization hosts, and cloud-backed storage.

Reports highlight the selective targeting of ESXi and other virtualization infrastructure so that one compromised hypervisor can cascade into an outage across dozens or hundreds of guest VMs.

The password is hashed using xxHash32, with seed 0, and compared against 0x962E0C8F (“pay2key”) and 0xF4625064 (“p2k”).

User password prompting for ‘premium’ feature comparing (Source : MORPHISEC).

In parallel, threat actors tune configurations to prioritize financial applications, databases, and critical services, amplifying business impact and ransom leverage.

Cloud and DevOps ecosystems are also in scope. Attackers increasingly abuse misconfigurations, over-privileged service accounts, and gaps in CI/CD pipelines to deploy Linux ransomware in Kubernetes clusters and containerized workloads.

Because these environments favor lightweight, performance-sensitive tooling, traditional EDR agents and signature-based defenses are often missing or blind to in-memory, script-driven activity.

As a result, once Pay2Key gains root-level access to a Linux host, the window for defenders to intervene before large-scale encryption is extremely narrow.

Security teams can’t treat Linux as a low-risk platform anymore; Pay2Key’s evolution demonstrates that Linux is now a first-class ransomware target.

Hardening should start with strict access controls and patching on exposed services especially VPNs, RDP or remote management gateways, and admin panels frequently abused by Pay2Key operators.

On Linux, organizations need purpose-built controls that can intercept ransomware execution paths before encryption, not just detect file changes after the fact.

Recommended measures include enforcing least privilege on service accounts, tightening sudo and SSH usage, monitoring for abnormal process-kill and service-stop patterns, and baselining /proc/mounts and filesystem activity on critical hosts.

For virtualization and cloud workloads, segmenting management networks, restricting access to ESXi and orchestration APIs, and validating backup integrity and restore times are essential to surviving a Pay2Key incident without paying.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Mayura Kathir

Mayura Kathir is a cybersecurity reporter at GBHackers News, covering daily incidents including data breaches, malware attacks, cybercrime, vulnerabilities, zero-day exploits, and more.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

2 days ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

2 days ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

2 days ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago