Explore More

An anonymous coder nearly hacked a big chunk of the internet. How worried should we be?

An anonymous coder nearly hacked a big chunk of the internet. How worried should we be?

Outside the world of open-source software, it’s likely few people would have heard about XZ Utils, a small but widely used tool for data compression in Linux systems. But late last week, security experts uncovered a serious and deliberate flaw that could leave networked Linux computers susceptible to malicious attacks.

The flaw has since been confirmed as a critical issue that could allow a knowledgeable hacker to gain control over vulnerable Linux systems. Because Linux is used throughout the world in email and web servers and application platforms, this vulnerability could have given the attacker silent access to vital information held on computers throughout the world – potentially including the device you’re using right now to read this.

Major software vulnerabilities, such as the SolarWinds hack and the Heartbleed bug, are nothing new – but this one is very different.

The XZ Utils hack attempt took advantage of the way open-source software development often works. Like many open-source projects, XZ Utils is a crucial and widely used tool – and it is maintained largely by a single volunteer, working in their spare time. This system has created huge benefits for the world in the form of free software, but it also carries unique risks.

Open source and XZ Utils

First of all, a brief refresher on open-source software. Most commercial software, such as the Windows operating system or the Instagram app, is “closed-source” – which means nobody except its creators can read or modify the source code. By contrast, with “open-source” software, the source code is openly available and people are free to do what they like with it.

Open-source software is very common, particularly in the “nuts and bolts” of software which consumers don’t see, and hugely valuable. One recent study estimated the total value of open source software in use today at US$8.8 trillion.

Until around two years ago, the XZ Utils project was maintained by a developer called Lasse Collin. Around that time, an account using the name Jia Tan submitted an improvement to the software.

Not long after, some previously unknown accounts popped up to report bugs and submit feature requests to Collin, putting pressure on him to take on a helper in maintaining the project. Jia Tan was the logical candidate.

Over the next two years, Jia Tan become more and more involved and, we now know, introduced a carefully hidden weapon into the software’s source code.

The revised code secretly alters another piece of software, a ubiquitous network security tool called OpenSSH, so that it passes malicious code to a target system. As a result, a specific intruder will be able to run any code they like on the target machine.

 

The latest version of XZ Utils, containing the backdoor, was set to be included in popular Linux distributions and rolled out across the world. However, it was caught just in time when a Microsoft engineer investigated some minor memory irregularities on his system.

A rapid response

What does this incident mean for open-source software? Well, despite initial appearances, it doesn’t mean open-source software is insecure, unreliable or untrustworthy.

Because all the code is available for public scrutiny, developers around the world could rapidly begin analysing the backdoor and the history of how it was implemented. These efforts could be documented, distributed and shared, and the specific malicious code fragments could be identified and removed.

A response on this scale would not have been possible with closed-source software.

An attacker would need to take a somewhat different approach to target a closed-source tool, perhaps by posing as a company employee for a long period and exploiting the weaknesses of the closed-source software production system (such as bureaucracy, hierarchy, unclear reporting lines and poor knowledge sharing).

However, if they did achieve such a backdoor in proprietary software, there would be no chance of large-scale, distributed code auditing.

Lessons to be learned

This case is a valuable opportunity to learn about weaknesses and vulnerabilities of a different sort.

First, it demonstrates the ease with which online relations between anonymous users and developers can become toxic. In fact, the attack depended on the normalisation of these toxic interactions.

The social engineering part of the attack appears to have used anonymous “sockpuppet” accounts to guilt-trip and emotionally coerce the lead maintainer into accepting minor, seemingly innocuous code additions over a period of years, pressuring them to cede development control to Jia Tan.

One user account complained:

We need to help developers and maintainers better understand the human aspects of coding, and the social relationships that affect, underpin or dictate how distributed code is produced. There is much work to be done, particularly to improve the recognition of the importance of mental health.

A second lesson is the importance of recognising “obfuscation”, a process often used by hackers to make software code and processes difficult to understand or reverse-engineer. Many universities do not teach this as part of a standard software engineering course.

Third, some systems may still be running the dangerous versions of XZ Utils. Many popular smart devices (such as refrigerators, wearables and home automation tools) run on Linux. These devices often reach an age at which it is no longer financially viable for their manufacturers to update their software – meaning they do not receive patches for newly discovered security holes.

And finally, whoever is behind the attack – some have speculated it may be a state actor – has had free access to a variety of codebases over a two-year period, perpetrating a careful and patient deception. Even now, that adversary will be learning from how system administrators, Linux distribution producers and codebase maintainers are reacting to the attack.

Where to from here?

Code maintainers around the world are now thinking about their vulnerabilities at a strategic and tactical level. It is not only their code itself they will be worrying about, but also their code distribution mechanisms and software assembly processes.

