A software supply chain attack happens when an attacker infiltrates a software vendor, a build system or an open-source project and inserts malicious code into software before it reaches customers. Because the software arrives signed and trusted, it bypasses normal defenses and can compromise thousands of organizations from a single breach.
Key takeaways
- A software supply chain attack poisons trusted software at the vendor or build stage, so signed updates can carry malware.
- SolarWinds, 3CX and XZ Utils show the pattern: one upstream compromise reaches thousands of downstream victims.
- The defenses that work are SBOMs, vendor vetting, build integrity, least privilege and fast patching.
Most attacks try to break into your network. A software supply chain attack does not bother. It compromises the software you already trust, so the malware arrives inside a signed update from a vendor you chose yourself.
What is a software supply chain attack?
A software supply chain attack happens when a cyber threat actor infiltrates a software vendor's network and uses malicious code to compromise the software before the vendor sends it to customers. That is the definition CISA and NIST use in their joint guidance, Defending Against Software Supply Chain Attacks.
The key word is "before". The customer does nothing wrong. They install a routine update, a new tool or a library their developers depend on, and the malicious code comes with it. Because the software is already trusted, it can have widespread consequences for government, critical infrastructure and private-sector customers.
Your software supply chain is everything that stands between a developer's keyboard and your systems: the vendor, the build server, the code-signing certificate, the update server, the open-source libraries inside the product, and the managed service provider that installs it for you. An attacker only needs to compromise one weak link.
How does a software supply chain attack work?
Attackers follow a simple logic: compromise one supplier, reach thousands of customers. The attack usually runs in four stages, and the victim's own defenses rarely see it coming.
1. Compromise the supplier
The attacker gets into the vendor's network, a build system, a code-signing process or an open-source project. Common entries are stolen credentials, an unpatched vulnerability or a maintainer account taken over after a long social-engineering effort.
2. Poison the software
Malicious code is inserted into the product, its build pipeline or a library it depends on. The code is often small and quiet, designed to sit dormant until it reaches a high-value target.
3. Distribute it as a trusted update
The vendor signs the compromised software with its real certificate and ships it through its normal update channel. Customers install it willingly, and their security tools see a legitimate, signed update from a known vendor.
4. Exploit the victims
Once installed, the backdoor phones home, steals credentials or opens remote access. Attackers often pick only a subset of victims to exploit further, which is why the full damage can take months to surface.
What are the main types of software supply chain attacks?
CISA and NIST highlight three common techniques, and they are not mutually exclusive. An attacker may use more than one in the same campaign.
| Technique | How it works | Example |
|---|---|---|
| Hijacking updates | Malware is inserted into a routine software update by infiltrating the vendor's network. | SolarWinds Orion updates, 2020 |
| Undermining code signing | Attackers self-sign certificates, break signing systems or abuse account access so malicious code looks legitimate. | 3CX desktop app, 2023 |
| Compromising open-source code | Malicious code is inserted into a public code library that developers then build into their products. | XZ Utils, 2024 |
| Compromising a managed provider | An attacker breaches an MSP or cloud provider and uses its trusted access to reach its customers. | Kaseya VSA, 2021 |
| Dependency confusion | A malicious package with the same name as an internal library is published publicly and pulled in by automated builds. | Package registry abuse |
Other routes include compromised build tools, tampered hardware components and malicious packages uploaded to public registries. The pattern is the same in every case: trust is the vulnerability.
What are real examples of software supply chain attacks?
Three cases define the modern threat. Each used a different entry point, and each reached far more victims than a direct attack ever could.
SolarWinds Orion (2020)
Attackers inserted malicious code, later called SUNBURST, into the build process for SolarWinds Orion, an IT monitoring platform. The trojanised update was digitally signed with SolarWinds' legitimate certificate and distributed to customers between March and June 2020. SolarWinds told the SEC that fewer than 18,000 customers may have installed the affected updates.
CISA issued Emergency Directive 21-01 in December 2020, ordering federal civilian agencies to disconnect or power down affected Orion products. The attackers, attributed to Russia's SVR foreign intelligence service, then targeted a subset of victims, mainly government and national-security organizations.
3CX desktop app (2023)
In 2023, attackers compromised the 3CX build environment and produced a trojanised version of the 3CX Desktop App, a business phone application distributed to hundreds of thousands of users. The attack showed that even a signed desktop application from a well-known vendor can carry malware, and it was later linked to a prior compromise of a software package from Trading Technologies.
XZ Utils (2024)
In March 2024, malicious code was found in versions 5.6.0 and 5.6.1 of XZ Utils, a compression library included in many Linux distributions. CISA issued an alert for CVE-2024-3094 and advised downgrading to an uncompromised version such as 5.4.6.
The backdoor was the result of a multi-year effort by an attacker who gained a maintainer's trust before inserting it. It was caught before it spread widely, largely because an engineer noticed a process running about 500 milliseconds slower than it should.
Kaseya VSA (2021)
Attackers exploited Kaseya VSA, remote-management software used by managed service providers, to push ransomware to the MSPs' downstream customers. CISA and the FBI issued guidance for MSPs and their customers, because a single compromised tool reached many small businesses that had never dealt with Kaseya directly.
Why are supply chain attacks so hard to detect?
Supply chain attacks are difficult to detect because the malicious code arrives through a channel you have already approved. Your firewall allows the update, your endpoint tool trusts the vendor's signature, and your staff installed the software on purpose.
CISA notes that such attacks can be introduced during any phase of a product's life cycle, from design and development through distribution, deployment, maintenance and disposal. That gives attackers many places to hide and defenders many places to watch.
The attacks also demand patience. CISA observes that they typically require strong technical aptitude and long-term commitment, which is why advanced persistent threat actors, including nation-states, are the most likely to run them. The XZ Utils attacker spent nearly two years building trust before inserting the backdoor.
Finally, the blast radius is asymmetric. One vendor compromise can expose thousands of customers at once, and each customer must then work out whether they were among the few actually exploited. That triage takes time, and time favors the attacker.
Software supply chain attack vs third-party breach vs vendor risk
These terms are often used interchangeably, but they describe different things. Getting them straight matters, because each one needs a different response.
| Term | What it means | Your response |
|---|---|---|
| Software supply chain attack | A method: trusted software is used as a launchpad to attack downstream customers. | Contain the software, hunt for the backdoor, rotate credentials. |
| Third-party breach | An event: your vendor was compromised, whether or not it reached you. | Ask the vendor what data was exposed and what to do next. |
| Vendor risk | An ongoing condition: the risk a supplier poses to you over the whole relationship. | Vet, contract, monitor and review suppliers continuously. |
| Dependency vulnerability | A flaw in a library or component you use, not necessarily planted by an attacker. | Patch or replace the component; check your SBOM. |
A third-party breach can cause a supply chain attack, but it does not have to. A vendor can be breached without its software being poisoned. Conversely, a supply chain attack can start in an open-source library with no vendor breach at all.
How do you prevent software supply chain attacks?
No single control stops these attacks. CISA and NIST recommend treating software purchases as part of a formal risk-management program, using the NIST Cyber Supply Chain Risk Management (C-SCRM) framework and the Secure Software Development Framework (SSDF). For a small team, that translates into practical steps.
For software buyers
- Know your suppliers. Keep an inventory of critical vendors, products and open-source dependencies, and rank them by how much damage a compromise would cause.
- Demand an SBOM. Ask vendors for a software bill of materials and a security attestation, and put supply-chain security requirements in contracts.
- Verify what you install. Check signatures and hashes, stage updates with a small group first, and watch for unexpected behavior after an update.
- Limit vendor access. Give vendor and service accounts only the access they need, rotate their credentials, and require phishing-resistant MFA.
- Patch fast, and plan for the worst. When a vendor discloses a compromise, assume you may be affected until your SBOM says otherwise, and have a rollback plan ready.
For software builders
- Protect the build. Isolate build systems, require MFA and signed commits, and verify the integrity of every artifact before it ships.
- Follow the SSDF. Use NIST's Secure Software Development Framework practices: secure the development environment, protect code, and verify third-party components.
- Pin and scan dependencies. Pin library versions, scan them for known vulnerabilities, and review new maintainers and contributors carefully.
- Generate SBOMs. Ship an SBOM with every release in a standard format such as SPDX or CycloneDX, so customers can answer "are we affected?" in minutes.
For a wider starting point, our small business cybersecurity checklist covers inventory, patching and vendor review alongside backups and MFA.
You can also check your own public exposure with the free security headers checker.
What should you do if a vendor you use is compromised?
Act on the assumption that you may be affected, and work through the facts in order. Speed matters, but so does evidence: do not wipe systems before you know what happened.
- Check your SBOM and inventory. Confirm whether you run the affected product and version, and where it is installed.
- Follow the vendor and CISA guidance. Apply the vendor's fix or mitigation, and check CISA alerts for indicators of compromise.
- Hunt for the indicators. Search logs for the published indicators, unusual outbound connections and new scheduled tasks or services.
- Rotate credentials. If the compromised software had access to credentials, tokens or privileged accounts, rotate them and review sessions.
- Isolate, then rebuild if needed. Disconnect affected systems, preserve evidence, and rebuild from known-good media if the backdoor cannot be ruled out.
- Report it. Tell your security team, and in the US report significant incidents to CISA. If customer data was exposed, follow your breach-notification obligations.
The bottom line
A software supply chain attack turns your trust into the attacker's weapon. You cannot eliminate that trust, because modern software is built from other people's code, but you can make it verifiable: know what you run, demand SBOMs, vet your vendors, protect your builds and watch what trusted software does after it installs.
Start with an inventory of the vendors and libraries you depend on most, and ask each one for an SBOM and a security attestation. You can map your wider exposure with Cysoro's attack surface management.
Check your public-facing services with the free SSL checker, and read CISA's supply chain integrity resources for the official guidance.
Frequently asked questions
What is a software supply chain attack in simple terms?
It is an attack on the software you trust, before it reaches you. Instead of hacking your company directly, the attacker compromises a vendor, a software update or a code library you use, so the malicious code arrives inside something you already installed and trust.
What is the difference between a supply chain attack and a third-party breach?
A third-party breach is a vendor getting hacked. A supply chain attack is a method: the attacker uses that vendor, product or component as a launchpad to reach you, the downstream customer. Not every vendor breach becomes a supply chain attack, and not every supply chain attack starts with a vendor breach.
What was the SolarWinds attack?
In 2020, attackers inserted malicious code into updates for SolarWinds Orion IT monitoring software released between March and June 2020. SolarWinds told the SEC that fewer than 18,000 customers may have installed the affected updates, and CISA issued Emergency Directive 21-01 ordering federal agencies to disconnect the product.
What is an SBOM and why does it matter?
A software bill of materials is a machine-readable list of every component and version inside a product. When a flaw like the XZ Utils backdoor is disclosed, teams with an SBOM can search in minutes to see whether they are affected, instead of guessing.
Can antivirus or a firewall stop a supply chain attack?
Usually not on their own. The malicious code arrives inside signed, trusted software from a legitimate vendor, so signature checks pass and firewalls see normal update traffic. Defense depends on vendor vetting, build integrity, SBOMs, least privilege and monitoring for unusual behavior after installation.
How do I protect a small business from supply chain attacks?
Keep an inventory of the software and vendors you depend on, buy from vendors that publish an SBOM and a security attestation, patch promptly, limit vendor access to what is needed, use phishing-resistant MFA, and monitor for unusual outbound traffic after updates.
What is NIST SP 800-161?
NIST SP 800-161 Revision 1 is the main US guidance on cybersecurity supply chain risk management. It describes how to run a C-SCRM program across the organization: identify critical suppliers, set security requirements in contracts, assess supplier controls and plan for supplier incidents.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the joint CISA and NIST guidance Defending Against Software Supply Chain Attacks and CISA supply-chain resources.
How we write and fact-check →