AC

Andrew Caskey

Cloud Infrastructure & Observability Engineer

Fifty Years of Supply Chain Security: What Russ Cox's CACM Article Means for SRE

Russ Cox’s Fifty Years of Open Source Software Supply-Chain Security, published in Communications of the ACM in October 2025, opens with a provocation: the problems we face in software supply chain security today were anticipated in a 1974 U.S. Air Force review of a Honeywell Multics system. That report explored how a tiny backdoor in an innocent system call — triggered by a specific, very unlikely input — could completely undermine the security of an entire operating system. Fifty years later, the XZ Utils attack did exactly the same thing to SSH.

The contours haven’t changed because the problems are fundamental. This post unpacks Cox’s argument, defines the terms that often get used loosely, and extends the discussion into territory the article gestures at but doesn’t explore: what AI means for the future of supply chain security.


The Problem: We Trust Code We Didn’t Write

For decades, software reuse was aspirational. Now it’s the default. Modern programming environments like Go, Node, and Rust have made it trivial to pull in work by strangers on the Internet. Building the Go compiler itself executes 714 commands across 297 packages with 3,132 dependency edges. Kubernetes’s kubelet depends on 1,581 packages from 137 Go modules. These are small, low-level utilities — higher-level applications have even more complex supply chains.

Cox’s thesis is blunt: “You can’t trust code that you did not totally create yourself.” Ken Thompson said that in his 1983 Turing Award lecture. But today we do it all the time, and almost no one is checking.

The problem isn’t that we lack awareness. The 1974 Multics report anticipated compiler backdoors, distribution-phase tampering, and hidden modifications to binaries. Thompson implemented the compiler backdoor attack on early Unix — just 99 lines of C and a 20-line shell script. The XZ attacker used social engineering and build-system manipulation instead, because in our current world, that level of sophistication simply isn’t necessary. There are far easier ways to mount a supply chain attack, like asking a maintainer if they’d like some help.


What Is the Software Supply Chain, Exactly?

Cox proposes a three-part definition that brings welcome precision to a term that’s often used vaguely:

  1. An open source software supply chain attack is the insertion of nefarious open source code into trusted software before delivery.
  2. An open source software supply chain vulnerability is an exploitable weakness in trusted software caused by a third-party, open source component.
  3. Open source software supply chain security is the engineering of defenses against both.

The distinction between attacks and vulnerabilities matters because they have different solutions. The XZ backdoor was an attack — code written with nefarious intent, inserted through social engineering of the project’s maintainership. Heartbleed was a vulnerability — an innocent coding mistake in OpenSSL that happened to be devastatingly exploitable. Log4j was a vulnerability. The event-stream npm package, which harvested bitcoin wallets when linked into the Copay app, was an attack.

Several nuances sharpen the definition:

  • Hardware supply chain is out of scope. The NSA intercepting computers to install backdoored components is a different problem.
  • Closed source components are out of scope. The 2012 Juniper Networks VPN backdoor was a supply chain attack, but not an open source one — the nefarious change wasn’t in an open source component.
  • The affected software doesn’t need to be open source. Minecraft was affected by the Log4j vulnerability. Almost all closed source programs use open source components, so they all depend on good open source supply chain security.
  • The supply chain is fractal. Dependency graphs are only the most visible part. Each package may be written by a different person with different security practices. The computers and services software passes through during build and distribution are all potential attack sites. Who has access to each project, what infrastructure they use, who might have access in the future — for the most part, this information is unavailable and goes ignored.

The XZ Attack: A Case Study in Fundamental Failure

The XZ story is worth examining in detail because it demonstrates that the supply chain security problem is as much social and economic as it is technical.

Lasse Collin started the XZ project in 2005. The LZMA compression format became widely used for tar files, kernel images, and much more. The software was stable and didn’t need significant ongoing attention. Collin was not paid for it.

In late 2021, an attacker using the name “Jia Tan” started sending innocuous patches. In mid-2022, the attacker used multiple accounts to pressure Collin on the mailing list: “The current maintainer lost interest or doesn’t care to maintain anymore. It is sad to see for a repo like this.” And: “I get that this is a hobby project for all contributors, but the community desires more. Why not pass on maintainership…?”

