What is a supply chain attack? Explained with a spiked delivery
A software supply chain attack slips harmful code into software or its building blocks before they reach you. Think of a supplier's spiked batch landing in every kitchen it delivers to.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- Engineering
Two fake releases of Microsoft's AI agent toolkit appeared on Python's official package site this month, carrying code that steals passwords and cloud keys (our news story). Security teams call this a software supply chain attack. Here is what that means.
In one sentence: A software supply chain attack is when attackers tamper with software, or one of the building blocks it is made from, before it reaches you, so the harmful code arrives through a source you already trust, such as a vendor update or a popular open-source package.
The everyday picture
Picture a busy restaurant kitchen. The chef does not grow wheat or make cheese. Flour, sauces and spices arrive from suppliers, often through a distributor that delivers to hundreds of kitchens. The cooks open the sealed packs and use them without testing every spoonful.
Now imagine someone sneaks into a supplier's warehouse and spikes one batch. The packs still look sealed and carry the usual label. Every kitchen that takes that delivery serves the bad batch to its diners, even though nobody in those kitchens did anything wrong.
Software works the same way. Most apps are built from many ready-made parts written by other people. The weak point is not your own kitchen door. It is the trust you place in your suppliers.
An attacker tampers with a supplier's software. It travels through the normal distributor looking genuine, your systems accept it automatically, and the hidden code goes after your keys.
How it works, step by step
- A software supplier (the food supplier) makes a building block: a vendor's product, an update, or a free open-source package other programs use.
- An attacker gets into the supply line (sneaks into the warehouse). The US security agency CISA lists common routes: hijacking a vendor's updates, abusing the digital signatures that prove who made software, and slipping bad code into open-source projects, including look-alike packages with misspelt names.
- The tampered version ships through normal channels (the spiked batch goes out in sealed packs). It sits on the official package site, or arrives as a signed update, so it looks genuine.
- Your systems accept it automatically (the distributor's regular delivery). Many build tools fetch "the latest version" by default, so a bad release can be installed within minutes.
- The hidden code runs with the trust you gave the supplier (the diners eat the meal). It might steal passwords and keys or open a back door. Every organisation that took the delivery is exposed at once.
Try it · Myth or fact
Spiked deliveries: myth or fact?
Decide for yourself first, then tap each statement to check it.
0 of 4 checked
Where the picture stops
- A food seal shows a pack was not opened on the way. A software signature only proves who sent it. If attackers steal the supplier's signing key, the bad batch carries a perfectly valid seal.
- Software ingredients are nested many layers deep: one package depends on others, which depend on more. Food comes with an ingredients label. Most software does not by default, which is why buyers ask for a software bill of materials (SBOM), a list of every component inside.
- A recall does not empty your fridge. Removing a bad version from the package site does not remove copies already downloaded, cached or built into your systems.
Why it matters for your business
- It skips your front door. CISA notes that by compromising a vendor, attackers get past defences such as firewalls, because the code arrives through a channel you allow.
- Clean-up is expensive. For the Microsoft case, the advice for anyone who installed a bad version was to treat the machine as compromised, change every credential it could reach and rebuild from a clean image.
- Customers will ask. CISA recommends that buyers request an SBOM with each software purchase and ask vendors how they build and patch. Expect those questions, and ask them of your own suppliers.
- Small habits cut the risk. Fixing ("pinning") exact versions, checking what changed before upgrading, and giving build systems only the access they need limit how far one bad batch can spread.
Try it · What would you do?
A package you use just had a bad version pulled. What first?
Your website rebuilds every night with the newest version of each building block. You read that a popular package you use published a tampered release a few hours ago. It has now been removed from the package site.
Pick what you would do. You can change your mind.
An example
Imagine a 30-person online shop. Its website is built from about a hundred open-source packages, and every night an automated job rebuilds the site with the newest version of each. One evening a popular package publishes a tampered release. It is pulled an hour later, but the nightly job has already installed it, and the hidden code has copied the shop's payment-provider key. The shop changes every key the build machine could reach, rebuilds from a clean image, and from then on pins exact versions and reviews upgrades weekly.
Frequently asked questions
Is a supply chain attack the same as being hacked directly?
No. In a direct attack, someone breaks into your systems. In a supply chain attack, they break into a supplier or a shared package, and the harm reaches you through software you chose to install.
How do I know if a bad version reached us?
Check the files that record exact versions (lockfiles), build logs and container images against the versions named in the security advisory. If you have an inventory or SBOM of your software, this check is much faster.
Are small businesses at risk?
Yes, usually not because they are singled out but because they use the same popular software as everyone else. One tampered package can reach every organisation that installs it.
What is an SBOM?
A software bill of materials is a list of the components inside a piece of software, like an ingredients label. It helps you find out quickly whether a newly reported bad component is in what you run.
Related explainers
The DevDrift builds AI agents and apps with pinned dependencies and locked-down credentials: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.