ThinkRoost
Technology and AI

Software engineering · 5 min

The XZ backdoor

Learn how one engineer stopped an attack.

ReflectText size
Source reading

What the sources describe

XZ Utils is free software used to compress files and is included in many Linux operating systems. Like many open-source projects, it was maintained mainly by one volunteer, Lasse Collin.

From around 2021, a contributor using the name Jia Tan began helping with the project. Over about two years, Jia Tan gained trust, while other accounts pressured Collin to add more maintainers. Jia Tan eventually became a co-maintainer. In early 2024, Jia Tan added hidden code, a backdoor, to new versions.

The backdoor targeted SSH, software used to log into computers remotely, and could have let the attacker take control of affected systems. In March 2024, Andres Freund, a Microsoft engineer, noticed that SSH logins were using more processing power and were about half a second slower than expected. He investigated and found the backdoor.

Because it was caught quickly, the backdoor had mostly reached test versions of Linux systems, not widely used stable ones. The careful, long-term deception led many experts to suspect a well-funded group. The case highlighted the pressure on volunteer maintainers.

Our interpretation

Connecting the ideas

In March 2024, Microsoft engineer Andres Freund noticed slow SSH logins and discovered a backdoor added to XZ Utils by a contributor who had gained trust over about two years.

The idea, in plain language

The big idea

Curiosity about small oddities can stop big attacks.

Use it in real life

Use it in real life

Notice something small that seems slightly off in your daily routine, such as a device running slower or an unexpected email. Investigate one by checking settings, updates or account activity. Write down what you found and whether noticing small changes could help you catch bigger problems early.

Practice scenario (made up for this lesson)

Try it

Made-up example: How did Andres Freund discover the XZ backdoor?

A good answer: he noticed SSH logins were using more processing power and were slower than expected.

Quick quiz

1. How did Jia Tan gain control of the project?

2. Why was catching the backdoor early important?

3. What did the case highlight about open-source projects?

Finished reading?

Make this the next Doom video?

Vote for the lessons you'd most like to see turned into a short animated story.

How was this lesson?

No ratings yet — be the first.

Sign in to rate

Sources

Limitations

Checked against the official vulnerability record; the Jia Tan timeline relies on Wikipedia.

Voice: Debby — Soft and soothing (tap to change)

Debby narration · part 1 of 15