Home / Knowledge hub / Supply chain attack
Knowledge hub
Supply chain attack
Reaching you through a library, a build tool or a vendor you trust.
What it means
A supply chain attack reaches you through something you depend on rather than through your own code. A library you install, a tool in your build, an extension in your editor, or a vendor with access to your systems.
It works because you trust these things by default. You install a package and it runs on your machines and in your releases without anybody reviewing what changed.
Why it matters
You inherit the security of everything you install, so what you ship matters as much as what you write. Attackers prefer one compromised package used by thousands of companies to attacking those companies one at a time.
It reaches your customers too. If something malicious lands in your release, you become part of their supply chain. The conversation that follows is about your process rather than the attacker's. The window tends to be short, so what separates teams is how fast they can tell whether they pulled the bad version.
How it shows up
The practical questions are about your build. Do you know everything that goes into a release? Do you pin versions, so a package cannot change under you overnight? Who can publish, and do they use multi-factor? Can a build script reach the internet freely?
A maintained inventory of components, plus alerts when somebody reports one of them, is the baseline. Most of the damage in real cases came from things nobody had written down. Review who can reach your build as well. A pipeline that deploys to production is as sensitive as production, and usually has looser access. An SBOM answers the first question.
Questions people ask
Supply chain attack, answered
A package we use got compromised. What do we do now?
Work out whether you actually installed the bad version, using your lockfile and your bill of materials. Rotate every credential the build or the running code could reach, then move to a clean version.
Registries usually pull bad versions within hours, so the credential clean-up is the slow part.
Do lockfiles and pinned versions protect us?
They stop a package changing under you without a commit, which is most of the value.
They do nothing if the version you pinned was already malicious when you pinned it.
Are install scripts really a risk?
Yes. A package that runs code at install time runs it on developer laptops and build machines, before anybody reviews anything.
Turning install scripts off by default, and allowing only the ones you need, removes a whole route.
Is this the same as a vulnerable dependency?
No. A vulnerable dependency has a flaw somebody found by accident.
A supply chain attack means somebody put malicious code there on purpose, often in a version published hours ago.
Would anyone bother attacking a company our size?
They are not attacking you specifically. They compromise one popular package and take whatever installs it, which includes you.
Cyberlop tests your application, including its dependencies. It does not watch your build pipeline or your registry accounts.
Related
Terms that sit next to this one
Dependency vulnerability
A known flaw in a library your application ships.
SBOM
A list of every component your application includes, with versions.
SCA
Checking your libraries against databases of published vulnerabilities.
Known-vulnerable component
A library or runtime with a published flaw that you are still shipping.
CI/CD
The pipeline that builds, tests and ships code on every merge.
Do you know what ships in your build?
Dependency risk counts as one of the ten classes Cyberlop tests, beside the nine covering code your own team wrote. A 30 day pilot on one application costs $199. Get in touch.
Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.