The XZ Utils backdoor was hidden code slipped into a widely used Linux tool by a trusted outside helper.
This guide is for anyone who has heard of the XZ incident and wants the story in plain words, plus the lessons for their own work. You do not need to know Linux. If your organisation uses free, open-source software, which most do, the lessons apply.
In short
- XZ Utils is a small, free tool for squeezing files, built into many Linux systems.
- In 2024, versions 5.6.0 and 5.6.1 were found to contain a hidden backdoor, made and signed by an outside contributor, not the main maintainer.
- It was caught when an engineer looked into slow, CPU-heavy remote logins on a test system.
- Few stable systems had the bad versions, but it showed how trust in volunteers can be turned into an attack.
What you will learn
- Explain what happened in the XZ incident in a few sentences.
- Describe how trust, not a software bug, was the way in.
- Spot warning signs of a takeover attempt on a project.
- Check whether your organisation could find an affected version quickly.
- Free, shared code (open source)
- software whose code anyone can read and use, often looked after by volunteers.
- Project caretaker (maintainer)
- a person trusted to accept changes to a project and publish new versions.
- Hidden way in (backdoor)
- secret code that lets someone get past the normal security checks.
What is the XZ Utils backdoor?
Think of checking every ingredient that goes into a ready meal. Now picture a helper at a trusted supplier. They work hard for a long time and are given more say. Then one day they tamper with a batch.
That is roughly what happened to XZ Utils. It is a small, free tool used by many Linux systems to compress and decompress files. In March 2024, an engineer reported that versions 5.6.0 and 5.6.1 had been backdoored [1].
The project says the bad release packages were made and signed by an outside helper, not by the main maintainer [3]. Open-source groups later said the attack built up slowly, starting with small, harmless-looking changes [4].
Where the comparison stops working: a food supplier has managers and inspections. Many open-source projects are run by one or two unpaid volunteers, with few others checking their releases.
For the full timeline and technical detail, read our XZ Utils breach analysis, which draws on the original report [1].
Why does it matter?
Most software today is built on open-source parts. The XZ incident showed that the people who look after those parts can be targeted, not just the code.
If you run IT for an organisation
What could happen: a hidden change in a small tool you never think about reaches your servers through a normal update.
Check this: can you list which systems run which version of a given tool, within a day?
If you look after an open-source project
What could happen: a friendly newcomer, backed by pushy unknown accounts, presses you to hand over release rights.
Check this: who can publish releases, and does anyone else review what goes in them?
If you are a manager or buyer
What could happen: a product you rely on depends on a project kept alive by one tired volunteer.
Check this: ask suppliers how they track and check the open-source parts in their products.
What does it look like?
Here is a made-up "Am I affected?" check, like one a small IT team might run after the news.
Example only. All values are made up.
XZ check: EXAMPLE Ltd servers Server Type xz version Result web-EXAMPLE-01 stable release 5.4.x not affected (1) test-FAKE-02 test build 5.6.1 affected (2) build-FAKE-03 unknown ? check now (3) Action for test-FAKE-02: move back to a clean version (4) Owner: FAKE-ADMIN Done by: 0000-00-00 (5)
- A system on an older, stable version. In a real file, this line would contain the exact version installed.
- A test system that took the newest version early, which is where the bad versions mostly landed [1].
- Nobody knows what is installed. This is the main gap. You cannot fix what you cannot find.
- CISA advised moving back to an uncompromised version, such as 5.4.6 [2].
- One named owner and a date, so the check is finished, not forgotten.
Why this is risky: if your list of installed software is out of date, a check like this takes days instead of hours.
The safer way: keep an up-to-date list of the software and versions on each system, so you can answer "are we affected?" quickly.
How does it work?
Here is the story in five steps, kept at a high level.
- Trust was built slowly. An outside contributor took part in the project over time. Foundations later warned of a pattern: friendly but persistent pushes for maintainer rights, backed by unknown accounts [4].
- Release rights were gained. The contributor came to create and sign official release packages [3].
- The hidden part was well hidden. Some of it sat in test files that people cannot easily read. One key piece was only in the downloadable release packages, not in the main code history most people check [1].
- It aimed at remote logins. On some Linux systems, the program that handles remote logins (SSH) loads the XZ library indirectly. The engineer who found it judged it likely to allow unauthorised access [1].
- It was caught early. An engineer noticed remote logins using a lot of computer power, plus errors from a memory-checking tool, on a test system. They traced the cause and reported it [1].

According to the original report, the bad versions had mostly not reached Linux distributions, and where they had, mostly in pre-release versions [1]. CISA, the US cyber security agency, issued an alert the same day [2].
Afterwards, both the maintainer's and the contributor's accounts on the code-hosting site were suspended, and the maintainer's was later restored. The project published clean releases on 29 May 2024 [3].