The pressure campaign worked. Over eighteen months, Collin ceded control. The attacker built trust through honest improvements, started making official releases in early 2023, laid technical groundwork through the year, and launched the actual attack in early 2024.

Cox estimates the total cost: a competent software engineer working full-time for two years to gain trust probably costs less than a million dollars. The exploit development might add another million. A hidden backdoor into the vast majority of Linux SSH servers would be worth billions.

The attack was discovered essentially by accident — Andres Freund, a Postgres developer, noticed his SSH daemon was using slightly more CPU than normal. Cox poses the uncomfortable question: “What are the chances we would accidentally discover the very first major attack on the open source software supply chain in just a few weeks? Perhaps we were extremely lucky, or perhaps we have missed others.”


The Defenses: What We Can Do Today

Cox organizes defenses into four categories, each addressing a different part of the supply chain:

1. Authenticate Software

Cryptographic signatures make it impossible to alter code between signing and verifying. The simplest approach: record and distribute expected cryptographic hashes of dependency versions. The Go checksum database does this at scale — every version of every public Go module gets a SHA256 checksum, signed by the database server’s private key. Every download is verified. This “trust on first use” approach doesn’t guarantee the code is trustworthy, but it guarantees the code can’t change after first publication.

Debian’s hash-checking system is what forced the XZ attacker to release a new version rather than modifying an existing one. It didn’t prevent the attack, but it made it harder.

2. Make Builds Reproducible

The Multics report noted that backdoors might “best be hidden in changes to the binary code of a compiled routine,” leaving source code clean. The XZ attack did exactly this — the malicious code was included only in the packaged distribution, not the source repository.

The fix is reproducible builds: given the same source, different machines produce identical binaries. The Go project recently achieved full reproducibility — the same build produces identical bits whether you build on Linux, Windows, or Mac, on x86 or ARM.

3. Find and Fix Vulnerabilities Quickly

Scan your software regularly — ideally daily — because new vulnerabilities are always being added to databases even if your code isn’t changing. The community has standardized on the OSV format for vulnerability descriptions and the OSV database for aggregation. Tools like govulncheck, npm audit, and osv-scanner all cross-check your software bill of materials against known vulnerabilities.

But scanning for known vulnerabilities is the bare minimum. Run security audits on critical open source dependencies. Run fuzzers. Attackers are going to use all these methods; you should use them first.

When a vulnerability is found, you need comprehensive testing to validate the fix and automated deployment to get patched software out in hours, not months. When Log4j hit, most companies took weeks or months to even inventory what was affected. The FTC issued a warning pointing to Equifax’s $575 million liability for failing to patch known vulnerabilities.

4. Prevent Vulnerabilities

Omit needless dependencies. Gordon Bell observed that the cheapest, fastest, and most reliable components are those that aren’t there. OpenSSH is careful about dependencies; Debian was not. Debian patched sshd to link against libsystemd, which pulled in compression libraries including liblzma. That relaxed dependency posture was a key enabler for the XZ attack — and the reason it was limited to Debian-based systems.

Use safer languages. The NSA’s 2022 recommendation on software memory safety encourages C#, Go, Java, or Rust over C and C++. Heartbleed was a bounds-checking error in C that would have been nearly impossible in a memory-safe language.

Fund open source. The xkcd “Dependency” comic — all modern digital infrastructure resting on a project some random person in Nebraska has been thanklessly maintaining since 2003 — remains disturbingly accurate. When Heartbleed hit, OpenSSL had one full-time developer and $2,000 in annual donations, despite billions of dollars of commerce relying on it. The OpenSSF exists but hasn’t solved the problem. The XZ attack was enabled as much by underfunding as by any technical detail.


Future Considerations: AI and the Supply Chain

Cox’s article doesn’t address AI directly, but the implications are hard to ignore. AI is about to reshape supply chain security in ways that cut both directions — making attacks easier to mount and harder to detect, while also creating new categories of defense.

AI as Attack Amplifier

The XZ attack required a skilled engineer spending two years building trust through legitimate contributions. AI dramatically lowers that cost. Large language models can generate plausible, helpful code contributions at scale. An attacker could maintain dozens of personas simultaneously, each building trust in different projects, each producing genuine improvements alongside carefully hidden payload. The social engineering that worked on a single exhausted maintainer could be industrialized.

