New P2PInfect Worm Targets Redis Servers with Undocumented Breach Methods

Share:

The P2PInfect peer-to-peer (P2) worm has been observed employing previously undocumented initial access methods to breach susceptible Redis servers and rope them into a botnet.

The malware compromises exposed instances of the Redis data store by exploiting the replication feature, Cado Security researchers Nate Bill and Matt Muir said in a report shared with The Hacker News.

A common attack pattern against Redis in cloud environments is to exploit this feature using a malicious instance to enable replication. This is achieved via connecting to an exposed Redis instance and issuing the SLAVEOF command.

The Rust-based malware was first documented by Palo Alto Networks Unit 42, calling out the malware’s ability to exploit a critical Lua sandbox escape vulnerability (CVE-2022-0543, CVSS score: 10.0) to obtain a foothold into Redis instances. The campaign is believed to have commenced on or after June 29, 2023.

However, the latest discovery suggests that the threat actors behind the campaign are leveraging multiple exploits for initial access.

This is not the first time the SLAVEOF command has been abused in the wild. Previously, threat actors associated with malware families such as H2Miner and HeadCrab have abused the attack technique to illicitly mine cryptocurrency on compromised hosts.

In doing so, the goal is to replicate a malicious instance and load a malicious module to activate the infection.

Another initial access vector entails the registration of a malicious cron job on the Redis host to download the malware from a remote server upon execution, a method previously observed in attacks mounted by the WatchDog cryptojacking group.

A successful breach is followed by the distribution of next-stage payloads that allow the malware to alter iptables firewall rules at will, upgrade itself, and potentially deploy cryptocurrency miners at a later date once the botnet has grown to a specific size.

The P2Pinfect malware makes use of a peer-to-peer botnet, the researchers said. Each infected server is treated as a node, which then connects to other infected servers. This allows the entire botnet to gossip with each other without using a centralized C2 server.

A notable trait of the botnet is its worming behavior, enabling it to expand its reach by using a list of passwords to brute-force SSH servers and attempting to exploit the Lua sandbox escape vulnerability or use the SLAVEOF command in the case of Redis servers.

The identity of the threat actors behind the campaign is currently unknown and the purpose of P2PInfect remains unclear, with Unit 42 previously noting that the indicators don’t overlap with any of the known cryptojacking groups.

P2Pinfect is well-designed and utilizes sophisticated techniques for replication and C2, the researchers concluded. The choice of using Rust also allows for easier portability of code across platforms (with the Windows and Linux binaries sharing a lot of the same code), while also making static analysis of the code significantly harder.

 

(c) Thin

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
8:46 am, May 19, 2025
weather icon 12°C
L: 11° | H: 13°
overcast clouds
Humidity: 78 %
Pressure: 1021 mb
Wind: 7 mph NNE
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 100%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 5:02 am
Sunset: 8:51 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
11° | 13°°C 0 mm 0% 11 mph 77 % 1021 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
10° | 21°°C 0 mm 0% 9 mph 69 % 1022 mb 0 mm/h
Wed May 21 10:00 pm
weather icon
14° | 22°°C 0 mm 0% 12 mph 63 % 1020 mb 0 mm/h
Thu May 22 10:00 pm
weather icon
11° | 18°°C 0 mm 0% 12 mph 64 % 1023 mb 0 mm/h
Fri May 23 10:00 pm
weather icon
7° | 19°°C 0 mm 0% 9 mph 69 % 1024 mb 0 mm/h
Today 10:00 am
weather icon
12° | 14°°C 0 mm 0% 7 mph 77 % 1021 mb 0 mm/h
Today 1:00 pm
weather icon
14° | 18°°C 0 mm 0% 9 mph 67 % 1021 mb 0 mm/h
Today 4:00 pm
weather icon
16° | 19°°C 0 mm 0% 11 mph 52 % 1020 mb 0 mm/h
Today 7:00 pm
weather icon
17° | 17°°C 0 mm 0% 9 mph 46 % 1020 mb 0 mm/h
Today 10:00 pm
weather icon
13° | 13°°C 0 mm 0% 6 mph 63 % 1021 mb 0 mm/h
Tomorrow 1:00 am
weather icon
11° | 11°°C 0 mm 0% 5 mph 66 % 1022 mb 0 mm/h
Tomorrow 4:00 am
weather icon
10° | 10°°C 0 mm 0% 5 mph 69 % 1021 mb 0 mm/h
Tomorrow 7:00 am
weather icon
11° | 11°°C 0 mm 0% 6 mph 63 % 1022 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€91,905.24
-0.73%
Ethereum(ETH)
€2,143.42
-4.20%
Tether(USDT)
€0.89
0.00%
XRP(XRP)
€2.07
-3.03%
Solana(SOL)
€144.61
-4.69%
USDC(USDC)
€0.89
0.01%
Dogecoin(DOGE)
€0.195265
-0.82%
Shiba Inu(SHIB)
€0.000013
-2.92%
Pepe(PEPE)
€0.000012
1.15%
Peanut the Squirrel(PNUT)
€0.288878
-6.55%
Scroll to Top