The Times Australia
The Times World News

.
The Times Real Estate

.

What is Log4j? A cybersecurity expert explains the latest internet vulnerability, how bad it is and what's at stake

  • Written by Santiago Torres-Arias, Assistant Professor of Electrical and Computer Engineering, Purdue University
What is Log4j? A cybersecurity expert explains the latest internet vulnerability, how bad it is and what's at stake

Log4Shell, an internet vulnerability that affects millions of computers, involves an obscure but nearly ubiquitous piece of software, Log4j. The software is used to record all manner of activities that go on under the hood in a wide range of computer systems.

Jen Easterly, director of the U.S. Cybersecurity & Infrastructure Security Agency, called Log4Shell the most serious vulnerability[1] she’s seen in her career. There have already been hundreds of thousands, perhaps millions, of attempts to exploit the vulnerability[2].

So what is this humble piece of internet infrastructure, how can hackers exploit it and what kind of mayhem could ensue?

a woman with long dark hair wearing eyeglasses speaks into a microphone
Cybersecurity & Infrastructure Security Agency director Jen Easterly called Log4Shell ‘the most serious vulnerability I’ve seen.’ Kevin Dietsch/Getty Images News[3]

What does Log4j do?

Log4j records events – errors and routine system operations – and communicates diagnostic messages about them to system administrators and users. It’s open-source software[4] provided by the Apache Software Foundation[5].

A common example of Log4j at work is when you type in or click on a bad web link and get a 404 error message. The web server running the domain of the web link you tried to get to tells you that there’s no such webpage. It also records that event in a log for the server’s system administrators using Log4j.

Similar diagnostic messages are used throughout software applications. For example, in the online game Minecraft, Log4j is used by the server to log activity like total memory used and user commands typed into the console.

How does Log4Shell work?

Log4Shell works by abusing a feature in Log4j that allows users to specify custom code for formatting a log message. This feature allows Log4j to, for example, log not only the username associated with each attempt to log in to the server but also the person’s real name, if a separate server holds a directory linking user names and real names. To do so, the Log4j server has to communicate with the server holding the real names.

Unfortunately, this kind of code can be used for more than just formatting log messages. Log4j allows third-party servers to submit software code that can perform all kinds of actions on the targeted computer. This opens the door for nefarious activities such as stealing sensitive information, taking control of the targeted system and slipping malicious content to other users communicating with the affected server.

It is relatively simple to exploit Log4Shell. I was able to reproduce the problem in my copy of Ghidra[6], a reverse-engineering framework for security researchers, in just a couple of minutes. There is a very low bar for using this exploit, which means a wider range of people with malicious intent can use it.

Log4j is everywhere

One of the major concerns about Log4Shell is Log4j’s position in the software ecosystem. Logging is a fundamental feature of most software, which makes Log4j very widespread[7]. In addition to popular games like Minecraft, it’s used in cloud services like Apple iCloud and Amazon Web Services, as well as a wide range of programs from software development tools[8] to security tools[9].

Open-source software like Log4j is used in so many products and tools that some organizations don’t even know which pieces of code are on their computers.

This means hackers have a large menu of targets to choose from: home users, service providers, source code developers and even security researchers. So while big companies like Amazon can quickly patch their web services to prevent hackers from exploiting them, there are many more organizations that will take longer to patch their systems, and some that might not even know they need to.

The damage that can be done

Hackers are scanning through the internet to find vulnerable servers and setting up machines that can deliver malicious payloads. To carry out an attack, they query services (for example, web servers) and try to trigger a log message (for example, a 404 error). The query includes maliciously crafted text, which Log4j processes as instructions.

These instructions can create a reverse shell[10], which allows the attacking server to remotely control the targeted server, or they can make the target server part of a botnet[11]. Botnets use multiple hijacked computers to carry out coordinated actions on behalf of the hackers.

A large number of hackers[12] are already trying to abuse Log4Shell. These range from ransomware gangs locking down minecraft servers[13] to hacker groups trying to mine bitcoin[14] and hackers associated with China and North Korea[15] trying to gain access to sensitive information from their geopolitical rivals. The Belgian ministry of defense reported that its computers were being attacked using Log4Shell[16].

Although the vulnerability first came to widespread attention on Dec. 10, 2021, people are still identifying new ways[17] to cause harm through this mechanism.

Stopping the bleeding

It is hard to know whether Log4j is being used in any given software system because it is often bundled as part of other software[18]. This requires system administrators to inventory their software to identify its presence. If some people don’t even know they have a problem, it’s that much harder to eradicate the vulnerability.

Another consequence of Log4j’s diverse uses is there is no one-size-fits-all solution to patching it. Depending on how Log4j was incorporated in a given system, the fix will require different approaches. It could require a wholesale system update, as done for some Cisco routers[19], or updating to a new version of software, as done in Minecraft[20], or removing the vulnerable code manually for those who can’t update the software.

Log4Shell is part of the software supply chain. Like physical objects people purchase, software travels through different organizations and software packages before it ends up in a final product. When something goes wrong, rather than going through a recall process, software is generally “patched[21],” meaning fixed in place.

