Detecting log4j using ShiftLeft CORE
Tags: cybersecurity, applicationsecurity, opensource, softwaredevelopment
Published: 2022-01-13 19:16:07

---
title: Detecting log4j using ShiftLeft CORE
published: true
date: 2022-01-11 17:33:28 UTC
tags: cybersecurity,applicationsecurity,opensource,softwaredevelopment
canonical_url: https://blog.shiftleft.io/detecting-log4j-using-shiftleft-core-70e8c3cb5345
---

![](https://cdn-images-1.medium.com/max/1024/0*mFL33IqLeGiPxRsU)
_Detecting apps with CVE-2021–44228_

Over the last few weeks, log4j has been the focus in most organizations. It continues to dominate tech media as the [FTC threatens action](https://www.theregister.com/2022/01/05/ftc_log4j_fix/) against unpatched systems and [Microsoft warns of continued exploits](https://thehackernews.com/2022/01/microsoft-warns-of-continued-attacks.html) of the vulnerability. We have covered it in detail [here](https://blog.shiftleft.io/log4shell-jndi-injection-via-attackable-log4j-6bfea2b4896e?source=collection_home---4------5-----------------------), [here](https://blog.shiftleft.io/log4shell-apache-log4j-remote-code-execution-4f58ed7e74f9?source=collection_home---4------6-----------------------), and [here](https://blog.shiftleft.io/looking-back-on-the-log4j-weekend-89d6ee4fdea1?source=collection_home---4------1-----------------------). In this blog, we will focus on how you can easily detect vulnerable versions of log4j in your Java applications using [ShiftLeft CORE](https://www.shiftleft.io/shiftleft-core/).

Through February 28th, 2022, [new ShiftLeft CORE users](https://www.shiftleft.io/register) will receive our enterprise features free for 60 days for up to 20 applications. Once you create your account and do an upgrade to the premium trial, please follow the steps here to [analyze your Java applications](https://docs.shiftleft.io/ngsast/analyzing-applications/java).

![](https://cdn-images-1.medium.com/max/1024/0*wNf6FvRvYtPcrHu_)

It’s just three steps — download the ShiftLeft CLI, authenticate, and execute sl analyzeby providing it the path to your JAR or WAR file. This needs to be done from the source code directory so that we can pick up the dependency information as well. In addition to looking for vulnerabilities in your dependencies, this step also analyzes your custom code for OWASP Top 10 vulnerabilities.

Using the ShiftLeft dashboard, you can see details of the vulnerabilities found during the analysis.

![](https://cdn-images-1.medium.com/max/1024/0*m59tQAM7wd3PzoTw)

You can also see details of vulnerabilities found in your custom code:

![](https://cdn-images-1.medium.com/max/1024/0*laX7vN0BzN-Wcmfg)

Another use case that we heard from customers is the ability to see which of their applications have vulnerable versions of log4j. Towards this, we have created a simple search API that does exactly this.

```
https://www.shiftleft.io/api/v4/orgs/{orgID}/findings?search=log4j&search=cve
```

You can see the full API spec [here](https://docs.shiftleft.io/api/#operation/ListOrgFindings). For example, one can use the API and easily get an output like this:

![](https://cdn-images-1.medium.com/max/964/0*P0KflVQyeql7X2eb)

[Sign up for a free account](https://www.shiftleft.io/fix-complex-log4shell/) of ShiftLeft CORE to get enterprise features free for 60 days for up to 20 applications through February 28th, 2022.

Do reach out to us at [support@shiftleft.io](mailto:support@shiftleft.io) if you have any questions!

* * *