Skip to navigation

Threat reportRansomwareTL-2026-3952

Apache ActiveMQ Exploit (CVE-2023-46604) Leads to LockBit Ransomware

criticalACTIVE

The DFIR Report documents an intrusion in which an unattributed actor exploited CVE-2023-46604 in an internet-exposed Apache ActiveMQ server, deployed a Metasploit stager/Meterpreter and AnyDesk, dumped LSASS credentials, moved laterally, and deployed LockBit ransomware built with the leaked LockBit builder. First disclosed .

Key facts

IdentifiersTL-2026-3952, CVE-2023-46604
SeverityCRITICAL
CVSS9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2023-46604 (added )
EPSSCVE-2023-46604: 99.8% (99.9th percentile)
Affected productsApache Software Foundation Apache ActiveMQ (activemq-client, activemq-openwire-legacy)
Weaknesses (CWE)CWE-502
MalwareAnyDesk, LockBit, LockBit 3.0 - S1202, Lockbit3, Meterpreter (Android)
ToolsAdvanced IP Scanner, AnyDesk, AnyDesk client ID 1312001388, Metasploit / Meterpreter, Netscan, certutil - S0160, metasploit
MITRE ATT&CK techniquesT1003.001 LSASS Memory, T1018 Remote System Discovery, T1021.001 Remote Desktop Protocol, T1027 Obfuscated Files or Information, T1046 Network Service Discovery, T1059.001 PowerShell, T1059.003 Windows Command Shell, T1078.002 Domain Accounts, T1087.002 Domain Account, T1140 Deobfuscate/Decode Files or Information, T1190 Exploit Public-Facing Application, T1219 Remote Access Tools and 7 more in the attack flow
MotivationFINANCIAL
Detection rules9 (1 shown free)
Sources7 cited sources

Detection coverage

As of 2026-10-20, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3952 across Splunk SPL, Microsoft KQL and Sigma, covering 17 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: CVE-2023-46604 ActiveMQ Java Process Spawning certutil/Shell Download — Exploitation

Detects the post-exploitation child-process pattern of CVE-2023-46604 (Apache ActiveMQ OpenWire deserialization via ClassPathXmlApplicationContext). After the Spring XML payload loads, the ActiveMQ java.exe process spawns cmd/PowerShell/certutil, and CertUtil (certutil -urlcache -split -f) pulls the Metasploit stager (uFSyLszKsuR.exe) from 166.62.100.52 into Temp. A Java parent launching a download tool or shell is almost never legitimate on a broker host.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1059.003
  • Data sources: sysmon, index=sysmon sourcetype=XmlWinEventLog:Microsoft-Windows-Sysmon/Operational, DeviceProcessEvents
  • Severity: critical
  • Confidence: high

Splunk SPL

