Name:Java Base64 Decoder Argument Exceptions id:7b56e29e-c7c9-4b22-8fce-f22bf0f1db67 version:1 date:None author:Onur Mustafa Erdogan, Nasreddine Bencherchali, Splunk status:production type:Anomaly Description:The analytic finds Java Base64 decoder references and argument exceptions on the same JVM process within one minute. JIT messages add context when present. These logs indicate decoder activity and errors, but do not prove that a native overwrite or code execution occurred.
Data_source:
-Java HotSpot Exceptions
-Java HotSpot JIT
search:(`java_hotspot_jit` OR `java_hotspot_exceptions`) ( "*Input byte array has wrong*" OR "*IllegalArgumentException*" OR "*Base64$Decoder*" OR "*java/util/Base64*" OR "*OSR invalidation of lower level*" )
| rex field=_raw "^\[(?<jvm_event_time_raw>[^\]]+)\]\[(?<jvm_pid_raw>\d+)\]\[(?<jvm_level_raw>[^\]]+)\]\[(?<jvm_tags_raw>[^\]]+)\]\s*(?<jvm_message_raw>.*)"
| stats count min(event_time) AS firstTime max(event_time) AS lastTime max(has_argument) AS has_argument max(has_decoder) AS has_decoder values(sourcetype) AS sourcetype dc(sourcetype) AS dc_sourcetype values(source) AS source dc(source) AS dc_source values(reason) AS reason values(jvm_message) AS jvm_message BY _time host process_id
how_to_implement:Configure java_hotspot_exceptions and java_hotspot_jit for the indexes and sourcetypes in your environment. A stock HotSpot JVM does not create exception or JIT log files; its default unified logging sends warning and error messages to stdout. Tomcat JULI logs under CATALINA_BASE/logs, Spring Boot's default console logs, and Elasticsearch application logs are separate from these JVM diagnostics.
Add `-Xlog:exceptions=debug:file=/var/log/myapp/exceptions-%p.log:utctime,pid,level,tags:filecount=8,filesize=16m` to the Java startup options. To collect JIT context, also add `-Xlog:jit+compilation=debug:file=/var/log/myapp/jit-%p.log:utctime,pid,level,tags:filecount=8,filesize=16m`. Use a writable directory and monitor both files and rotations. Tomcat scripts accept CATALINA_OPTS in setenv.sh or setenv.bat; a Windows Tomcat service uses its Java options; Spring Boot uses the Java service or container launch command; and Elasticsearch uses jvm.options.d under its config directory or /etc/elasticsearch/jvm.options.d for Debian/RPM packages. The Java HotSpot Exceptions and Java HotSpot JIT data source descriptions give the Splunk input and field-extraction settings.
Search-time extraction in props.conf is optional. Configure EXTRACT-jvm_unified or a shared REPORT transform if you want reusable jvm_pid and jvm_message fields; otherwise this search parses the decorated _raw lines with `rex` and coalesces the raw fields with any pre-extracted values. Keep the same host value for all logs from one JVM and verify the raw format or extracted fields with representative events. The JIT source adds context; an exception source alone can satisfy both required terms when it contains the exact Base64 decoder message `Input byte array has wrong 4-byte ending unit`. Decoder references on separate continuation lines may lack the PID decorator and cannot be joined reliably with single-line event breaking. Neither log proves that the intrinsic overwrite occurred.
known_false_positives:Applications that routinely decode malformed Base64 can produce these events. The decoder and exception may come from separate requests within the same minute; review the surrounding application and network events.
References: -https://calif.io/java4shell/ drilldown_searches:
: analytic_story:['Java4Shell - CVE-2026-114938']