Java HotSpot Fatal Error Log Created

Identifies the creation of a Java HotSpot fatal error log by a Java process. The JVM writes "hs_err_pid*.log" after a fatal error, such as an access violation, segmentation fault, or unrecoverable native-code failure. This may indicate an unsuccessful attempt to exploit a Java memory-corruption vulnerability. In particular, failed Java4Shell (CVE-2026-114938) heap-grooming or corruption attempts may crash the JVM before remote code execution succeeds. This event indicates a JVM crash and possible exploit attempt; it does not by itself establish successful exploitation or remote code execution.

Elastic rule (View on GitHub)

  1[metadata]
  2creation_date = "2026/11/18"
  3integration = ["endpoint", "auditd_manager", "m365_defender", "sentinel_one_cloud_funnel", "crowdstrike"]
  4maturity = "production"
  5updated_date = "2026/11/18"
  6
  7[rule]
  8author = ["Elastic"]
  9description = """
 10Identifies the creation of a Java HotSpot fatal error log by a Java process. The JVM writes "hs_err_pid*.log" after a
 11fatal error, such as an access violation, segmentation fault, or unrecoverable native-code failure. This may indicate
 12an unsuccessful attempt to exploit a Java memory-corruption vulnerability. In particular, failed Java4Shell
 13(CVE-2026-114938) heap-grooming or corruption attempts may crash the JVM before remote code execution succeeds.
 14This event indicates a JVM crash and possible exploit attempt; it does not by itself establish successful exploitation
 15or remote code execution.
 16"""
 17false_positives = [
 18    """
 19    JVM defects, incompatible or vulnerable JNI libraries, Java agents, profilers, faulty native modules, hardware
 20    problems, and resource exhaustion can legitimately cause HotSpot to terminate and write a fatal error log.
 21    """,
 22]
 23from = "now-9m"
 24index = [
 25    "logs-endpoint.events.file-*",
 26    "auditbeat-*",
 27    "logs-auditd_manager.auditd-*",
 28    "logs-m365_defender.event-*",
 29    "logs-sentinel_one_cloud_funnel.*",
 30    "logs-crowdstrike.fdr*",
 31]
 32language = "eql"
 33license = "Elastic License v2"
 34name = "Java HotSpot Fatal Error Log Created"
 35note = """## Triage and analysis
 36
 37> **Disclaimer**:
 38> This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and
 39> relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting
 40> it to suit your specific environment and operational needs.
 41
 42### Investigating Java HotSpot Fatal Error Log Created
 43
 44The HotSpot JVM creates an `hs_err_pid<PID>.log` file when it encounters a fatal error it cannot recover from. The file
 45typically records the signal or exception, problematic frame, JVM and operating-system versions, command line, loaded
 46native libraries, thread state, and memory details.
 47
 48Java4Shell (CVE-2026-114938) is a memory-corruption vulnerability in OpenJDK's hardware-accelerated Base64 decoder.
 49Exploitation requires application-specific heap grooming, and unsuccessful object placement or corruption may crash
 50the JVM. Other attempts to exploit Java, the JVM, JNI, JIT, deserialization, or native libraries may produce the same
 51artifact. The existence of this file is evidence of a JVM crash, not proof that exploitation succeeded.
 52
 53### Possible investigation steps
 54
 55- Review `file.path`, `file.name`, `process.name`, `process.executable`, `process.command_line`, `process.entity_id`, and
 56  the affected user and host. Extract the PID from the filename and correlate it with process and service telemetry.
 57- Preserve and inspect the complete error log. Record the fatal signal or exception, problematic frame, JVM build,
 58  active VM flags, loaded native libraries, current thread, and native stack.
 59- Determine which Java application crashed and whether it is externally reachable or processes untrusted Base64 data,
 60  authentication values, uploads, messages, or network responses.
 61- For possible Java4Shell activity, verify whether the host uses an affected OpenJDK-derived runtime on x86-64 hardware
 62  with AVX-512 VBMI support. Review requests before the crash for repeated decoder warm-up activity, malformed Base64
 63  tails such as 64 `A` characters followed by `=`, retries, unusual request streaming, and repeated requests from the
 64  same source.
 65- Review application, reverse-proxy, load-balancer, and network telemetry immediately before the crash. A Java client
 66  may also be exposed when it decodes attacker-controlled data received from a malicious server.
 67- Search the host for additional `hs_err_pid*.log` files. Repeated crashes or a crash pattern shared by several Java
 68  servers may indicate exploit rehearsal or repeated heap-grooming attempts.
 69- Hunt for evidence of successful follow-on activity, including Java spawning shells or scripting interpreters,
 70  unexpected outbound connections, payload downloads, suspicious file creation, credential access, or persistence.
 71
 72### False positive analysis
 73
 74- Correlate the error log's problematic frame and loaded native libraries with known JVM, application, Java-agent, JNI,
 75  profiler, or driver defects and recent upgrades.
 76- Check service health and infrastructure telemetry for memory exhaustion, disk problems, hardware instability, or
 77  administrative crash testing.
 78- Treat a reproducible crash caused by a known benign defect as benign only after the error signature, application
 79  version, triggering workflow, and change history all agree. Avoid broad exceptions based only on `java*` or the
 80  `hs_err_pid*.log` filename.
 81
 82### Response and remediation
 83
 84- Preserve the HotSpot error log, application and proxy logs, process telemetry, relevant request data, and any core
 85  dump or minidump before restarting or rebuilding the service.
 86- If exploitation cannot be ruled out, remove the affected service from public traffic and isolate the host when its
 87  operational role permits.
 88- Upgrade affected Java runtimes. For Java4Shell, follow current vendor guidance; temporary mitigations include
 89  disabling Base64 intrinsics with `-XX:-UseBASE64Intrinsics` or limiting AVX use with `-XX:UseAVX=2` on x86-64.
 90- Scope peer systems for the same JVM version, crash signature, source infrastructure, and Java follow-on behavior.
 91"""
 92references = [
 93    "https://calif.io/java4shell",
 94    "https://www.oracle.com/security-alerts/cspunov2026.html",
 95]
 96risk_score = 47
 97rule_id = "7829cfa6-2378-4f6a-bd29-5dde4549f45e"
 98setup = """## Setup
 99
100This rule requires ECS-compatible file creation events that populate `event.type`, `process.name`, and `file.name`.
101It searches data from Elastic Defend, Elastic Endgame, Auditbeat, Auditd Manager, Microsoft Defender XDR, SentinelOne
102Cloud Funnel, and CrowdStrike Falcon Data Replicator. Availability of process attribution on file events depends on
103the source product and integration configuration.
104
105On Linux, Auditbeat or Auditd Manager must be configured to collect the file-creation syscall that writes the HotSpot
106error log and normalize it as an ECS file event. Auditd does not collect every file creation by default. Because the JVM
107normally writes `hs_err_pid*.log` to its working directory, and `-XX:ErrorFile` can redirect it elsewhere, audit policy
108coverage must match the Java service's possible output paths. Broad file-creation auditing can generate significant
109event volume.
110"""
111severity = "medium"
112tags = [
113    "Domain: Endpoint",
114    "OS: Windows",
115    "OS: Linux",
116    "OS: macOS",
117    "Use Case: Threat Detection",
118    "Use Case: Vulnerability",
119    "Tactic: Initial Access",
120    "Tactic: Execution",
121    "Tactic: Impact",
122    "Data Source: Elastic Defend",
123    "Data Source: Auditd Manager",
124    "Data Source: Microsoft Defender XDR",
125    "Data Source: SentinelOne",
126    "Data Source: Crowdstrike",
127    "Resources: Investigation Guide",
128    "Rule Type: Event Correlation (EQL)",
129    "Platform: Windows",
130    "Platform: Linux",
131    "Platform: macOS",
132    "Vuln: CVE-2026-114938",
133]
134timestamp_override = "event.ingested"
135type = "eql"
136
137query = '''
138file where host.os.type in ("windows", "linux", "macos") and
139  event.type == "creation" and
140  process.name : "java*" and
141  file.name : "hs_err_pid*.log"
142'''
143
144[rule.investigation_fields]
145field_names = [
146    "@timestamp",
147    "host.id",
148    "host.name",
149    "host.os.type",
150    "host.architecture",
151    "user.id",
152    "user.name",
153    "process.entity_id",
154    "process.pid",
155    "process.name",
156    "process.executable",
157    "process.command_line",
158    "file.path",
159    "file.name",
160    "file.size",
161    "file.hash.sha256",
162]
163
164[[rule.threat]]
165framework = "MITRE ATT&CK"
166
167[[rule.threat.technique]]
168id = "T1190"
169name = "Exploit Public-Facing Application"
170reference = "https://attack.mitre.org/techniques/T1190/"
171
172[rule.threat.tactic]
173id = "TA0001"
174name = "Initial Access"
175reference = "https://attack.mitre.org/tactics/TA0001/"
176
177[[rule.threat]]
178framework = "MITRE ATT&CK"
179
180[[rule.threat.technique]]
181id = "T1203"
182name = "Exploitation for Client Execution"
183reference = "https://attack.mitre.org/techniques/T1203/"
184
185[rule.threat.tactic]
186id = "TA0002"
187name = "Execution"
188reference = "https://attack.mitre.org/tactics/TA0002/"
189
190[[rule.threat]]
191framework = "MITRE ATT&CK"
192
193[[rule.threat.technique]]
194id = "T1499"
195name = "Endpoint Denial of Service"
196reference = "https://attack.mitre.org/techniques/T1499/"
197
198[[rule.threat.technique.subtechnique]]
199id = "T1499.004"
200name = "Application or System Exploitation"
201reference = "https://attack.mitre.org/techniques/T1499/004/"
202
203[rule.threat.tactic]
204id = "TA0040"
205name = "Impact"
206reference = "https://attack.mitre.org/tactics/TA0040/"

