Urgent Vulnerability Notice: Log4Shell
What You Need to Know:
Security teams are in a hurry to patch an unknown active vulnerability that was found in Apache’s Log4j and is now named Log4Shell. Log4j is a Java-based open-source library used by apps and services, and the newly found vulnerability could allow an attacker to compromise millions of devices across the internet. The first proof-of-concept of the vulnerability was published on GitHub yesterday, Dec 9, 2021, and attackers are actively scanning the internet looking for vulnerable servers.
Log4Shell (CVE-2021-44228) allows remote code execution (RCE) on vulnerable servers, which gives the attacker the ability to import malware that would compromise machines. Almost every network security system runs on some kind of logging process, which means a popular library like log4j has a vast reach. Logging is a process in which applications keep a running list of activities they have performed that can later be reviewed in case of an error. Millions of applications use Log4j for logging and if an attacker has the app, he can compromise it by logging a special string of characters. Additionally, it would be relatively easy for an attacker to seize control of targeted servers.
Initially seen on sites hosting Minecraft servers, attackers discovered the vulnerability could be triggered by hosting chat messages. Apple iCloud and a gaming platform called Steam have already been found to be vulnerable. Versions of Log4j affected by the flaw are as follows:
- 2.0-beta9 up to and including 2.14.1
Apache Log4j released a new version of the software (2.15.0) within one day of the compromise surfacing. Applications using Apache Struts, iCloud, Steam, Twitter, Cloudflare, Amazon, and the Tesla website are all vulnerable. This vulnerability has a critical score of 10.0 and it is advised that you patch immediately. This is a rapidly evolving situation where known affected products and detection methods are still being discovered.
Although home users have turned aware from Java-based software, popular games like Minecraft still use it. The vulnerability was initially reported to Apache by an Alibaba Cloud Security team member in November 2021. CVE-2021-44228 impacts default configurations for the following Apache frameworks:
- ApacheStruts2
- Apache Solr
- Apache Druid
- Apache Flink
- Apache Flume
- Apache Kafka
- Apache Dubbo and possibly many more
Essentially, all companies that use any of the above products are vulnerable to Log4Shell attacks, including Amazon, Twitter, Steam, Tencent, Baidu, DIDI, JD, NetEase, and thousands more.
Towerwall Recommendations:
- Please patch your devices as soon as possible with the latest version of Log4j. Apache has released version 2.15.0 here.
- Apache Log4j recommends the following temporary mitigation if upgrading is not possible:
- In releases >=2.10, this behavior can be mitigated by setting either the system property log4j2.formatMsgNoLookups or the environment variable LOG4J_FORMAT_MSG_NO_LOOKUPS to true.
- For releases from 2.0-beta9 to 2.10.0, the mitigation is to remove the JndiLookup class from the classpath: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class.
- Towerwall recommends that your organization complete inventory and assessment of internally developed code and external vendor tools.
Detection Methodology:
- Monitor network traffic for communication with known IPs/domains exploiting this vulnerability (see IOCs section)
- Configure NIDS devices with known Log4shell snort/suricata rules
- Search Java application logs for the following regex string: \$\{jndi:(ldap[s]?|rmi|dns):/[^\n]+
Currently Known Affected Software:
- Druid
- ElasticSearch
- Minecraft
- Struts2
- Ghidra
- Solr
- Apple
- Steam
- Tesla
YARA Rules:
Indications of Compromise (IoCs):
As this situation continues to develop, new IOCs will be added to the following links:
- https://gist.github.com/gnremy/c546c7911d5f876f263309d7161a7217
- https://otx.alienvault.com/pulse/61b392cc57bf8855ae21bacf
- https://otx.alienvault.com/pulse/61b37c3acdabe5ac09c5b500
REFERENCES:
- The Internet’s biggest players are all affected by critical Log4Shell 0-day | Ars Technica
- https://nakedsecurity.sophos.com/2021/12/10/log4shell-java-vulnerability-how-to-safeguard-your-servers/
- ‘Extremely bad’ vulnerability found in widely used logging system – The Verge
- ‘Log4Shell’ vulnerability poses critical threat to applications using ‘ubiquitous’ Java logging package Apache Log4j | The Daily Swig (portswigger.net)
- Log4j – Apache Log4j Security Vulnerabilities
- New zero-day exploit for Log4j Java library is an enterprise nightmare (bleepingcomputer.com)
- Emerging threat details on CVE-2021-44228 in Apache Log4j · GitHub
- Log4j zero-day gets security fix just as scans for vulnerable systems ramp up – The Record by Recorded Future
If you have any questions about this vulnerability or your information security needs, please contact me directly at 774-204-0700.