Latest
Does Explicit Sex Sell Books? An Answer to The Absolute Degeneracy of Modern WritingThe Mary Sue: How a 1973 Star Trek Parody Became a Writing TermWhat the AI Writing Survey Says About Jobs, Freelancers and Fiction AuthorsHow Long Does Google Take? Crawling, Indexing and Recovery TimesLife of Pi50 Years of Duty: One Police Officer’s Compelling Journey from State Trooper to County SheriffBreaking Rank: A Top Cop’s Exposé of the Dark Side of American PolicingBlack in Blue: Lessons on Leadership, Breaking Barriers, and Racial ReconciliationCalled to Rise: A Life in Faithful Service to the Community That Made MeVigilance: My Life Serving America and Protecting Its Empire CityCollaborate or Perish! Reaching Across Boundaries in a Networked WorldTurnaround: How America’s Top Cop Reversed the Crime EpidemicThe Profession: A Memoir of Community, Race, and the Arc of Policing in AmericaSTEP-UP and LEAD: A Guide for Dynamic, Innovative Leadership in Law EnforcementStriving for Justice: A Black Sheriff in the Deep SouthThe Diagram GalleryGar Travis: A Tribute to One of the Best Faire PhotographersReverse Tropes: Six Ways to Turn a Tired Trope Inside OutA Hiker Used AI to Find a Waterfall. The Forum Sent Her to Hell.Did We Miscount the World’s Population? What the Rural Undercount MeansFrankenstein’s Creature Has Worn Many Faces. Only One Is Mary Shelley’sIs Consciousness Quantum? Penrose Is Half RightPetty Motivations Make Characters HumanAI Companies Are Preparing for a Catastrophe. Which One?Anatomy of a Writer: The Parts That Do the Real WorkGuillermo del Toro’s Writing Advice: Love Your MonstersFree Book Marketing: Seven Ways That Cost Time Instead of MoneyShould Your AI Report You to the Police?My Sister Built the Family We Never HadAnthropic Bans Cruelty Toward Claude: What It Means for WritersWork-for-Hire Contracts: What the Asimov’s Cover Fight Teaches FreelancersGenre Fiction vs Literary Fiction: Don’t Confuse Taste With SkillFlorida Hurricane Prep Rituals: The Grocery Run, the Water Pallet and the Generator in the BoxThe Most Insulting Line of Dialogue Ever Written for the ScreenLoki Through the Ages: From Norse Myth to Marvel, The Mask and Dogma“You Are Utterly Disgusting”: A Book Festival, an AI Cover Ban and a Pile-OnWho Rewrote the Sligachan Legend: AI or the Tour Buses?Layers: How I Ride Out Florida Power Outages in My ApartmentWhy I Don’t Like Reedsy for Ghostwriting: The NDA ProblemThe Enshittification of AmazonPublishers Cancel Books Over AI While Using It in SecretI Was Getting 100 Spam Emails a Day. $4.50 a Month Fixed It.World Mental Health Day: Nothing Was Wrong With MeKessler Syndrome: How Space Debris Could Close Earth’s OrbitAmazon Is Blocking Real Readers From Book ReviewsShould a Novella Get a Paperback, or Go Ebook Only?BookFunnel Download Problems: Fixes, Scams and AlternativesOzana Giusca: Reflecting the Architecture of IdentitySir Sean Connery: A TributeHow to Find Plot Holes in Your Novel (Most Are Character Holes)
The Writing King Your Ethical Ghostwriter. Your Story, Done Right.

The XZ Backdoor: Two Years of Patience, Caught by Luck

TL;DR: In 2024, the world came within days of a disaster it never saw coming. Someone had spent roughly two years posing as a helpful volunteer on a small, unglamorous piece of software that runs on much of the internet. They won the trust of the exhausted lone maintainer, were handed the keys, and slipped in a hidden backdoor that would have let them break into countless computers worldwide. It was caught by one engineer who noticed his login was running half a second slow. This is the twelfth article in a series on attacks that beat isolation, and it’s the one where the attacker didn’t break the trust. They became it.
☰Series Navigation  (13 parts)

Everything the modern world runs on is built, in part, out of small pieces of free software that volunteers write and maintain.

Not the big famous programs. The plumbing. The little utilities that compress a file, handle a connection, parse a date, buried so deep in the machinery that almost nobody thinks about them, running on servers and phones and devices in numbers no one can count. One or two unpaid people maintain much of this critical plumbing in their spare time.

Starting in 2021, an attacker went hunting in exactly that blind spot. Of all the attacks in this series, this is the one I can’t shake, because nobody broke anything. The attacker was patient and helpful, and picked on the one person holding the project up, an unpaid volunteer who was tired. I find that uglier than any worm or poisoned update, and I think the companies that built fortunes on that volunteer’s work share the blame.

What did the XZ backdoor let attackers do?