Triage and analysis

Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

Investigating Java HotSpot Fatal Error Log Created

The HotSpot JVM creates an hs_err_pid<PID>.log file when it encounters a fatal error it cannot recover from. The file typically records the signal or exception, problematic frame, JVM and operating-system versions, command line, loaded native libraries, thread state, and memory details.

Java4Shell (CVE-2026-114938) is a memory-corruption vulnerability in OpenJDK's hardware-accelerated Base64 decoder. Exploitation requires application-specific heap grooming, and unsuccessful object placement or corruption may crash the JVM. Other attempts to exploit Java, the JVM, JNI, JIT, deserialization, or native libraries may produce the same artifact. The existence of this file is evidence of a JVM crash, not proof that exploitation succeeded.

Possible investigation steps

  • Review file.path, file.name, process.name, process.executable, process.command_line, process.entity_id, and the affected user and host. Extract the PID from the filename and correlate it with process and service telemetry.
  • Preserve and inspect the complete error log. Record the fatal signal or exception, problematic frame, JVM build, active VM flags, loaded native libraries, current thread, and native stack.
  • Determine which Java application crashed and whether it is externally reachable or processes untrusted Base64 data, authentication values, uploads, messages, or network responses.
  • For possible Java4Shell activity, verify whether the host uses an affected OpenJDK-derived runtime on x86-64 hardware with AVX-512 VBMI support. Review requests before the crash for repeated decoder warm-up activity, malformed Base64 tails such as 64 A characters followed by =, retries, unusual request streaming, and repeated requests from the same source.
  • Review application, reverse-proxy, load-balancer, and network telemetry immediately before the crash. A Java client may also be exposed when it decodes attacker-controlled data received from a malicious server.
  • Search the host for additional hs_err_pid*.log files. Repeated crashes or a crash pattern shared by several Java servers may indicate exploit rehearsal or repeated heap-grooming attempts.
  • Hunt for evidence of successful follow-on activity, including Java spawning shells or scripting interpreters, unexpected outbound connections, payload downloads, suspicious file creation, credential access, or persistence.

False positive analysis

  • Correlate the error log's problematic frame and loaded native libraries with known JVM, application, Java-agent, JNI, profiler, or driver defects and recent upgrades.
  • Check service health and infrastructure telemetry for memory exhaustion, disk problems, hardware instability, or administrative crash testing.
  • Treat a reproducible crash caused by a known benign defect as benign only after the error signature, application version, triggering workflow, and change history all agree. Avoid broad exceptions based only on java* or the hs_err_pid*.log filename.

Response and remediation

  • Preserve the HotSpot error log, application and proxy logs, process telemetry, relevant request data, and any core dump or minidump before restarting or rebuilding the service.
  • If exploitation cannot be ruled out, remove the affected service from public traffic and isolate the host when its operational role permits.
  • Upgrade affected Java runtimes. For Java4Shell, follow current vendor guidance; temporary mitigations include disabling Base64 intrinsics with -XX:-UseBASE64Intrinsics or limiting AVX use with -XX:UseAVX=2 on x86-64.
  • Scope peer systems for the same JVM version, crash signature, source infrastructure, and Java follow-on behavior.

References

Related rules

to-top