My colleague David Lacey, who runs the not-for-profit cybersecurity organisation IDCARE, often reminds me the situation facing cybersecurity professionals is well articulated by a statement from the IRA. In the wake of their unsuccessful bombing of the Brighton Grand Hotel in 1984, the terrorist organisation chillingly claimed:

Case Studies

Web Project
Survey
Citizen Consultation Survey: A Project with UNDP
Web Project
Web Development
Chughtais Customer Relation Management (CRM)
Web Project
Web Development
Namal Management Software
Web Project
Social Media Marketing
Scaling Artink.pk’s E-Commerce Growth with High-Impact Performance Marketing
Web Project
Social Media Marketing
Performance Marketing for Namal Knowledge City
Web Project
Social Media Marketing
Pakistan Cables Social Media Performance Marketing
Web Project
Social Media Marketing
Lead Generation for PEN
Web Project
Social Media Marketing
Lead Generation Campaign for Sundar STEM School
Web Project
Social Media Marketing
CAT Footwear Pakistan
Web Project
Social Media Marketing
Performance Marketing Campaign for CAT Footwear Pakistan
Web Project
Web Development
Nivessa: E-Commerce Platform for Vinyl Records
Web Project
Web Development
Progressive Education Network (PEN) - Educational Non-Profit Website
Web Project
Web Development
Namal Knowledge City – Educational and Developmental Hub Website
Web Project
Web Development
Namal College UK – Educational Non-Profit Website
Web Project
Web Development
Nexus Dispatch Services – Logistics & Freight Dispatch Platform
Web Project
Web Development
Friends of Namal USA – Non-Profit Educational Fundraising Platform
Web Project
Web Development
Sundar STEM School – Advanced Educational Platform
Web Project
Web Development
ArtInk – Shopify-Based Gifting & Floral E-Commerce Platform
Web Project
Web Development
iamNamal – A Dynamic Platform for Donor Engagement and Impact Visualization
Web Project
Web Development
Alimentando a México WordPress Website Development
Web Project
Web Development
Custom Web Development: Namal.nl Platform
Web Project
Web Development
Manzana Roja Online Presence – Website Development
Web Project
Software Solutions
MAGP Collab – Team & Operations Management Tool
Web Project
Software Solutions
: Unified CRM System for Chughtai Lab – End-to-End Integration of Customer Relations Operations
Web Project
Software Solutions
NAMAL Alumni Portal Development
Web Project
Software Solutions
Sundar STEM Learning Management System (LMS) and IT Infrastructure Development
Web Project
Software Solutions
Laser Eye Clinic Management Software (LECMS) Development and Maintenance
Web Project
App Development
SEP Maternal Care App
Web Project
App Development
Smartin Home Automation App
Web Project
App Development
Sehat App – Mobile Health Engagement Tool for WASH KAP Study
Web Project
Call Center Services
Call Center for Fly Makkah in Burewala
Web Project
Call Center Services
Integrated Call Center & ERP Deployment for Techno Coast
Web Project
App Development
MinFörskola – Smart Preschool Management
Web Project
App Development
Pak Traders – B2B Wholesale & Retail Marketplace
Web Project
App Development
OrderMeg – Cloud-Based Order Management System for Multi-Region Sales Optimization
Web Project
App Development
Sharafayn – Culturally Aligned Matchmaking Platform
Web Project
UI / UX Design
Nivessa Website – Intuitive & Responsive UI/UX Design
Web Project
UI / UX Design
Artink.pk – UI/UX Design for an Artistic E-commerce Platform
Web Project
UI / UX Design
Sharafayn – UI/UX Design for a Community-Focused Matchmaking Solution
Web Project
UI / UX Design
UI/UX Design for Smartin Home Automation App.
Web Project
Survey
UNDP WASH KAP Survey Study
Web Project
Financial Estimations And Cloud Solutions
AWS Cloud Migration for CRM & Billing System for Nexus Dispatch
Web Project
Financial Estimations And Cloud Solutions
Comprehensive Financial Estimation for ERP Web & Mobile App – Namal
Web Project
Financial Estimations And Cloud Solutions
Azure Cloud Infrastructure Setup for Enterprise Platform for Namal University
Web Project
Networking Solutions
Corporate Network Infrastructure Setup for Namal
Web Project
Survey
Telephonic Surveys for UNDP's MAGP Special Emphasis Programmes (SEPs)
Web Project
Survey
Citizen Trust Survey in Khyber Pakhtunkhwa & FATA
Web Project
Survey
UNDP Robocall Surveys – Citizen Consultation & COVID-19 Impact Assessment
Web Project
Networking Solutions
Computer Labs Installation for PEN
Web Project
Networking Solutions
School Network Installation & Surveillance System for Sundar STEM School

Get in touch

Lets work
Together

Just tell us your requirements and we will help you!

+(800) 2563 123

info@company.com

9:00 am - 6:00 pm
Timings

Your Vision, Our Expertise

Submit your information to drive success forward.