XZ Utils is one of those invisible pieces of plumbing. It’s a compression tool, software that squeezes files down to a smaller size, and it is so standard that it ends up installed, directly or through other programs, on a huge share of the computers running Linux, the operating system that powers most of the servers on the internet. You’ve never heard of it, and you almost certainly rely on it every day.

In early 2024, a hidden backdoor was discovered inside recent versions of XZ Utils. It was built so that an attacker holding a specific secret key could reach through the compression library into a common remote-login program and run their own commands on the machine, silently, bypassing the normal password checks. In plain terms: whoever planted it would have been able to break into an enormous number of computers around the world, at will, and nobody would have known how.

Security professionals rate vulnerabilities on a scale up to ten. This one was rated a ten, the maximum, and the rating almost undersells it. This was a weapon someone deliberately built into the software, wearing the disguise of a routine improvement, and it was days from spreading into the stable versions that the whole world installs.

Anyone who has run production servers knows what a back door into remote login means. You can’t trust a single machine you own, you can’t trust your logs, and you can’t know what was taken, so you rebuild from scratch and hope your backups are older than the infection. I wouldn’t wish that week on anyone, and this back door would have handed it to much of the internet at once.

How do you plant a backdoor in software the whole world uses?

The attacker got in the way a con artist gets into a lonely neighbor’s finances, by being helpful for a long time. That move sets XZ apart from everything else in this series. XZ Utils, like so much critical open-source software, depended largely on one person, a volunteer who had kept it running for years and, by his own accounts, was stretched thin and dealing with his own life.

In 2021, an account under the name “Jia Tan” appeared and began contributing to the project.

Not maliciously, at first. Helpfully. Fixing things, submitting improvements, doing the tedious work that an overstretched maintainer is grateful for. Over roughly two years, this contributor made hundreds of contributions and slowly, patiently, built a reputation as a trusted, valuable member of the project.

Then came the pressure. Alongside the helpful work, other accounts appeared in the project’s discussions, complaining that the software wasn’t being updated fast enough, that the lone maintainer wasn’t keeping up, that the project needed someone more active in charge.

These accounts, widely believed to be part of the same operation, sockpuppets working the same con, pushed on exactly the sore spot of a tired volunteer: you’re not doing enough, and here’s someone who is. The campaign worked. The maintainer, worn down and looking for help, gave Jia Tan expanded control over the project.

Those complaint threads make me angry every time I read them. Somebody deliberately ground down a volunteer doing a thankless job for free, shamed him in public for not doing more, and then offered the cure. The pressure campaign was the cruelest part of the whole operation, and it worked because nobody else was standing next to him.

With the keys in hand, the attacker moved carefully. The malicious code went into the packaged release files, the compiled bundles most systems install from, where anyone reviewing the project’s public source wouldn’t see it. It was tucked into build scripts and disguised test files in a way designed to survive a normal review.

The trap was set, built into official releases, signed and shipped as a legitimate update from a trusted project, and it began making its way toward the stable versions that every major Linux system would soon adopt.

How did one engineer stumble onto the XZ backdoor?

One person caught it by accident, by noticing that something was a little slow. A software engineer named Andres Freund, who worked at Microsoft, was doing unrelated performance testing when he noticed that logging into a machine over the network was taking about half a second longer than it should. Half a second. Most people would never notice, and of the few who did, almost none would chase it.

Freund chased it. He dug into why the login was slow, found that a compression library was eating an odd amount of processor time, kept pulling the thread, and uncovered the backdoor hidden inside XZ Utils. He reported it publicly at the end of March 2024, and the security world’s weekend erupted.

Think about how thin that margin was. One careful engineer caught the most sophisticated software supply chain attack anyone had seen, years in the making and aimed at much of the internet’s infrastructure, because a half-second delay bothered him and he had the curiosity and the skill to run it down.

Had he shrugged, or been busy that week, the backdoored versions would have flowed into the stable releases and onto machines worldwide, and we would be telling a very different story, if we knew to tell it at all. There was no system that caught this. There was a person, and a coincidence.

That should embarrass the whole security industry. Enormous sums go into security products every year, and a software engineer doing unrelated testing, who didn’t like a half-second delay, found the most dangerous back door in years. I’d take one person with that kind of curiosity over any product on the market.

Why is the XZ backdoor the most unsettling attack in this series?

Because it inverts the pattern of every other article here, and the inversion is worse.

In the pager attack, Israel built a company to become a trusted supplier.

In Crypto AG, intelligence agencies bought a company to control a trusted product. Those took money, infrastructure, a nation behind them. The XZ attack achieved the same thing, trusted-supplier access to a critical piece of the world’s software, with almost none of that. It took one persistent person, a couple of fake accounts, and two years of patience. The barrier to becoming trusted was time and social pressure applied to a tired volunteer.

That should change how you think about the software running your life, because the same structural weakness is everywhere. People who are unpaid, overworked, and largely unsupported maintain a staggering amount of the code that runs the modern world, holding up infrastructure that trillion-dollar companies and governments depend on. Every one of those maintainers is a target for exactly the campaign that hit XZ: befriend, help, pressure, take over. We got lucky once, publicly. The question is how many times we haven’t.

