How Cybereason Detects and Prevents Exploits Leveraging Log4Shell Vulnerability

Log4Shell is a vulnerability (CVE-2021-44228) impacting Apache Log4j which was disclosed on the project’s GitHub on December 9, 2021. The flaw has the highest possible severity rating of 10 and is pervasive. 

Cybereason has completed verification that this issue does not affect Cybereason products or services. Furthermore, Cybereason researchers released a "vaccine” for Log4Shell that is freely available, providing defenders with a relatively simple temporary workaround that requires only basic Java skills to implement and gives organizations some level of protection while they complete due diligence in the patching process.

If you believe your organization has potentially been compromised through the exploitation of CVE-2021-44228, please contact the Cybereason Incident Response Team

Prevent Attacks Leveraging Log4Shell

In addition to ensuring all of your systems are protected by Cybereason, we also continue to advise on remediation for the Log4Shell vulnerability directly, either through the vaccine released by Cybereason or through the manual remediation steps detailed at the end of this blog

In the interactive demonstration linked below, you can walk through an active MalOp™ where a Tomcat server has been compromised as a result of the Log4Shell vulnerability and the attacker is able to deploy a malicious webshell. Upon completion of the investigation, you will remediate the threat from within the AI-driven Cybereason XDR Platform

In this walkthrough, Prevention features were disabled to show the depth of the detection process; however, enabling the Prevention feature would have blocked the execution of the malicious webshell demonstrated as part of the Cybereason multilayered defense:


You can view a complete demo illustrating how the Cybereason XDR Platform can uncover malicious activity resulting from the exploitation of the Log4Shell vulnerability HERE.

Threat Hunting for Log4Shell Activity

In the event that you have identified potentially impacted systems that were not running Cybereason, or if you have recently deployed Cybereason as part of your incident response, we recommend threat hunting in your environment for malicious activity resulting from the exploitation of this vulnerability. 

Cybereason customers can use the following queries by attaching the query to the Cybereason URL like so:[paste hunt query here]:

    • Java processes with incoming connections on LDAP ports: /#/s/search?queryString=0<-Process"name:%3Djava"->connections"serverPort:%3D3268%7C389%7C636"
    • Bash or SH processes spawning on Linux hosts from web server processes: /#/s/search?queryString=1<-Machine"osType:%3DLINUX"->processes"name:%3Dapache%7Capache2%7Chttpd%7Cjava%7Cjavaw"->children"elementDisplayName:%3Dbash%7Csh"
    • Connections to IOCs confirmed in exploitation of the vulnerability:
    • Find applications that use Log4j2:

First to Your Fight

Cybereason is dedicated to teaming with Defenders to end cyber attacks from endpoints to the enterprise to everywhere. Learn more about Cybereason XDR powered by Google Chronicle, check out our Extended Detection and Response (XDR) Toolkit, or schedule a demo today to learn how your organization can benefit from an operation-centric approach to security.


About the Authors:

Ken WestinKen Westin

Ken Westin is Director of Security Strategy at Cybereason. Ken has been in the security field for over 15 years, working with companies to bolster their security posture through threat hunting, insider threat programs and vulnerability research. In the past, he has worked closely with law enforcement, helping to unveil organized crime groups. His work has been featured in Wired, Forbes, New York Times, Good Morning America and others, and he is regularly reached out to as an expert on cybersecurity, cybercrime and surveillance.

Justin BJustin Buchanan

Justin Buchanan, Director of Product Marketing, is responsible for the go-to-market strategy of Cybereason’s Endpoint Protection Platform (EPP) offerings. Driven by his background in IT and his deep understanding of customers’ desired outcomes, Justin is passionate about how Cybereason can help customers—and the security industry as a whole—reverse the adversary advantage and empower defenders.

Cybereason Team
About the Author

Cybereason Team

Cybereason is dedicated to partnering with Defenders to end attacks at the endpoint, in the cloud and across the entire enterprise ecosystem. Only the AI-driven Cybereason XDR Platform provides predictive prevention, detection and response that is undefeated against modern ransomware and advanced attack techniques. The Cybereason MalOp™ instantly delivers context-rich attack intelligence across every affected device, user and system with unparalleled speed and accuracy. Cybereason turns threat data into actionable decisions at the speed of business.

All Posts by Cybereason Team