A supply chain attack is a cyberattack in which criminals compromise a trusted vendor, software package, service provider, or device so they can reach every organization that depends on it. Attackers skip the hard work of breaching a well-defended target and instead poison something the target already trusts, such as a software update, a third-party checkout script, or a connected SaaS app.
One tampered script on a payment page can expose every card entered there, and the merchant still absorbs the chargebacks, compliance penalties, and lost customer trust.
How a Supply Chain Attack Works
Every modern business runs on code, services, and hardware it did not build itself. A typical online store relies on a hosting provider, an eCommerce platform, payment plugins, analytics tags, review widgets, chat tools, and hundreds of open-source libraries. Each of those dependencies is a possible entry point, and attackers only need one of them to fail.
Most supply chain attacks follow the same four-stage pattern.
- Find the weak link. Attackers look for a supplier with broad reach and weaker defenses than its customers, such as a small open-source maintainer, a marketing tag provider, or an IT contractor.
- Compromise the supplier. They steal credentials, phish a developer, buy an abandoned domain, or exploit an unpatched build system to gain control of the product or service.
- Ride the trust relationship. The poisoned update, package, or script ships through normal channels, so it passes signature checks and looks like routine activity.
- Execute at scale. The payload runs inside every downstream customer at once, stealing credentials, skimming card data, installing backdoors, or deploying ransomware.
This leverage is what makes the tactic so attractive. One supply chain attack on one vendor can reach thousands of businesses that never had direct contact with the attacker.
Why Supply Chain Attacks Are Surging in 2026
Third-party compromise has moved from an edge case to one of the most common causes of a breach. Verizon’s 2025 Data Breach Investigations Report found that third-party involvement in breaches doubled year over year to 30%. The 2026 Data Breach Investigations Report found that third-party involvement rose another 60% and now accounts for nearly half of all breaches, while ransomware appeared in 48% of breaches.
Open-source software registries have become a favorite target. In September 2025, the self-replicating Shai-Hulud worm compromised more than 500 npm packages, stole developer and cloud credentials, and used them to publish more malicious versions automatically, according to a CISA alert on the npm compromise. Attacks on widely used packages in 2026 showed how fast the damage spreads when a single maintainer account falls.
Merchants should read these numbers as a direct business risk. Stolen card data and hijacked customer accounts feed straight into credit card fraud and the chargebacks that follow, which is why supply chain risk now sits alongside other eCommerce fraud trends that fraud teams track.
Types of Supply Chain Attacks
Supply chain attacks fall into seven broad categories. The table below summarizes how each one works alongside documented supply chain attack examples, followed by a closer look at the types that matter most to online sellers.
| Type | How it works | Documented example |
|---|---|---|
| Compromised software updates | Attackers insert malicious code into a vendor's build or update process, so customers install it as a trusted update. | SolarWinds Orion (2020) and NotPetya, which spread through Ukrainian accounting software M.E.Doc (2017) |
| Open-source package poisoning | Attackers hijack a maintainer account or publish lookalike packages to registries such as npm and PyPI. | Shai-Hulud npm worm (2025), axios npm compromise (March 2026), LiteLLM on PyPI (March 2026) |
| Third-party web scripts (web skimming) | A script loaded on checkout or account pages is altered to capture form data in the shopper's browser. | Polyfill.io (2024), long-running Magecart campaigns, Polymarket front-end breach (June 2026) |
| SaaS and OAuth integration abuse | Attackers steal tokens from a connected app and use them to pull data from customers' platforms. | Salesloft Drift tokens used against Salesforce instances (August 2025) |
| Third-party service provider compromise | A contractor or managed service provider with network access becomes the path into the client. | Target breach through an HVAC vendor's credentials (2013) |
| Hardware tampering | Devices or components are altered during manufacturing, shipping, or refurbishment. | Disputed 2018 reports about Supermicro server motherboards |
| Logistics and documentation manipulation | Shipping systems, tracking data, or trade documents are disrupted or forged. | Maersk shipping operations crippled by NotPetya (2017) |
The first four types now account for most of the incidents that reach merchants. This is because they target the software and scripts that run storefronts and payment flows.
Compromised Software Updates
This is the classic software supply chain attack. Attackers who breach a vendor’s build pipeline can sign and ship malicious code that customers install without suspicion. The SolarWinds Orion compromise reached about 18,000 customers through a routine update, and NotPetya spread worldwide after attackers hijacked the update server of a Ukrainian accounting tool.
Open-Source Package Poisoning
Developers pull in open-source libraries by the hundreds, and each one can pull in dozens more. In the axios npm attack on March 31, 2026, an attacker socially engineered a maintainer into installing a remote access trojan during a fake video call, then used the stolen npm access to publish two malicious axios versions.
The library has more than 100 million weekly downloads, and the poisoned versions stayed live for about three hours, according to Datadog Security Labs research. The same month, a group known as TeamPCP compromised the Trivy security scanner and then pushed credential-stealing versions of the LiteLLM Python package to PyPI.
The axios case started with social engineering aimed at a person, a pattern that mirrors the voice phishing (vishing) and phishing scam tactics fraud teams already train staff to spot.
Third-Party Web Scripts and Formjacking
Web skimming, also called formjacking or a Magecart attack, is the type that hits eCommerce hardest. Attackers alter a JavaScript file that loads on the checkout page, and the script quietly copies card numbers, expiry dates, security codes, and billing details as shoppers type them.
One example of this supply chain attack is when a long-running Magecart campaign reported in January 2026 targeted checkout pages handling cards from at least six major payment networks. These payment networks include Mastercard, American Express, and Discover.
SaaS and OAuth Integration Abuse
Connected apps hold long-lived tokens that grant access to CRM, support, and order data. Between August 8 and 18, 2025, a threat actor used stolen OAuth tokens from the Salesloft Drift chat integration to export data from customers’ Salesforce instances, with more than 700 organizations potentially affected. The attackers also searched the stolen records for cloud keys and passwords to use in follow-on attacks.
Why eCommerce Merchants Are Prime Targets
Online stores combine three things attackers want. They handle payment data, they depend on a long list of third-party tools, and they often lack a dedicated security team to watch those tools. A single storefront can load scripts from analytics providers, ad networks, review apps, chat widgets, and payment plugins, and any of them can change without the merchant noticing.
The fallout lands on the merchant. Skimmed cards are resold and used for card-not-present purchases, compromised admin or marketplace credentials lead to a hacked seller account, and customers who lose money tend to blame the store where they shopped. Platform-hosted merchants are not exempt, since apps and custom scripts added to a store sit outside the platform’s own protections, which is why Shopify store security still depends on what the merchant installs.
How PCI DSS 4.0.1 Changed Payment Page Security
Card networks responded to web skimming with new rules. Two PCI DSS 4.0.1 requirements became mandatory on March 31, 2025. Requirement 6.4.3 requires merchants to authorize every script on payment pages, confirm each script’s integrity, and keep an inventory with a written justification for each one. Requirement 11.6.1 requires a mechanism that detects unauthorized changes to payment page content and security headers and alerts staff. The PCI Security Standards Council guidance on eCommerce requirements explains how assessors evaluate both controls.
Supply Chain Attack Prevention for Merchants
No merchant can audit every line of third-party code, but a layered program cuts the odds and the damage of an attack. The steps below follow the order most teams can realistically put in place.
1. Inventory Every Vendor, App, and Script
Start with a complete list of the software, plugins, scripts, SaaS integrations, and service providers that touch your store, your payment flow, or your customer data. Record who owns each one internally, what data it can reach, and when it was last reviewed. Remove anything nobody can justify, because unused apps and forgotten tags are common entry points.
2. Lock Down Payment Page Scripts
Your checkout page should run as few third-party scripts as possible, and each one should be approved and monitored.
Subresource integrity and content security policy
Subresource Integrity (SRI) hashes make the browser refuse a script whose contents have changed. A Content Security Policy limits which domains can load scripts or receive form data, which blocks many skimmers from sending stolen data out.
Change and tamper detection
Client-side monitoring tools alert you when a script on the payment page changes or a new one appears. This control also supports PCI DSS requirement 11.6.1. Hosted payment fields or redirect checkouts from your processor reduce exposure further, since card data never touches your page.
3. Apply Third-Party Risk Management to Every Vendor
A formal third party risk management process screens vendors before they get access and reviews them on a schedule. Vendor risk management should cover security questionnaires or SOC 2 reports, breach notification terms in contracts, the minimum data and permissions each vendor needs, and a plan to cut access quickly if a vendor is compromised. Higher-risk vendors, such as those with admin or payment page access, deserve deeper and more frequent reviews.
4. Audit SaaS Integrations and OAuth Tokens
Review every app connected to your eCommerce platform, CRM, help desk, and email tools. Revoke tokens for integrations you no longer use, limit scopes to what each app needs, and rotate API keys on a set schedule. Turn on alerts for unusual data exports, which was the first visible sign in the Salesloft Drift campaign.
5. Strengthen Software Supply Chain Security
Merchants with custom code or headless storefronts need basic software supply chain security in their development pipeline. Commit lockfiles and pin dependency versions, delay adoption of brand-new package releases by a few days, and scan dependencies for known malicious versions. Require phishing-resistant multi-factor authentication for developer accounts on GitHub, npm, and cloud consoles, and keep a software bill of materials (SBOM) so you can check quickly whether a newly reported npm supply chain attack affects you.
6. Monitor for Downstream Fraud
A supply chain breach often shows up first as a fraud pattern. Watch for spikes in declined authorizations, sudden clusters of fraud chargebacks from shoppers who all used your checkout during the same window, account takeovers, and customer reports of unexpected charges. A structured approach to merchant fraud monitoring and the right eCommerce fraud protection solutions help you connect those signals early, as part of broader fraud protection for merchants.
7. Prepare an Incident Response Plan
Decide in advance who acts when a vendor discloses a breach. The plan should cover removing or disabling the affected script or app, rotating credentials and tokens, notifying your acquirer and payment processor, preserving logs for forensics, and meeting card brand and legal notification deadlines. Teams that rehearse this process contain incidents in hours instead of weeks.
Close the Gaps in Your Supply Chain Before Attackers Find Them
A supply chain attack succeeds because businesses trust their vendors, scripts, and packages by default. The attacks of 2025 and 2026 proved that one compromised maintainer, token, or checkout script can reach thousands of companies within hours. Merchants who inventory their third parties, lock down payment page scripts, enforce PCI DSS 4.0.1 controls, and watch for downstream fraud turn that blind trust into verified trust. Start with your checkout page this week, since that is where attackers turn a vendor’s weakness into your chargebacks.
Frequently Asked Questions
What is a supply chain attack in cyber security?
A supply chain attack is a cyberattack that compromises a trusted third party, such as a software vendor, open-source package, or service provider, to reach that party's customers. The victim is breached through something it already trusts and installs or connects to by choice.
What is the main goal of a supply chain attack?
The main goal is scale, since compromising one supplier gives attackers access to every organization that uses it. Attackers typically aim to steal credentials, payment data, or customer records, or to deploy ransomware across many victims at once.
What are some recent supply chain attacks?
Recent examples include the Shai-Hulud npm worm in September 2025, the Salesloft Drift OAuth token campaign in August 2025, and the axios npm and LiteLLM PyPI compromises in March 2026. In June 2026, a compromised third-party vendor script drained roughly $3 million from Polymarket users.
How do you detect a supply chain attack?
Detection relies on watching for unexpected changes, such as new or modified scripts on payment pages, unusual outbound connections, and unexplained data exports from connected apps. Merchants often spot the first sign in fraud data, for example a cluster of fraud chargebacks from shoppers who used the same checkout window.
How do you defend against supply chain attacks?
Keep an inventory of every vendor and script, apply third party risk management, and limit each integration to the minimum access it needs. On payment pages, use script authorization, integrity checks, and change detection, which PCI DSS 4.0.1 now requires.
What is an npm supply chain attack?
An npm supply chain attack poisons a JavaScript package on the npm registry, usually by hijacking a maintainer account or publishing a lookalike package. Every project that installs the malicious version runs the attacker's code, which is how the 2025 Shai-Hulud worm and the 2026 axios compromise spread so quickly.
Charity Amancio
Charity Amancio specializes in SaaS solutions for global eCommerce businesses, including payments and risk management applications. She bridges the gap between technology and merchant needs, offering practical perspectives on the tools shaping eCommerce. Her insights appear regularly in B2B publications covering the digital commerce space.













