Apache ActiveMQ Vulnerability Used To Deploy LockBit Ransomware via RDP Access

In a recent incident, threat actors exploited a vulnerability (CVE-2023-46604) in an Apache ActiveMQ server to gain initial access to an organization’s network.

Despite being evicted after the first intrusion, they successfully breached the same server 18 days later, leading to the deployment of LockBit ransomware via Remote Desktop Protocol (RDP).

The attack began in February 2024 when the threat actor targeted an internet-facing Apache ActiveMQ server vulnerable to CVE-2023-46604.

They exploited this vulnerability, leveraging a malicious XML configuration file in a Java Spring class. This XML contained a command to download a payload from a remote server, which was executed on the compromised server using Windows CertUtil.

The payload turned out to be a Metasploit stager, allowing the attacker to escalate privileges and gain SYSTEM-level access.

The actor used lateral movement, leveraging SMB traffic and Metasploit payloads to propagate across the network and compromise multiple systems. During this phase, they accessed the LSASS process memory and gathered credentials, which were crucial for their next steps.

Post-Exploitation and RDP Access

After the initial compromise, the threat actor returned 18 days later to exploit the same unpatched Apache ActiveMQ server.

Once back in the network, they repeated their previous actions: escalating privileges, accessing LSASS memory, and performing lateral movement.

ActiveMQ Exploit Deploys LockBit (Source: thedfirreport)
ActiveMQ Exploit Deploys LockBit (Source: thedfirreport)

This time, however, the attacker used the credentials extracted in the first round to log into other servers via RDP, including backup and file servers.

The attacker installed the AnyDesk remote access tool and configured RDP for persistence. With RDP access, they dropped and executed LockBit ransomware on multiple hosts across the network.

The ransomware files, identified as LB3_pass.exe and LB3.exe, were executed interactively via RDP sessions.

Interestingly, the ransomware’s ransom note was modified, directing victims to use Session messaging rather than the usual LockBit method of directing them to a Tor leak site.

LockBit Ransomware Deployment

The ransomware was deployed across various systems, including backup servers and file servers.

The attacker executed the ransomware with specific flags, which were likely designed to trigger its SMB spreading mechanism. The ransomware’s execution encrypted files across the network, with ransom notes left on affected systems.

ActiveMQ Exploit Deploys LockBit (Source: thedfirreport)
ActiveMQ Exploit Deploys LockBit (Source: thedfirreport)

The use of RDP for ransomware deployment highlights the importance of securing remote access, as RDP served as the primary vector for the execution and spread of the ransomware.

After approximately four hours of activity, the threat actor ceased their operations, leaving behind a trail of encrypted files and ransom demands.

According to The Dfir Report, this attack exemplifies the risks of unpatched vulnerabilities in internet-facing systems and the potential for attackers to return even after initial eviction.

Organizations must prioritize patching known vulnerabilities, securing remote access, and monitoring for signs of lateral movement to mitigate the risk of ransomware attacks like LockBit.

ActiveMQ Exploit Deploys LockBit (Source: thedfirreport)
ActiveMQ Exploit Deploys LockBit (Source: thedfirreport)
IndicatorTypeValue
SHA256RansomwareC8646CFB574FF2C6F183C3C3951BF6B2C6CF16FF8A5E949A118BE27F15962FAE ​
SHA256Ransomware8CEEE89550C521BA43F59D24BA53A22A3B69EAD0FCE118508D0A87A383D6A7B6 ​
IPC2/AnyDesk166.62.100.52

The attacker’s use of a leaked LockBit builder further demonstrates the evolving sophistication of ransomware operations, underscoring the criticality of timely detection and response to prevent widespread damage.

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

Varshini
Varshini
Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies..

Trending News

Related Stories