As an Amazon Associate I earn from qualifying purchases from

Log4j Developer Response – Cisco Blogs

As builders, we’re all waking as much as discover a newly found zero-day vulnerability (CVE-2021-44228) within the Apache Log4j library. If exploited, the vulnerability permits attackers to realize full management of affected servers and your software. Like many builders, you’re most likely scrambling to determine what programs are affected and the best way to repair or patch this vulnerability. (TALOS Risk Advisory: Crucial Apache Log4j vulnerability being exploited within the wild)

And to make your job much more troublesome, Log4j is so extensively used that you could be not even notice the place in your programs it’s getting used. Many suppose that this Log4j vulnerability solely impacts your Java code. Sadly, this isn’t true. Log4j is a key element of many business and open-source options together with Apache Solr, Apache Struts2, Apache Fink, Apache Druid, Apache Kafka, Elasticsearch, and plenty of extra.

Your problem now’s to comprise the specter of exploitation as shortly as attainable. There are a couple of key issues you are able to do as a developer.

First, categorize your actions into three principal environments:

  1. Growth
  2. Check
  3. Manufacturing

Growth is simple. Simply be certain that to find all utilization of Log4j 2.0-beta9 to 2.14.1 and improve to 2.15.0, which has the repair for this vulnerability. Replace the library in your mission and recompile. If updating the library requires any refactoring of your software that may take too lengthy, you should buy a while by altering the runtime setting to forestall exploits from working.

  • In releases >=2.10, the susceptible habits could be mitigated by setting both the system property log4j2.formatMsgNoLookups or the setting variable LOG4J_FORMAT_MSG_NO_LOOKUPS to true.
  • For releases from 2.0-beta9 to 2.10.0, the mitigation is to take away the JndiLookup class from the classpath: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class.

Your take a look at setting is sort of as easy. Simply add the additional step of pushing the up to date code to a take a look at setting the place your typical automated and guide testing could be executed.

Manufacturing is the place it will get a bit trickier. As I’m certain you’re already involved about, these code adjustments might have an effect on your programs and enterprise. Some facets to think about:

  1. How will any downtime have an effect on your clients and your online business? What workarounds are you able to shortly provide to mitigate this downtime?
  2. What’s the impact of the repair? Do different programs combine with this technique? Does the affected system have an API that different programs name? Will the patch probably trigger cascading defects? You want ample time to completely take a look at.
  3. What different programs in your group might need this vulnerability? How will you monitor these down and take a look at them?

Discovering, fixing, and testing all of the affected programs might take days. Within the meantime, it’s essential shield your self now. Fortunately there are some readily-available options that may assist. These options assist discover the place the OSS vulnerability exists in your manufacturing setting in addition to mitigate the danger of the exploitation till the susceptible library could be upgraded. Choices for instant mitigation differ relying in your setting. One such answer is AppDynamics with Cisco Safe Utility, which is built-in into AppDynamics Java APM brokers.

Cisco Safe Utility protects your manufacturing setting by:

  1. Figuring out what libraries your code is definitely utilizing in runtime
  2. Detecting the vulnerabilities in these libraries
  3. Detecting assaults whereas monitoring runtime habits
  4. Defending programs with coverage to dam runtime exploit habits

The primary, most vital motion to take is to search out out the place this vulnerability is introducing threat into your manufacturing setting. Cisco Safe Utility tracks all library utilization and the accompanying vulnerabilities.

Figure 1 - Detect vulnerability
Determine 1 – Detect vulnerability

This distant code execution vulnerability permits the attacker to run any code in your software, which might lead to any variety of malicious runtime behaviors. One of many scariest of these is shell command execution that might permit for full management of not solely your software, however the underlying workload.

Cisco Safe Utility will detect this shell command execution out of the field. It will also be configured to cease the command from executing in addition to ship occasions to your safety staff for additional investigation.

Figure 2 - Detect and block attack
Determine 2 – Detect and block assault

Nevertheless, this received’t take away all the danger, so guarantee you’ve got plans to repair this vulnerability as quickly as attainable. Assessment the main points at Log4j’s safety disclosure.

Discover extra info on how AppDynamics with Cisco Safe Utility presents full-stack software safety that may assist shield you from this and different vulnerabilities.


We’d love to listen to what you suppose. Ask a query or depart a remark beneath.
And keep related with Cisco DevNet on social!

Twitter @CiscoDevNet | Fb | LinkedIn

Go to the brand new Developer Video Channel


We will be happy to hear your thoughts

Leave a reply

Enable registration in settings - general
Compare items
  • Total (0)
Shopping cart