index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h (ParentImage="*\\java.exe" OR ParentImage="*\\javaw.exe") (Image="*\\certutil.exe" OR Image="*\\cmd.exe" OR Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*\\bitsadmin.exe" OR Image="*\\mshta.exe" OR Image="*\\curl.exe") | eval activemq_parent=if(like(lower(ParentCommandLine),"%activemq%"),1,0), certutil_download=if(like(lower(CommandLine),"%urlcache%") AND like(lower(CommandLine),"%-split%"),1,0), known_ioc=if(like(lower(CommandLine),"%ufsylszksur.exe%") OR like(CommandLine,"%166.62.100.52%"),1,0) | where activemq_parent=1 OR certutil_download=1 OR known_ioc=1 | stats count min(_time) as first_seen max(_time) as last_seen values(Image) as child_images values(CommandLine) as child_commands by host, User, ParentImage | convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ("java.exe", "javaw.exe")
| where FileName in~ ("certutil.exe", "cmd.exe", "powershell.exe", "pwsh.exe", "bitsadmin.exe", "mshta.exe", "curl.exe")
| where InitiatingProcessCommandLine has "activemq"
    or (FileName =~ "certutil.exe" and ProcessCommandLine has "urlcache" and ProcessCommandLine has "-split")
    or ProcessCommandLine has_any ("uFSyLszKsuR.exe", "166.62.100.52")
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, SHA256
| order by Timestamp desc

Sigma

title: ActiveMQ Java Process Spawning Download or Shell Child - CVE-2023-46604
id: 7c1d2e54-3a8b-4f6d-9b21-5e0a4c7d8f13
status: experimental
description: Detects a Java process (Apache ActiveMQ) spawning cmd, PowerShell or certutil download commands, the post-exploitation pattern of CVE-2023-46604 used to fetch a Metasploit stager.
references:
    - https://thedfirreport.com/2026/02/23/apache-activemq-exploit-leads-to-lockbit-ransomware/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-46604
author: Threadlinqs Team
date: 2026/10/20
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.003
    - attack.command-and-control
    - attack.t1105
    - attack.tool.metasploit
    - cve.2023-46604
logsource:
    category: process_creation
    product: windows
detection:
    selection_parent:
        ParentImage|endswith:
            - '\java.exe'
            - '\javaw.exe'
    selection_child:
        Image|endswith:
            - '\certutil.exe'
            - '\cmd.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\bitsadmin.exe'
            - '\mshta.exe'
            - '\curl.exe'
    selection_amq:
        ParentCommandLine|contains: 'activemq'
    selection_certutil:
        CommandLine|contains|all:
            - 'urlcache'
            - '-split'
    selection_ioc:
        CommandLine|contains:
            - 'uFSyLszKsuR.exe'
            - '166.62.100.52'
    condition: selection_parent and selection_child and (selection_amq or selection_certutil or selection_ioc)
falsepositives:
    - Legitimate ActiveMQ wrapper or maintenance scripts launching cmd.exe
    - Java-based installers or build agents invoking PowerShell on the same host
level: critical

Known false positives:

  • ActiveMQ service wrapper or admin maintenance scripts that legitimately launch cmd.exe from the Java process
  • Java-based build, deployment or installer tooling invoking PowerShell on the same host

Tuning notes: Scope to hosts running ActiveMQ (lookup of broker hostnames) and baseline the exact cmd.exe/powershell.exe command lines your wrapper scripts use, then allow-list them. Keep the certutil -urlcache -split branch and the known_ioc branch unfiltered; they should essentially never fire on a broker. Extend the Image list if you see curl/wget-style downloaders in your environment.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • CVE-2023-46604 Java-Dropped Executable in Temp/[indicator] (Metasploit Stager [indicator]) · unlock with TL Creds
  • Metasploit getsystem Named-Pipe Service (kesknq) and AnyDesk Service Install — Event 7045 · unlock with TL Creds
  • Metasploit Remote Service Execution with Obfuscated PowerShell (services.exe Parent) · unlock with TL Creds
  • CVE-2023-46604 ActiveMQ Broker Log ClassPathXmlApplicationContext Deserialization Error · unlock with TL Creds
  • Microsoft Defender Tampering via SystemSettingsAdminFlows.exe · unlock with TL Creds
  • LockBit 3.0 Leaked-Builder Binaries [indicator] / [indicator] (-psex SMB Spreader) · unlock with TL Creds
  • LSASS Memory Access from Injected Code (GrantedAccess 0x1010, CallTrace UNKNOWN) — Credential Dumping · unlock with TL Creds
  • Meterpreter C2 and AnyDesk Relay Connections to [indicator] / Ports 2460 and 6761 · unlock with TL Creds

Indicators of compromise

As of 2026-10-20, Threadlinqs Intelligence tracks 17 indicators of compromise for TL-2026-3952.

Sample indicators (3 of 17)

  • IP address: 166.62.100[.]52
  • File hash: C8646CFB574FF2C6F183C3C3951BF6B2C6CF16FF8A5E949A118BE27F15962FAE
  • File hash: 8CEEE89550C521BA43F59D24BA53A22A3B69EAD0FCE118508D0A87A383D6A7B6

Defanged, TLP:CLEAR. Full set of 17 indicators: unlock with TL Creds.

17 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Initial compromise occurred in mid-February 2024, the actor re-exploited the same server 18 days later, and ransomware executed in under 90 minutes from the second access.

Initial access was via CVE-2023-46604, a deserialization flaw (CWE-502) in the Apache ActiveMQ OpenWire protocol marshaller. The actor sent a crafted OpenWire command whose Throwable class-type field caused the broker to instantiate org.springframework.context.support.ClassPathXmlApplicationContext with a URL to an attacker-hosted Spring XML bean configuration. The XML ran OS commands with the ActiveMQ Java process as parent; CertUtil (certutil -urlcache -split -f) downloaded a Metasploit stager (uFSyLszKsuR.exe) to the user's Temp directory. The same technique was used in both intrusion rounds, with only file names changed.

Round one (mid-February 2024): roughly 40 minutes after exploitation the actor ran Metasploit getsystem, which created a service named kesknq executing cmd.exe /c echo kesknq > \\.\pipe\kesknq (named-pipe impersonation). LSASS memory was accessed from injected code (Sysmon GrantedAccess 0x1010, CallTrace UNKNOWN) on four hosts, including one holding a privileged service account. About an hour in, SMB traffic spiked toward other systems, consistent with scanning. AnyDesk was installed with an auto-start service (System Event ID 7045) and logged in from 166.62.100.52 (client ID 1312001388). Event logs were cleared (Event IDs 104 and 1102), a batch file rdp.bat configured RDP firewall rules and port 3389, and SystemSettingsAdminFlows.exe was used to disable Microsoft Defender settings on an Exchange server. On day two the actor ran discovery commands with syntax errors (e.g. netstat -t) and tried to add an already-privileged account to the domain admins group, then lost access.

Round two (18 days later): the actor re-exploited the same ActiveMQ server and reused the privileged service account credentials dumped in round one. Within about 20 minutes they moved laterally using Metasploit remote service execution (obfuscated PowerShell: string concatenation, {0}/{1} placeholders, Base64, Gzip) to domain controllers, dropped a renamed Advanced IP Scanner and netscan.exe, queried net group "domain admins", and RDP'd into backup and file servers (1-10 minutes per host). LockBit binaries LB3_pass.exe and LB3.exe (the latter with a -psex SMB spreader option) were staged in C:\Intel and user Downloads folders, copied over RDP and launched via an injected Winlogon process or Explorer. Ransom notes and desktop wallpaper were changed; the note directs victims to the Session messenger rather than the standard LockBit Tor/TOX infrastructure, which the report treats as evidence of an independent actor using the leaked builder. Defender blocked some Metasploit lateral-movement attempts. No data exfiltration was reported. Time to ransomware was about 419 hours from first access but under 90 minutes from the second access.

MITRE ATT&CK techniques by tactic:

Credential Access

T1003.001 LSASS Memory

Discovery

T1018 Remote System Discovery; T1046 Network Service Discovery; T1087.002 Domain Account

Lateral Movement

T1021.001 Remote Desktop Protocol; T1570 Lateral Tool Transfer

Defense Evasion

T1027 Obfuscated Files or Information; T1140 Deobfuscate/Decode Files or Information

Execution

T1059.001 PowerShell; T1059.003 Windows Command Shell; T1569.002 Service Execution

Privilege Escalation

T1078.002 Domain Accounts

Initial Access

T1190 Exploit Public-Facing Application

Command and Control

T1219 Remote Access Tools; T1571 Non-Standard Port

Impact

T1491.001 Internal Defacement

Persistence

T1543.003 Windows Service

defense-impairment

T1685 Disable or Modify Tools; T1685.005 Clear Windows Event Logs

Remediation

Patches

  • Apache ActiveMQ 5.15.16, 5.16.7, 5.17.6, 5.18.3 (activemq-client and activemq-openwire-legacy)

Immediate actions

  • Upgrade Apache ActiveMQ brokers and clients to 5.15.16, 5.16.7, 5.17.6 or 5.18.3 (or later) and remove OpenWire exposure from the internet
  • Block 166.62.100.52 (ports 2460 and 6761) at the perimeter and hunt for connections to it
  • Hunt for AnyDesk client ID 1312001388, unexpected AnyDesk services (Event ID 7045), and the kesknq service/named pipe
  • Rotate privileged service account credentials that were logged on to the ActiveMQ host or exposed in LSASS

Workarounds

  • Restrict network access to the OpenWire port (61616) to trusted hosts only
  • Monitor OpenWire traffic for ClassPathXmlApplicationContext in the Throwable field (Emerging Threats SIDs 2049045, 2049046, 2049385)

Longer-term hardening

  • Segment internet-facing message brokers from the internal network and restrict outbound traffic from them
  • Enable LSASS protection (RunAsPPL/Credential Guard) and avoid privileged service accounts on exposed servers
  • Alert on Java processes spawning cmd.exe, PowerShell or certutil
  • Alert on Security Event 1102 and System Event 104 log clearing and on Defender tampering via SystemSettingsAdminFlows.exe
  • Restrict unapproved remote access tools such as AnyDesk and maintain offline, tested backups

Affected and fixed versions

  • Apache Software Foundation — Apache ActiveMQ (activemq-client, activemq-openwire-legacy)
    Vulnerable versions: before 5.15.16; 5.16.0-5.16.6; 5.17.0-5.17.5; 5.18.0-5.18.2
    Fixed in: 5.15.16; 5.16.7; 5.17.6; 5.18.3

Timeline

  • CISA adds CVE-2023-46604 (Apache ActiveMQ OpenWire RCE) to the Known Exploited Vulnerabilities catalog; remediation due 2023-11-23.
  • About 40 minutes after exploitation the actor runs Metasploit getsystem (service/named pipe kesknq) and begins LSASS dumping; SMB scanning follows about an hour in; AnyDesk, rdp.bat, log clearing and Defender tampering are also observed in this round.
  • Mid-February 2024 (exact day not stated; date approximate): actor exploits CVE-2023-46604 on an internet-exposed ActiveMQ server and uses certutil to download a Metasploit stager (locked-ioc-7) from locked-ioc-8.
  • Day two (date approximate): actor runs discovery commands (netstat -t, domain admins group queries) and tries to add an account to a privileged group, then loses access.
  • Under 90 minutes after second access, LockBit binaries (locked-ioc-11, locked-ioc-9) are deployed across hosts over roughly four hours of activity; ransom notes direct victims to Session messenger.
  • About 20 minutes after re-access the actor uses the previously dumped privileged service account to reach domain controllers via Metasploit remote service execution, runs network scanners, and RDPs to backup and file servers.
  • About 18 days after first access (date approximate), the actor re-exploits the same ActiveMQ server using the same technique with different file names.
  • The DFIR Report publishes 'Apache ActiveMQ Exploit Leads to LockBit Ransomware'.

Sources cited

Other reports on CVE-2023-46604

Previous and next in ransomware

Drafted by the Threadlinqs research pipeline from 7 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats