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

How to Manage Debt During Retirement in Australia: Best Practices for Minimising Interest Payments

Managing debt during retirement is a critical step towards ensuring financial stability and peace of mind. Retirees in Australia face unique challenges, such as fixed income st...

hMPV may be spreading in China. Here’s what to know about this virus – and why it’s not cause for alarm

Five years on from the first news of COVID, recent reports[1] of an obscure respiratory virus in China may understandably raise concerns. Chinese authorities first issued warn...

Black Rock is a popular beachside suburb

Black Rock is indeed a popular beachside suburb, located in the southeastern suburbs of Melbourne, Victoria, Australia. It’s known for its stunning beaches, particularly Half M...

What factors affect whether or not a person is approved for a property loan

Several factors determine whether a person is approved for a real estate loan. These factors help lenders assess the borrower’s ability to repay the loan and the risk involved...

The Affordable Protein Solution

With the cost-of-living crisis hitting Australians hard, many are making New Year’s resolutions to get fitter and healthier without breaking the bank.  Amid rising food costs, ...

Does the Sydney property market still offer rewarding investment opportunities

Investing in Sydney’s property market has historically offered rewarding returns, characterized by consistent capital growth and strong rental demand. Since the 1980s, Sydney’s ave...

Times Magazine

What workers really think about workplace AI assistants

Imagine starting your workday with an AI assistant that not only helps you write emails[1] but also tracks your productivity[2], suggests breathing exercises[3], monitors your mood and stress levels[4] and summarises meetings[5]. This is not a f...

Aussies, Clear Out Old Phones –Turn Them into Cash Now!

Still, holding onto that old phone in your drawer? You’re not alone. Upgrading to the latest iPhone is exciting, but figuring out what to do with the old one can be a hassle. The good news? Your old iPhone isn’t just sitting there it’s potential ca...

Rain or Shine: Why Promotional Umbrellas Are a Must-Have for Aussie Brands

In Australia, where the weather can swing from scorching sun to sudden downpours, promotional umbrellas are more than just handy—they’re marketing gold. We specialise in providing wholesale custom umbrellas that combine function with branding power. ...

Why Should WACE Students Get a Tutor?

The Western Australian Certificate of Education (WACE) is completed by thousands of students in West Australia every year. Each year, the pressure increases for students to perform. Student anxiety is at an all time high so students are seeking suppo...

What Are the Risks of Hiring a Private Investigator

I’m a private investigator based in Melbourne, Australia. Being a Melbourne Pi always brings interesting clients throughout Melbourne. Many of these clients always ask me what the risks are of hiring a private investigator.  Legal Risks One of the ...

7 Reasons Why You Need to Hire an SEO Expert for Your Business

Ranking on Google isn’t just an option—it's essential for business success. Many businesses striving for online visibility often struggle to keep up with the complex and ever-changing world of search engine optimisation (SEO). Partnering with an SE...

LayBy Shopping