Skip to main content
Mallory
Malware3 associated CVEs

P2PInfect

Tracked since Nov 25, 2025 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns3Associated
Actors0Associated
ATT&CK37Techniques
IOCs245Tracked
Type
Worm
Capabilities
Initial accessScanningBrute forceLateral movementPersistenceDefense evasion
Delivery
Exploit kit
Platforms
LinuxWindowsCloud

P2PInfect is a Rust-based, self-propagating worm that enrolls compromised systems into a decentralized peer-to-peer botnet. First discovered in July 2023, it supports Linux and Windows, with variants targeting x86-64, ARM, and MIPS architectures. Its principal targets are internet-exposed Redis deployments and poorly secured SSH services. Infections have also affected Google Kubernetes Engine clusters through exposed Redis instances.

Propagation mechanisms include exploitation of CVE-2022-0543, a Lua sandbox escape affecting Debian-packaged Redis and derived distributions, abuse of Redis replication and module-loading functionality, and SSH password brute-forcing or spraying. Later activity has also incorporated exploitation of CVE-2025-11953, known as Metro4Shell, against React Native Metro development servers. After compromise, infected hosts scan for additional targets, exchange peer information, and distribute binaries and updates through the botnet. Peer communications use encrypted connections and variable ports, reducing dependence on centralized infrastructure and complicating disruption.

P2PInfect employs monitoring components that update or revive its main payload. Defense-evasion features include UPX packing, obfuscated PowerShell, anti-debugging measures, disabled core dumps, runtime modification of auxiliary executables, and self-deletion of initial components. Some variants include user-mode rootkit functionality. Windows infections can modify firewall rules to restrict legitimate Redis access while permitting botnet communications.

The botnet has delivered Monero mining software and ransomware, although some infections remain dormant for extended periods without executing secondary payloads. Persistent infections in managed Kubernetes environments have lasted several months. No established attribution to a named threat actor is available.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2022-0543via gurucul threat researchExploited in the wildRedis Lua Sandbox Escape in Debian and Ubuntu PackagesThe P2PInfect campaign targets internet-exposed, misconfigured Redis instances and exploits CVE-2022-0543 to achieve remote code execution, deploy ELF-based malware, and establish persistence. | The Rust-based P2PInfect worm further supports network scanning, SSH brute force, P2P propagation, anti-forensics, C2 communication, and cryptocurrency mining.View vulnerability →Source ↗
CVE-2025-11953via fortinet threat researchExploited in the wildMetro4ShellWe also observed that some infected Redis nodes contacted P2Pinfect peers that were deployed by exploiting CVE-2025-11953 (aka Metro4Shell, a React vulnerability) in November 2025. | FortiGuard Labs recently identified persistent P2Pinfect presences within Google Kubernetes Engine (GKE) clusters at several client companies... While our telemetry indicated that no second-stage payload was ever executed, this botnet has been observed in the wild to remain dormant for extended periods before delivering ransomware and crypto miners.View vulnerability →Source ↗
CVE-2025-49844via fortinet threat researchRediShellFortiGuard Labs recently identified persistent P2Pinfect presences within Google Kubernetes Engine (GKE) clusters at several client companies... While our telemetry indicated that no second-stage payload was ever executed, this botnet has been observed in the wild to remain dormant for extended periods before delivering ransomware and crypto miners. | We also speculate with low confidence that P2Pinfect botnet might have incorporated CVE-2025-49844 (aka RediShell) in their repertoire.View vulnerability →Source ↗
MITRE ATT&CK

Techniques & procedures

37 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1133External Remote ServicesEvidence2

Then ... the script opens a communication port for the threat actor to access the compromised instance. This is a form of persistence, allowing the threat actors to maintain access to the infected host and keep it operable.

T1190Exploit Public-Facing ApplicationEvidence6

“P2PInfect activity targeting internet-exposed and exploiting misconfigured Redis instances... The campaign exploits CVE-2022-0543.”

Execution

6 techniques
T1053.003CronEvidence1

“uses mechanisms such as cron jobs and SSH authorized keys for persistence.”

T1059Command and Scripting InterpreterEvidence3

To infect new targets, P2PInfect executes a bruteforce attack against the device with the SSH server and, after a successful login, different commands are executed to download and run the malware.

T1059.004Unix ShellEvidence3

“deploys ELF-based malware, establishes reverse shells.”

T1129Shared ModulesEvidence1

“attackers abusing Redis replication and module-loading capabilities to achieve remote code execution.”

T1203Exploitation for Client ExecutionEvidence4

The P2PInfect worm infects vulnerable Redis instances by exploiting the Lua sandbox escape vulnerability, CVE-2022-0543.

T1574Hijack Execution FlowEvidence1

Attackers connect to the exposed service and issue the SLAVEOF command, turning the legitimate Redis node into a follower of a malicious server under their control. This tricks the node into loading arbitrary modules from attacker infrastructure...

Persistence

4 techniques
T1053.003CronEvidence1

“uses mechanisms such as cron jobs and SSH authorized keys for persistence.”

T1098.004SSH Authorized KeysEvidence1

“uses mechanisms such as cron jobs and SSH authorized keys for persistence.”

T1133External Remote ServicesEvidence2

Then ... the script opens a communication port for the threat actor to access the compromised instance. This is a form of persistence, allowing the threat actors to maintain access to the infected host and keep it operable.

T1505Server Software ComponentEvidence2

P2Pinfect has been observed in the wild abusing the SLAVEOF command to turn discovered open nodes into followers of the attacker’s server, thereby gaining code execution.

