Hunting for Log4Shell
The following analytic detects potential exploitation attempts of the Log4Shell vulnerability (CVE-2021-44228) by analyzing HTTP headers for specific patterns. It leverages the Web Datamodel and evaluates various…
Description
The following analytic detects potential exploitation attempts of the Log4Shell vulnerability (CVE-2021-44228) by analyzing HTTP headers for specific patterns. It leverages the Web Datamodel and evaluates various indicators such as the presence of `{jndi:`, environment variables, and common URI paths. This detection is significant as Log4Shell allows remote code execution, posing a severe threat to systems. If confirmed malicious, attackers could gain unauthorized access, execute arbitrary code, and potentially compromise sensitive data, leading to extensive damage and data breaches.
Detection logic
Detection requirements
- Platform
- ContainersESXiIaaSLinuxmacOSNetwork DevicesWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
- Log source category
- nginx_access
Known benign triggers
- It is highly possible you will find false positives, however, the base score is set to 2 for _any_ jndi found in raw logs. tune and change as needed, include any filtering.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| gist.github.com/MHaggis/1899b8554f38c8692a9fb0ceba60b44c | Only this detection cites it |
| gist.github.com/Neo23x0/e4c8b03ff8cdf1fa63b7d15db6e3860b#gistcomment-3994449 | Only this detection cites it |
| gist.github.com/olafhartong/916ebc673ba066537740164f7e7e1d72 | 2 |
| github.com/Neo23x0/signature-base/blob/master/yara/expl_log4j_cve_2021_44228.yar | Only this detection cites it |
| news.sophos.com/en-us/2021/12/12/log4shell-hell-anatomy-of-an-exploit-outbreak/ | Only this detection cites it |
| regex101.com/r/OSrm0q/1/ | Only this detection cites it |
| twitter.com/sasi2103/status/1469764719850442760?s=20 | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 158b68fa-5d1a-11ec-aac8-acde48001122
- Tagged by the source as
- CISA AA22-320ALog4Shell CVE-2021-44228Web ServerwebSplunk CloudSplunk EnterpriseSplunk Enterprise Securitynetwork
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1