However, given that Log4j is present in various ways in software products[22], propagating a fix requires coordination from Log4j developers, developers of software that use Log4j, software distributors, system operators and users. Usually, this introduces a delay between the fix being available in Log4j code and people’s computers actually closing the door on the vulnerability.

[Over 140,000 readers rely on The Conversation’s newsletters to understand the world. Sign up today[23].]

Some estimates for time-to-repair in software generally range from weeks to months[24]. However, if past behavior is indicative of future performance, it is likely the Log4j vulnerability will crop up for years to come[25].

As a user, you are probably wondering what can you do about all this. Unfortunately, it is hard to know whether a software product you are using includes Log4j and whether it is using vulnerable versions of the software. However, you can help by heeding the common refrain from computer security experts: Make sure all of your software is up to date.

References

  1. ^ most serious vulnerability (www.cnbc.com)
  2. ^ attempts to exploit the vulnerability (www.zdnet.com)
  3. ^ Kevin Dietsch/Getty Images News (www.gettyimages.com)
  4. ^ open-source software (www.businessinsider.com)
  5. ^ Apache Software Foundation (apache.org)
  6. ^ Ghidra (github.com)
  7. ^ Log4j very widespread (security.googleblog.com)
  8. ^ software development tools (wiki.eclipse.org)
  9. ^ security tools (github.com)
  10. ^ reverse shell (www.acunetix.com)
  11. ^ botnet (www.howtogeek.com)
  12. ^ large number of hackers (www.akamai.com)
  13. ^ ransomware gangs locking down minecraft servers (www.crn.com)
  14. ^ hacker groups trying to mine bitcoin (www.silentpush.com)
  15. ^ China and North Korea (www.microsoft.com)
  16. ^ attacked using Log4Shell (www.wsj.com)
  17. ^ new ways (www.theregister.com)
  18. ^ bundled as part of other software (deps.dev)
  19. ^ some Cisco routers (tools.cisco.com)
  20. ^ Minecraft (www.minecraft.net)
  21. ^ patched (www.techopedia.com)
  22. ^ present in various ways in software products (unit42.paloaltonetworks.com)
  23. ^ Sign up today (memberservices.theconversation.com)
  24. ^ weeks to months (www.rapid7.com)
  25. ^ will crop up for years to come (blog.malwarebytes.com)

Read more https://theconversation.com/what-is-log4j-a-cybersecurity-expert-explains-the-latest-internet-vulnerability-how-bad-it-is-and-whats-at-stake-173896

The Times Features

What are physician assistants? Can they fix the doctor shortage?

If you’ve tried to get an appointment to see a GP or specialist recently, you will likely have felt the impact of Australia’s doctor shortages[1]. To alleviate workforce sho...

Do men and women agree on how easy it is for each other to find a job or a date?

Typically, you don’t have to write a cover letter before attending a candlelit dinner. But there are some eerie emotional parallels between finding a job and finding a date. ...

Australia’s clinical guidelines shape our health care. Why do so many still ignore sex and gender?

You’ve heard of the gender pay gap. What about the gap in medical care? Cardiovascular diseases – which can lead to heart attack and stroke – are one of the leading causes[1...

Don't Get Burned—Smart Insurance for Your Investment Property

Real estate investment offers lucrative opportunities even though it brings operational risks. Real estate investment protection fundamentally depends on obtaining the correct insu...

Why it’s important to actively choose the music for your mood

Many of us take pleasure in listening to music[1]. Music accompanies important life events and lubricates social encounters. It represents aspects of our existing identity, a...

The Link Between Heart Health and Ageing Well

Millions of Australians are at risk of heart disease, but fewer realise that keeping their heart healthy can also help protect their brain, memory, and cognitive function, redu...

Times Magazine

Improving Website Performance with a Cloud VPS

Websites represent the new mantra of success. One slow website may make escape for visitors along with income too. Therefore it's an extra offer to businesses seeking better performance with more scalability and, thus represents an added attracti...

Why You Should Choose Digital Printing for Your Next Project

In the rapidly evolving world of print media, digital printing has emerged as a cornerstone technology that revolutionises how businesses and creative professionals produce printed materials. Offering unparalleled flexibility, speed, and quality, d...

What to Look for When Booking an Event Space in Melbourne

Define your event needs early to streamline venue selection and ensure a good fit. Choose a well-located, accessible venue with good transport links and parking. Check for key amenities such as catering, AV equipment, and flexible seating. Pla...

How BIM Software is Transforming Architecture and Engineering

Building Information Modeling (BIM) software has become a cornerstone of modern architecture and engineering practices, revolutionizing how professionals design, collaborate, and execute projects. By enabling more efficient workflows and fostering ...

How 32-Inch Computer Monitors Can Increase Your Workflow

With the near-constant usage of technology around the world today, ergonomics have become crucial in business. Moving to 32 inch computer monitors is perhaps one of the best and most valuable improvements you can possibly implement. This-sized moni...

Top Tips for Finding a Great Florist for Your Sydney Wedding

While the choice of wedding venue does much of the heavy lifting when it comes to wowing guests, decorations are certainly not far behind. They can add a bit of personality and flair to the traditional proceedings, as well as enhancing the venue’s ...

LayBy Shopping