Tech●●●●●Difficulty 5 of 5

How did one engineer catch a backdoor in Linux because his login was half a second slow?

A backdoor that took two years to plant was found because one developer wondered why logging in felt a fraction of a second slow.

▶ Start the story

A Microsoft developer named Andres Freund caught the because something felt slightly off. While investigating a performance problem in a development version of Debian, a , he noticed that logging in over , the standard tool for reaching servers securely, was using an unexpectedly high amount of CPU and was a little slower than it should be. In one of his tests the delay was about half a second. Most people would have shrugged. Freund followed the thread, and on 29 March 2024 he announced that the upstream xz package had been backdoored.

XZ Utils is a compression tool that sits quietly inside most Linux systems. The , hidden in a library called liblzma, would have given an attacker who held a specific private key the power to run code remotely on an affected machine through OpenSSH. It scored 10.0, the highest possible severity rating. Normally OpenSSH does not use liblzma, but several distributions patch it to work with systemd, which does, and that is how the poisoned library ended up inside the login server.

10.0

severity score given to the xz backdoor, the highest possible

The more striking part is how it got there. According to a later investigation, a user called Jia Tan spent over two years, starting in 2021, building trust. Fake accounts pressured the original of XZ Utils until Jia Tan was given maintainer permissions. Then the code went in, partly through release files that differed from what was in the public repository.

The timing was lucky. The infected versions, 5.6.0 and 5.6.1, were mostly only in pre-release distributions, so few systems had them yet. Security expert Alex Stamos said it could have been the most widespread and effective ever planted in any software product. A defender who cared about half a second prevented that.

Quiz me

0/3

  1. 1.What first made Andres Freund suspicious?
  2. 2.Why was a compression library inside the SSH login server?
  3. 3.What made this a social engineering attack as well as a technical one?

Recap

The attackers earned a maintainer's trust over two years, but one developer's curiosity about a slightly slow login exposed the plan.

💡 A trick to remember it · A stopwatch beat a master key: the tiny extra delay was the squeak of a secret door.

Surprising fact · The version with the backdoor was mostly in pre-release distributions when Andres Freund spotted it.

Sources (2)

No source, no claim. Every fact in this lesson (19 claims) cites at least one of these.

  1. [1]XZ Utils backdoor · Wikipedia
  2. [2]backdoor in upstream xz/liblzma leading to ssh server compromise · oss-security mailing list (Openwall)
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