Privilege Escalation

3 techniques
T1053.003CronEvidence1

“uses mechanisms such as cron jobs and SSH authorized keys for persistence.”

T1068Exploitation for Privilege EscalationEvidence2

RediShell (CVE-2025-49844) is a critical RCE that allows an authenticated user to bypass the Lua sandbox by sending a maliciously crafted script to manipulate the garbage collector, thereby granting native code execution.

T1098.004SSH Authorized KeysEvidence1

“uses mechanisms such as cron jobs and SSH authorized keys for persistence.”

Stealth

10 techniques
T1014RootkitEvidence1

Some variants of the P2Pinfect clients also have usermode rootkit capabilities.

T1027Obfuscated Files or InformationEvidence3

The PowerShell script leveraged the encode command to obfuscate the communication initiation.

T1027.002Software PackingEvidence1

Interestingly, the latest variants of this malware tend to utilize a particular version of the UPX packer: 4.0.2.

T1027.009Embedded PayloadsEvidence1

Finally, lots of main ELF payloads are distributed inside wrapper ELF files that just print a famous “Hello, World!” message pretending this is its only functionality.

T1036MasqueradingEvidence1

The firewall rule is named Microsoft Sync.

T1070Indicator RemovalEvidence3

“The Rust-based P2PInfect worm further supports ... anti-forensics.”

T1218System Binary Proxy ExecutionEvidence1

The Monitor is dumped to C:\Users\username\AppData\Local\Temp\cmd.exe.

T1497Virtualization/Sandbox EvasionEvidence1

Once a node was enrolled in the P2P mesh, it stayed relatively quiet, a behavior the researchers described as dormant. The bots appeared to be waiting, ready to receive tasks from operators at any time.

T1574Hijack Execution FlowEvidence1

Attackers connect to the exposed service and issue the SLAVEOF command, turning the legitimate Redis node into a follower of a malicious server under their control. This tricks the node into loading arbitrary modules from attacker infrastructure...

T1622Debugger EvasionEvidence1

In addition to disabling core dumps through the 'setrlimit' syscall and the process debugging protection noted by Cado Security

Defense Impairment

1 technique
T1686Disable or Modify System FirewallEvidence1

One of the first operations performed by the PowerShell command is to configure the local system firewall to block legitimate access to or from the compromised Redis application.

Credential Access

3 techniques
T1110Brute ForceEvidence3

Once the device is infected it's ready to spread to other devices. To infect new targets, P2PInfect executes a bruteforce attack against the device with the SSH server and, after a successful login, different commands are executed to download and run the malware.

T1110.001Password GuessingEvidence1

“The Rust-based P2PInfect worm further supports ... SSH brute force.”

T1110.003Password SprayingEvidence1

P2Pinfect primarily spreads by exploiting Redis vulnerabilities and also includes a basic SSH password sprayer.

Discovery

5 techniques
T1046Network Service DiscoveryEvidence2

“The Rust-based P2PInfect worm further supports network scanning.”

T1082System Information DiscoveryEvidence1

The botnet used this network to distribute payloads, gather information about the infected environment, and maintain communication without relying on a centralized command server.

T1083File and Directory DiscoveryEvidence1

To find the memory to be modified inside the “template bash” executable to make it ready to be executed, P2PInfect looks for two markers “thisisport” and “password12345678” to dynamically replace them with two random values.

T1497Virtualization/Sandbox EvasionEvidence1

Once a node was enrolled in the P2P mesh, it stayed relatively quiet, a behavior the researchers described as dormant. The bots appeared to be waiting, ready to receive tasks from operators at any time.

T1622Debugger EvasionEvidence1

In addition to disabling core dumps through the 'setrlimit' syscall and the process debugging protection noted by Cado Security

Lateral Movement

2 techniques
T1021Remote ServicesEvidence1

A version of this malware that utilizes SSH protocol for propagation was intercepted by our chain of globally distributed honeypots on November 6, 2023.

T1021.004SSHEvidence2

“The Rust-based P2PInfect worm further supports ... SSH brute force.”

Command and Control

6 techniques
T1071Application Layer ProtocolEvidence3

The malware is capable of performing Peer-to-Peer (P2P) communications without relying on a single Command and Control server (C&C) to propagate attackers’ commands.

T1090ProxyEvidence1

The malware is capable of performing Peer-to-Peer (P2P) communications without relying on a single Command and Control server (C&C) to propagate attackers’ commands.

T1090.003Multi-hop ProxyEvidence2

P2Pinfect is a self-propagating malware strain that combines worm-like spreading capabilities with a decentralized botnet architecture. This peer-to-peer (P2P) architecture makes it highly resilient to sinkholing and infrastructure takedowns.

T1095Non-Application Layer ProtocolEvidence3

P2PInfect uses its P2P network to distribute follow-up malware to newly infected systems or cloud instances.

T1105Ingress Tool TransferEvidence5

after a successful login, different commands are executed to download and run the malware

T1571Non-Standard PortEvidence3

P2PInfect peers’ communication occurs over non-standard ports.

Impact

2 techniques
T1486Data Encrypted for ImpactEvidence3

While our telemetry indicated that no second-stage payload was ever executed, this botnet has been observed in the wild to remain dormant for extended periods before delivering ransomware and crypto miners.

T1496Resource HijackingEvidence4

“The Rust-based P2PInfect worm further supports ... cryptocurrency mining.”

Indicators of compromise

Observables

245 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+10 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching245Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities3CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping37Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.