Skip to content
Threat Feed
high threat exploited PoC updated

Log4j Exploitation Attempt via Java Outbound Connections

This analytic detects potential Log4j (CVE-2021-44228) exploitation attempts through outbound network connections from Java processes to default LDAP and RMI ports, indicative of malicious JNDI lookups for remote code execution.

CVE search metadata

CVE search record: CVE-2021-26855. Severity: critical. CVSS: 9.1. EPSS: 100.00%. KEV: yes. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

CVE search record: CVE-2023-32315. Severity: high. CVSS: 8.6. EPSS: 100.00%. KEV: yes. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

CVE search record: CVE-2024-36401. Severity: critical. CVSS: 9.8. EPSS: 99.81%. KEV: yes. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

CVE search record: CVE-2021-36260. Severity: critical. CVSS: 9.8. EPSS: 99.87%. KEV: yes. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

CVE search record: CVE-2024-21762. Severity: critical. CVSS: 9.8. EPSS: 80.84%. KEV: yes. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

CVE search record: CVE-2021-44228. KEV: no. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

CVE search record: CVE-2020-25078. KEV: no. Product: Apache Shiro, BIG-IP, Exchange Server, FortiOS, GeoServer, Hi3516/Hi3518/Hi3519-based DVR/NVR devices, Hikvision Products, IOS XE Web UI, Openfire, React Server Components, SharePoint, Zimbra Collaboration Suite. Brief: Log4j Exploitation Attempt via Java Outbound Connections. Brief link: https://feed.craftedsignal.io/briefs/2024-01-log4j-java-outbound/

Triage facts

Revision 1
Applicability
Apache Shiro, BIG-IP +10
Evidence
Confirmed activeHigh confidence
Severity
High
Sources
4 public sources
Freshness
Revision 1Jan 3, 18:22 UTC
Detection
2 rules
Vulnerabilities
7 CVEs

What's new

  • 1. exploited:true; KEV CVE-2021-26855; KEV CVE-2023-32315; KEV CVE-2024-36401; KEV CVE-2021-36260; KEV CVE-2024-21762 Nov 20, 03:10 via cisa-kev
  • 2. added CVE-2021-26855 +4; OS windows Jun 24, 10:02 via securelist
  • 3. poc_available; added CVE-2020-25078 +1 May 26, 14:19 via sploitus

Overview

This brief focuses on detecting attempts to exploit the Log4j vulnerability (CVE-2021-44228) by monitoring outbound network connections from Java processes. The exploitation involves using specially crafted requests that force Java applications to make outbound connections to malicious LDAP or RMI servers. These requests trigger JNDI lookups, potentially downloading and executing arbitrary code. This activity is detected by monitoring process execution and network traffic, specifically outbound connections from "java.exe" or "javaw.exe" to ports 389, 636, 1099, and 1389. Defenders should prioritize monitoring systems where Java applications are running, particularly those exposed to external inputs.

Attack Chain

  1. The attacker sends a malicious request containing a JNDI lookup string to a vulnerable application.
  2. The Log4j library parses the malicious string and initiates a JNDI lookup.
  3. The vulnerable Java process (java.exe or javaw.exe) attempts to resolve the JNDI resource, resulting in an outbound network connection to a specified port (389, 636, 1099, or 1389).
  4. The Java process makes a connection to a malicious LDAP or RMI server controlled by the attacker.
  5. The malicious server provides a Java class file containing malicious code.
  6. The vulnerable Java process downloads the malicious Java class file.
  7. The Java process executes the downloaded malicious code.
  8. The attacker achieves remote code execution on the targeted system.

Impact

Successful exploitation of the Log4j vulnerability (CVE-2021-44228) can lead to remote code execution, allowing attackers to gain complete control over affected systems. This can result in data breaches, system compromise, and further lateral movement within the network. The vulnerability affected numerous organizations across various sectors, making it a critical threat for defenders to address. Unpatched systems are at high risk of compromise.

Recommendation

  • Deploy the Sigma rule Detect Java Outbound Connections to LDAP/RMI Ports to identify potentially malicious network connections originating from Java processes (logsource: network_connection, process_creation).
  • Investigate and validate any alerts generated by the Sigma rule Detect Java Outbound Connections to LDAP/RMI Ports to determine if the connections are legitimate or indicative of exploitation (logsource: network_connection, process_creation).
  • Review and tune the provided Sigma rules, specifically adjusting the outbound_network_connection_from_java_using_default_ports_filter, to reduce false positives based on known legitimate Java applications in your environment.
  • Patch vulnerable Log4j instances to the latest version to remediate the vulnerability (CVE-2021-44228).

Detection coverage 2

Detect Java Outbound Connections to LDAP/RMI Ports

high

Detects outbound network connections from Java processes to default ports used by LDAP and RMI protocols, indicating potential Log4j exploitation.

sigma tactics: cve-2021-44228, initial_access, vulnerability techniques: T1133, T1190 sources: network_connection, windows

Detect Java Process Creation for Log4j Exploitation

low

Detects the execution of Java processes that might be exploited due to the Log4j vulnerability, useful for correlation with network events.

sigma tactics: cve-2021-44228, initial_access, vulnerability techniques: T1133, T1190 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →