Thousands of Redis Servers Hijacked for Monero Mining
Over 3,500 internet-facing Redis servers have been compromised and repurposed by attackers to mine Monero cryptocurrency, exploiting weak authentication configurations.

A widespread cryptomining operation has successfully compromised 3,562 Redis servers, repurposing their computational power to generate Monero cryptocurrency. This campaign did not exploit a novel software vulnerability but rather targeted internet-facing Redis instances that lacked proper authentication. Attackers scanned a vast number of potential targets, then leveraged Redis's master-replica replication features to deploy a scheduled task. This task was designed to download and execute the XMRig cryptocurrency miner, turning the compromised servers into illicit mining nodes.
The consequences for affected organizations are significant, ranging from degraded application performance and unusually high processor utilization to inflated cloud computing bills. Furthermore, the manipulation of Redis's data writing configurations introduces a risk of data disruption and potential loss, impacting the persistence capabilities that many rely on. Researchers at Hunters.io identified the campaign after discovering an exposed directory containing extensive exploit code and operational logs, offering a rare, detailed glimpse into the operation's development, testing, and execution.
The logs revealed two major phases of compromise, affecting 3,388 and 2,862 hosts respectively, with some overlap. This resulted in a distinct victim count of 3,562 servers. The affected Redis versions spanned from 2.8.17 to 7.2.0, underscoring that the primary issue was a widespread misconfiguration rather than a specific flaw in any single software version. This highlights a critical security gap where readily available, legitimate features are abused by threat actors.
The core of the attack chain involved exploiting Redis's master-replica replication mechanism. Once an unauthenticated server was identified, attackers reconfigured its data writing destinations to point to a rogue server. The data received from this rogue server was used to establish a cron task, a Linux scheduler entry. This task was configured to execute every five minutes, downloading the XMRig miner, renaming it to evade detection, and connecting to a mining pool over encrypted port 443. This method of using encrypted traffic helps obscure the malicious activity, making it appear less suspicious than standard mining traffic.
While the attackers experimented with other methods, such as attempting to add SSH keys and utilizing Redis scripting, these approaches did not yield large-scale compromises. The successful replication-based method is particularly concerning because it relies on a legitimate and widely available Redis feature, making it effective across a broad range of installations. This technique echoes patterns seen in previous Redis cryptojacking incidents, reinforcing the dangers of exposing Redis instances directly to the internet without adequate security measures.
Beyond the direct impact of resource theft, the altered Redis write settings can interfere with normal snapshotting processes, posing a data loss risk for organizations relying on Redis persistence. This replication abuse is not an isolated incident, as similar tactics were observed in the P2PInfect campaign, further emphasizing the inherent dangers of unsecured Redis deployments.
To mitigate these risks, administrators are strongly advised to remove Redis from direct internet access, restrict it to trusted internal networks, and enforce robust authentication. If replication is not a necessary function, administrators should consider restricting or renaming the SLAVEOF or REPLICAOF commands and ensure protected mode remains enabled. While upgrading Redis is always recommended for broader security benefits, it is not a standalone solution for this specific configuration-based threat. Defenders should actively scan cron directories for suspicious download or execution commands and review Redis configurations for unusual data directories or filenames.
Network monitoring should focus on identifying unexpected HTTP connections to known campaign infrastructure, encrypted traffic patterns indicative of mining operations, and sustained high CPU usage by processes running from temporary directories. The use of legitimate software like XMRig for malicious purposes means detection should prioritize behavioral analysis over simple signature matching. A comprehensive incident response plan should include isolating affected servers, terminating malicious processes, removing all persistence mechanisms, rotating credentials, and verifying data integrity before bringing systems back online.