The companies that run on this code should be ashamed of how little they give back. They spend fortunes on their own products, leave a critical library to one worn-out volunteer, and act surprised when someone exploits the gap. If your business depends on open-source plumbing, find out who maintains it and help pay for that work. It costs less than one incident response, and it’s the decent thing to do.

Every other article in this series shows an attacker defeating the victim’s trust: crossing the air gap, forging the certificate, poisoning the update.

XZ is the version where the attacker doesn’t defeat trust at all.

They earn it, legitimately, through work indistinguishable from a good contributor’s, and then use it. There’s no technical control that catches that, because at every step the attacker looked exactly like what a trustworthy participant looks like. The only defense is human judgment about who is being trusted with what. That’s exactly the defense that doesn’t scale, and exactly the one the final article in this series argues we’re now handing to machines.

My verdict is that XZ is a people failure dressed up as a software story. We left critical infrastructure in the hands of exhausted volunteers, gave them almost no support, and a patient attacker walked through the gap we made. Until the companies profiting from open source carry some of that weight, I expect to read this story again, and I doubt a half-second delay will give it away next time.

The last article steps back and asks what all twelve of these attacks, taken together, say about the AI systems being built right now, and about the trust we’re placing in things whose behavior no one fully understands. For the wider view, the cybersecurity hub collects the rest of my work on security.

Frequently Asked Questions

What was the XZ Utils backdoor?
The XZ Utils backdoor, tracked as CVE-2024-3094, was malicious code deliberately hidden inside recent versions of XZ Utils, a compression tool installed on a large share of the world’s Linux systems. It let an attacker holding a secret key bypass login security and run their own commands remotely on affected machines. It was rated a maximum severity of ten out of ten and was discovered in March 2024.
How did the attacker get the XZ backdoor into the software?
Through a multi-year social engineering campaign. An account named “Jia Tan” spent about two years making genuine, helpful contributions to XZ Utils, building trust with the project’s overstretched volunteer maintainer. Other accounts, believed to be part of the same operation, pressured the maintainer to hand over more control. Once given it, the attacker hid the backdoor in the packaged release files where routine review would miss it.
How was the XZ backdoor discovered?
By chance. A Microsoft engineer named Andres Freund noticed that logging into a machine over the network was taking about half a second longer than normal. He investigated the slowdown, found a compression library consuming unusual processor time, and traced it to the hidden backdoor in XZ Utils. He reported it publicly at the end of March 2024, days before the backdoored versions would have spread widely.
How bad could the XZ backdoor have been?
Potentially catastrophic. XZ Utils runs on a huge share of internet servers, and the backdoor would have let whoever planted it break into an enormous number of machines worldwide at will, bypassing normal authentication. It was caught days before the affected versions were due to flow into the stable Linux releases that most systems install, so the widespread damage was narrowly avoided.
Who was Jia Tan?
“Jia Tan” was the online identity used to carry out the attack, an account that appeared in 2021 and contributed to XZ Utils for roughly two years before planting the backdoor. Whether it represents a real individual or a cover for a group, likely a well-resourced or state-linked operation given the patience and skill involved, hasn’t been publicly established. The identity is widely believed to be a persona created for the attack.
Why is open-source software vulnerable to this kind of attack?
Because a great deal of critical open-source software is maintained by one or two unpaid volunteers holding up infrastructure that huge companies and governments depend on. An overstretched maintainer is grateful for help and open to pressure, the exact combination the XZ attacker exploited: befriend, contribute, apply pressure, and take over. The same structural weakness exists across much of the software the modern world runs on.
What makes the XZ backdoor different from other supply chain attacks?
Most supply chain attacks defeat trust by forging a certificate, poisoning an update, or breaking into a build system. The XZ attacker never defeated trust; they earned it, through work indistinguishable from that of a good contributor, and then abused it. No technical control catches that, because at every step the attacker looked exactly like a trustworthy participant. It also required only patience and social pressure.
☰Continue the Series  (13 parts)

About the Author
Richard Lowe, professional ghostwriter

Richard Lowe is a professional ghostwriter and author with 113+ books authored and 54+ ghostwritten. Before writing full time he spent 33 years in enterprise technology, including 20 years as Director of Computer Operations and Technical Services at Trader Joe's. He writes nonfiction, fiction and memoir, and works with executives and experts on books that build authority.

More about Richard Lowe →

Disclaimer

The views and opinions expressed in this blog post are solely those of Richard Lowe and are based on personal experience and research. This content is for informational purposes only and should not be construed as professional legal, financial, accounting, or business advice. Always consult with qualified professionals before making important business or legal decisions. Richard Lowe is not a lawyer, accountant, or licensed professional advisor, and this content does not establish any professional relationship.

0 comments

No comments yet. Yours can be the first.

Was this useful?

Leave a comment