A worked example
This story is made up to show the idea.
Greta Lindqvist looks after servers at Fjordline Shipping. On a Saturday morning she reads that a backdoor has been found in XZ Utils. Her manager asks one question: "Are we affected?"
Greta has a software list for the main servers, kept up to date by an automatic tool. Within an hour she confirms they all run older, stable versions. That part is easy.
The harder part is everything else. Two developers have test machines that take the newest versions of everything. A build server was set up by a contractor who has since left, and nobody is sure what it runs.
Greta checks each one. One developer machine has version 5.6.1. She takes it off the network and moves it back to a clean version, as the security agency's advice suggests. The build server turns out to be fine.
On Monday, Greta writes up three lessons. First, every machine goes on the software list, including test and build machines. Second, test machines that take the newest versions are kept apart from important systems. Third, the team will note which small open-source tools its products depend on, and who looks after them.
She learned that the risky machines were the ones nobody had written down.
Myths and mistakes
| What people think | What is true |
|---|---|
| Open source is unsafe because anyone can change it. | In this case, trust in a helper who could make releases was the weak point [3][4]. |
| Reading the main code history would have caught it. | One key part was only in the release packages, not in the main code history [1]. |
| A signed release is always safe. | A signature shows who made a release. Here, the person signing was the attacker [3]. |
| Security tools found it. | A person noticed slow, CPU-heavy logins and dug into why [1]. |
| It is over, so the lessons do not apply. | Foundations reported a similar takeover attempt on other projects soon after [4]. |
What can I do this week?
- Check that your software list covers test and build machines, not just main servers.
- Pick one important product and ask which open-source parts it depends on.
- If you maintain a project, check who can publish releases and add a second reviewer.
- Share the warning signs in Figure 2 with anyone who looks after a project.
- Ask your main software suppliers how they would tell you if a part they use was tampered with.
Checklist
- We can list which version of a tool runs on each system.
- Test and build machines are on that list.
- Machines that take the newest versions early are kept apart from important systems.
- We know the key open-source parts our products rely on.
- Project release rights are limited and reviewed.
- Changes, including from maintainers, get a second reviewer.
- Unreadable files in code changes are questioned.
- Odd slowness or errors are investigated, not ignored.
Common questions
Was my computer affected?
Probably not. The bad versions were 5.6.0 and 5.6.1. The original report said they had mostly not reached Linux distributions, except in pre-release versions [1]. The hidden code was aimed at certain Linux systems. If you run Linux test systems, check the version.
What should someone with an affected version do?
CISA advised moving back to an uncompromised version, such as 5.4.6, and looking for signs of malicious activity [2]. The project has since published clean releases [3]. Updating to a current version from your Linux provider is the usual route.
Why is it called a supply chain attack?
Because the attacker did not break into the victims directly. They tampered with a part that other software is built from. Anyone who took that part through a normal update could have received the hidden code without doing anything wrong.
Who was behind it?
The project's statement refers to the person only by the name they used online [3]. This guide does not name anyone. It focuses on what defenders can learn: limit release rights, review every change and keep track of what you run.
How can open-source projects protect themselves?
Foundation advice includes strong sign-in checks and a second reviewer for every change. It also asks for readable code, limited publishing rights and regular checks on who has access [4].
Where next?
Ready for the detail? Read the practitioner guide: Open Source Project Maintainer Security Guide. It goes further into protecting release rights, review rules and signing for the people who run projects.
Also useful:
- Software Supply Chain Security for Beginners
- Supply Chain Attacks for Beginners
- Software Supply Chain Security Guide
Related NHI Mgmt Group resources: Package Maintainer Account Compromise Playbook, Open Source Risk and Software Composition Analysis for Beginners and Non-Human Identities for Beginners.
Key terms
- XZ Utils
- A set of tools and a library for compressing and decompressing files, used by many operating systems.
- XZ Utils backdoor
- Hidden code inserted into XZ Utils in 2024, designed to interfere with remote login checks on some Linux systems.
- Backdoor
- A hidden way to get past normal sign-in or access checks.
- Software supply chain attack
- An attack that corrupts code, parts or build steps so that trusted updates carry the harm.
- Release signing key
- The private secret used to sign software so others can check who made it and that it was not changed.
- Using trust, pressure or deception to get a person to do something risky.
- SBOM
- A software bill of materials: a list of the parts and dependencies inside a piece of software.
Sources and further reading
- oss-security mailing list, "backdoor in upstream xz/liblzma leading to ssh server compromise", Openwall, 29 March 2024. https://www.openwall.com/lists/oss-security/2024/03/29/4 (accessed 2 Dec 2026).
- CISA, "Reported Supply Chain Compromise Affecting XZ Utils Data Compression Library, CVE-2024-3094", 29 March 2024. https://www.cisa.gov/news-events/alerts/2024/03/29/reported-supply-chain-compromise-affecting-xz-utils-data-compression-library-cve-2024-3094 (accessed 2 Dec 2026).
- Tukaani Project, "XZ Utils backdoor", last updated 17 January 2025. https://tukaani.org/xz-backdoor/ (accessed 2 Dec 2026).
- OpenJS Foundation and OpenSSF, "OpenSSF and OpenJS Alert for Social Engineering Takeovers of Open Source Projects", 15 April 2024. https://openjsf.org/blog/openssf-openjs-alert-social-engineering-takeovers (accessed 2 Dec 2026).