BookmarkSubscribeRSS Feed
muduki
Calcite | Level 5

Hello,

 

I am looking for some help with log4j remediation.

 

Once I run the below remediation script for the identified jar file, how to do I validate it?

 

zip -q -d path-to-JAR-file org/apache/logging/log4j/core/lookup/JndiLookup.class

 

5 REPLIES 5
muduki
Calcite | Level 5

Thank you for the link. Yes, I gone through that earlier, but that gives the steps for remediation. I dont see any specific step for validation.

 

Would you mind to share if you are aware of any validation steps for manual log4j remediation?

jasonfor
Calcite | Level 5

For validation, I would rerun the search and if they were zipped, you shouldn't get any results for log4j-core-2.*.jar.

jasonfor
Calcite | Level 5

Correction: 

The find command will still find those jar files.  You want to verify that JndiLookup.class has been removed.

 

I think you can use something similar to this:

 

find . -name *.jar | xargs grep JndiLookup.class

 

Another way would be to spot check one or two jar files, by copying them to a temporary location, run “unzip jarfilename.jar”, and eyeball the extracted folder and see if JndiLookup.class is no longer there.

jasonfor
Calcite | Level 5

Is this the only command to issue for UNIX? zip -q -d path-to-JAR-file org/apache/logging/log4j/core/lookup/JndiLookup.class

 

Also does the path-to-JAR-file include the actual .jar file, for example what's in red (/opt/sas/sashome/SASEnvironmentManagerAgent/2.5/installer/lib/log4j-core-2.11.1.jar)

 

Thank you.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1222 views
  • 0 likes
  • 3 in conversation