Supply Chain Attacks and Third-Party Data Breaches: A Developer's Guide for 2026
01Introduction
A data breach is any incident where information is accessed, stolen, or exposed by someone who shouldn't have it. A third-party data breach is one where the weak point sits outside your organization, at a vendor, partner, or service provider you rely on. A supply chain attack is the deliberate version of that: attackers compromise something you trust, such as a software package, a build tool, or a vendor's system, so that it carries the attack into your environment for them.
For developers, this is no longer a niche concern. Most modern applications are assembled from open-source packages and external services, and every one of them is a door someone else controls. This guide explains how these attacks work, why they're growing, what changes when AI agents start choosing dependencies, and the practical steps that reduce the risk.
02Why third-party risk now drives nearly half of breaches
The numbers have moved fast. Verizon's 2026 Data Breach Investigations Report found that breaches involving third parties rose 60% year over year and now make up 48% of all breaches. In the previous year's report, that share had already doubled from 15% to 30%.
The reason is structural. A typical application today depends on hundreds of open-source packages, a CI/CD pipeline, a cloud provider, and a growing list of APIs and SaaS tools. Each one holds some combination of your code, your credentials, or your customers' data. Attackers have noticed that breaking into one widely used component can reach thousands of downstream organizations at once.
03Data breach vs third-party breach vs supply chain attack
The three terms overlap, but they describe different things.
| Data breach | Third-party data breach | Supply chain attack | |
|---|---|---|---|
| What it is | Any unauthorized access to or exposure of data | A breach where a vendor or partner is the point of failure | An attack that compromises a trusted component to reach its users |
| Where it starts | Anywhere | At an external organization | In software, tooling, or services you depend on |
| Intentional? | Not always (misconfigurations count) | Not always | Always |
| Typical example | An exposed database | A vendor leaks the customer records you shared with it | A malicious version of a popular package steals credentials on install |
04Three ways supply chain attacks reach your systems
1. Open-source dependencies
Package registries such as npm and PyPI let anyone publish code, and installing a package often runs code on your machine or build server. That makes a compromised package an efficient attack.
In September 2025, the US Cybersecurity and Infrastructure Security Agency issued an alert about a self-replicating worm known as Shai-Hulud that had compromised over 500 npm packages. According to CISA, the malware harvested credentials, sent them to an attacker-controlled endpoint, and then spread by publishing compromised versions of other packages under the victims' own npm accounts.
The lesson is that you don't need to install anything unusual to be affected. A routine update of a trusted package can be enough.
2. Vendors, SaaS tools, and APIs
When you connect to an external service, you hand it some of your data and often a token that grants access to more. If that vendor is breached, or if its tokens are stolen, attackers can reach your data without touching your systems at all.
This category is harder to see than dependencies. There's no lockfile listing every vendor, every sub-processor they use, and every token they hold. Many teams approve a vendor once, during onboarding, and never check again as the vendor's infrastructure, policies, and sub-processors change.
3. Build pipelines and developer credentials
CI/CD systems hold the keys to everything: cloud credentials, registry tokens, signing keys, and deployment access. A compromised build step, a malicious GitHub Action, or a leaked personal access token turns your own pipeline into the delivery mechanism. That's why credential-stealing malware in packages so often targets tokens for GitHub, npm, and cloud platforms.
05What changes when AI agents choose your dependencies
Coding agents and autonomous AI agents now install packages, call APIs, and wire up integrations on their own. That speeds up development, and it also removes a checkpoint.
A human developer adding a dependency might notice a package name that's one character off from a popular one, a maintainer they've never heard of, or a package with suspiciously few downloads. An agent optimizing for "make the task succeed" usually doesn't. It will install whatever gets the job done.
Agents also can't build trust the way people do. A person develops a feel for which vendors are reliable over months or years. An agent can only rely on what it can check at the moment it acts: a verified source, a pinned version, a signed artifact, or a machine-readable description of what a service does with data. If that information doesn't exist in a form the agent can read, the agent is working blind.
In practice, that means teams using agents should:
- Restrict what agents can install or call to an approved list, rather than the open registry or the open web.
- Require human review before an agent adds a new dependency or connects a new external service.
- Give agents scoped, short-lived credentials so a compromised tool can't reach everything.
06How to reduce the risk
No single control stops supply chain attacks. What works is a set of habits applied consistently.
Dependencies
- Commit lockfiles and install from them.
npm ci,pip install --require-hashes, and their equivalents install exactly what you reviewed, not the newest version that appeared overnight. - Verify package integrity. npm can check registry signatures and provenance attestations for installed packages:
bash
npm ci
npm audit signatures- Keep a software bill of materials (SBOM) so you can answer "are we affected?" within minutes when the next incident is announced.
- Delay brand-new versions. Many malicious releases are caught within hours or days. A short waiting period before adopting a fresh release filters out a lot of risk.
- Reduce what you depend on. Every package you remove is one less thing that can be compromised.
Vendors and APIs
- Keep an inventory of every external service, what data it receives, and which credentials it holds.
- Ask where data goes. Know each vendor's hosting region, retention period, and sub-processors.
- Check that certifications are current and in scope. A SOC 2 report or ISO 27001 certificate has a scope and a date. An expired or narrowly scoped one tells you less than it seems.
- Re-review regularly. Vendors change infrastructure, policies, and sub-processors. A one-time review at onboarding goes stale quickly.
- Share the minimum. Send vendors only the fields they need, and prefer services that don't retain your data.
Credentials
- Use phishing-resistant multi-factor authentication on developer accounts, especially for GitHub, package registries, and cloud consoles. CISA's alert recommends this for all developer accounts.
- Scope tokens tightly to the permissions and resources each tool needs.
- Rotate secrets on a schedule, and immediately after any suspected exposure.
- Scan for leaked secrets in repositories and CI logs.
07Where APIs fit in the trade-off
Every way of adding a capability to your software moves the risk somewhere:
- Building it yourself keeps control but adds code you have to maintain and patch forever.
- Adding a library saves effort but puts someone else's code, and its whole dependency tree, inside your application.
- Calling an external API keeps that code out of your application entirely, but moves the trust decision to the vendor running it.
For many capabilities, such as file conversion, data validation, or OCR, an API is the lower-risk option, because a compromised package in the vendor's stack doesn't execute in your build or on your servers. The catch is that you now depend on the vendor's security, and that's only acceptable if you can see what the vendor does and confirm it still meets your requirements.
08Where ApyHub fits
ApyHub is a curated API catalog built around that trust problem. Instead of evaluating dozens of separate vendors, teams use one catalog of over 1,500 endpoints or capabilities, and growing, where APIs are verified before they're listed.
Each service in the catalog carries machine-readable certification that describes its data residency, retention, sub-processors, and alignment with standards such as GDPR, SOC 2, and ISO 27001, along with how current that information is. That turns the vendor questions above into details you can check before you integrate, rather than questionnaires you chase afterward.
A few other properties reduce third-party exposure:
- One vendor relationship and one key replace a separate account, contract, and credential for every API.
- Calls run through a single gateway, so none of the providers' code runs in your application or build pipeline.
- Teams can choose which APIs their AI agents can see, which gives agents an approved list instead of the open internet.
- Every endpoint is available through ApyHub MCP, so agents discover and call only catalog services, each with its certification details attached.
New to agent tooling? Start with what is MCP and how AI agents use APIs.
09A quick checklist
- Lockfiles committed, and CI installs from them
- Package signatures and provenance checked in CI
- An SBOM generated for every release
- An inventory of every vendor, the data it receives, and the credentials it holds
- Vendor certifications checked for scope and expiry, and re-reviewed on a schedule
- Phishing-resistant MFA on all developer and registry accounts
- Scoped, rotated credentials for tools, pipelines, and agents
- AI agents limited to an approved list of packages and services, with human review for new ones
10Conclusion
Third-party involvement now appears in nearly half of all breaches, and supply chain attacks are the reason it keeps climbing. Dependencies, vendors, and build pipelines all extend your attack surface into places you don't control, and AI agents that install and connect things on their own widen it further.
The response is visibility and restraint: know what you depend on, pin and verify it, share as little as possible, keep credentials tight, and give both people and agents a trusted, checkable set of components to build from.
11FAQ
What is a data breach? A data breach is any incident where data is accessed, stolen, or exposed without authorization. It can result from an attack, a misconfiguration, or human error.
What is a third-party data breach? It's a breach where the point of failure is an external organization, such as a vendor, supplier, or service provider, that holds or can access your data.
What is a supply chain attack? A supply chain attack compromises something an organization trusts, such as a software package, build tool, or vendor system, and uses it to reach that organization and its customers.
How common are third-party breaches? Verizon's 2026 Data Breach Investigations Report found third-party involvement in 48% of breaches, up 60% from the year before.
What was the Shai-Hulud attack? Shai-Hulud was a self-replicating worm that compromised over 500 npm packages in September 2025, according to CISA. It stole developer credentials and used them to publish malicious versions of more packages.
How can developers protect against supply chain attacks? Install from lockfiles, verify package signatures, keep an SBOM, delay adopting brand-new releases, use phishing-resistant MFA, and scope and rotate credentials.
Are APIs safer than libraries? They move the risk rather than remove it. An API keeps third-party code out of your application and build, but you then rely on the vendor's security, so you need clear, current information about how it handles data.
How do AI agents increase supply chain risk? Agents can install packages and call services without the judgment a human applies, such as spotting a lookalike package name. Limit them to an approved list and require review before they add new dependencies.
What should I check before using a third-party API? Check where it hosts and processes data, how long it keeps data, which sub-processors it uses, which certifications it holds and whether they're current, and what credentials it needs.
12About ApyHub
ApyHub is a curated API catalog and trusted operational layer for developers and AI agents, with over 1,500 endpoints or capabilities and growing. Teams use the whole catalog through a single subscription priced in atoms, a unit that reflects the actual work each call performs. Every endpoint ships with machine-readable certification aligned with GDPR, SOC 2, and ISO 27001, and is MCP-ready by default, so AI agents can discover and call it through ApyHub MCP without custom wrappers. ApyHub is headquartered in Amsterdam, with offices in the Netherlands, Greece, and India, and serves 65,000+ developer workspaces every month. The free Starter plan includes 5 API calls per day and 3,000 atoms per month, with no card required. Building an API of your own? Become a provider →