AI-generated code also creates a new category of supply chain risk: model poisoning. If AI coding assistants are trained on or fine-tuned with open source code that contains subtle vulnerabilities, those patterns can propagate into every project that uses the assistant. The vulnerability doesn’t need to be in a dependency you explicitly import — it arrives through the tool that helps you write code.

AI-Generated Dependencies

As AI systems increasingly write and publish packages, the boundary between “code I wrote” and “code from my supply chain” blurs further. If an AI assistant generates a utility function that happens to match an existing npm package, should you use the generated code or the package? The generated code has no community, no CVE tracking, no security audit history. The package has all of those, but also a maintainer you’ve never met and a dependency tree you haven’t inspected. Neither option is clearly better.

We’re also likely to see a proliferation of AI-generated packages — small, single-purpose libraries published by developers who used AI to write them and may not fully understand the code. These packages could contain subtle vulnerabilities that neither the author nor the AI recognized, and they may never receive the security scrutiny that established packages get.

AI as Defender

The more promising direction is using AI to strengthen supply chain defenses:

  • Automated code review at scale. AI can review dependency updates for suspicious patterns — obfuscated code, unusual build-system modifications, changes that don’t match stated intent. The XZ attack’s build-system manipulation might have been flagged by a system trained to identify discrepancies between source repositories and packaged distributions.
  • Behavioral analysis of contributors. Patterns like the XZ attack’s social engineering — new contributor builds trust, sock-puppet accounts pressure maintainer, gradual acquisition of privileges — could be detected by analyzing contribution patterns across the ecosystem.
  • Vulnerability discovery. AI-powered fuzzing and static analysis can find vulnerabilities faster than manual audits. Google’s OSS-Fuzz has already found thousands of bugs using traditional fuzzing; AI-guided fuzzing could be significantly more effective.
  • SBOM analysis and risk scoring. AI can help organizations understand the actual risk profile of their dependency graphs — not just whether a known CVE exists, but whether a dependency is maintained by a single person, whether its test coverage is adequate, whether its recent commits show signs of concerning patterns.

The Trust Problem Gets Harder

Cox ends his article by noting that Thompson’s “Reflections on Trusting Trust” described a world where you can’t trust any code you didn’t write yourself. AI makes this worse in a subtle way: soon you may not be able to fully trust code you did write yourself, because you wrote it with an AI assistant whose training data and behavior you don’t control. The supply chain now extends through your tools in a way that’s even harder to inspect than a dependency graph.

The fundamental lesson of Cox’s fifty-year survey is that these problems don’t have easy solutions because they’re not primarily technical — they’re about trust, economics, and human nature. AI doesn’t change that dynamic. It accelerates it.


What This Means for SRE

For site reliability engineers, supply chain security intersects with almost everything we do:

  • Error budgets and incident response. A supply chain compromise is an incident with potentially unlimited blast radius. Your SLOs don’t help if the binary you’re monitoring has been backdoored. The XZ attack would have affected SSH servers worldwide — that’s not a partial degradation, it’s a total loss of trust.
  • Release engineering. Hermetic builds, reproducible artifacts, and cryptographic verification of dependencies aren’t optional extras. They’re the release engineering equivalent of seatbelts. Cox’s work on the Go checksum database shows what a mature implementation looks like.
  • Monitoring. The XZ attack was caught because of a performance anomaly — slightly elevated CPU usage in SSH. This is exactly the kind of signal that good monitoring catches. Monitoring for unexpected behavioral changes in dependencies, not just your own code, should be part of the practice.
  • Toil and automation. Daily vulnerability scanning, automated patching, and rapid redeployment are table stakes. If your team can’t ship a patched dependency in hours, your supply chain security posture is weak regardless of what else you do.
  • Simplicity. Every unnecessary dependency is attack surface. The SRE principle of simplicity — that complexity is the primary source of unreliability within your control — applies directly. The OpenSSH project’s careful dependency management is a model. Debian’s relaxed linking of sshd against libsystemd and its transitive dependencies is a cautionary tale.

The contours of the problem haven’t changed in fifty years. Our defenses need to keep improving anyway.


Cox, R. 2025. Fifty Years of Open Source Software Supply-Chain Security. Communications of the ACM, 68(10), 88–95. Originally published in ACM Queue, 23(1), January–February 2025.