You detect a supply chain attack by checking what changed at a trusted handoff: compare hashes and signatures of new software against the vendor record, watch trusted programs for new outbound connections and unexpected child processes, monitor dependency and maintainer changes, and hunt with indicators from vendor and CISA advisories. No single alert proves an attack, so you must correlate install, endpoint, network and identity signals.
Key takeaways
- A supply chain attack arrives through trusted software, so signatures alone cannot clear it — SolarWinds updates were signed.
- The strongest signals are behavior changes in trusted programs: new network destinations, odd child processes and odd-hour vendor activity.
- An SBOM and a pinned lockfile let you answer in minutes whether a disclosed bad version is anywhere in your estate.
A supply chain attack is the hardest kind to spot because nothing looks broken. You install a signed update from a vendor you trust, and the malware arrives with it. Detection therefore starts from a different question: not "is this file malicious?" but "did anything change at the handoff, and is this trusted program now behaving oddly?"
What is a supply chain attack?
A supply chain attack compromises a product, service or supplier before it reaches you, so malicious code arrives through a normal install, update or vendor connection. MITRE ATT&CK lists it as T1195 Supply Chain Compromise, covering software dependencies, software distribution and hardware.
The attack can happen at several points. An attacker may tamper with a build system, poison a package in a registry, compromise a maintainer account, or exploit a widely used vendor product. The result is the same: many victims are hit at once through one trusted channel.
That is why the usual defenses fail. A signed update, a familiar vendor name and a clean antivirus scan all look normal — because the compromise happened upstream, before signing. You can read how a similar trust problem plays out in email in our guide to what spear phishing is.
Why are supply chain attacks so hard to detect?
Supply chain attacks are hard to detect because the attacker rides a channel you already trust, delivers a payload that may stay dormant, and often targets only a small subset of victims. A campaign can look like routine patch drift or a harmless test artifact.
Attackers also shape delivery by geography, account or environment, so telemetry in one place rarely looks decisive on its own. You need endpoint data, proxy logs, install records and provenance signals together before the pattern appears.
Finally, the malicious code may only activate under specific conditions, such as a certain environment variable or account context. Until it activates, there may be nothing to see except the changed package itself.
What are the warning signs of a supply chain attack?
The warning signs fall into four groups: changes to the software itself, strange behavior from trusted programs, odd vendor or maintainer activity, and signals from advisories. Any one sign is a lead to validate, not a verdict.
- A hash or signature mismatch. The downloaded file does not match the hash or signature the vendor published.
- An unexpected version or release. A version appears that the vendor never announced, or a familiar package jumps versions without a changelog.
- A new maintainer or publisher. A package suddenly has a new owner, a new signing key or a new repository link.
- A trusted program makes new outbound connections. An updater or monitoring agent contacts a domain it never contacted before.
- Unexpected child processes. A signed installer spawns a shell, a scripting interpreter or a remote-access tool.
- Files written to odd paths. An installer drops binaries outside its normal directories or replaces signed files.
- Vendor accounts active at odd hours. A supplier account logs in at 3 a.m. or from an unusual location.
- New scheduled tasks or services. A fresh persistence mechanism appears shortly after an update.
- Unusual data leaving the network. A trusted application starts sending large volumes of data out.
- Dependency changes nobody approved. A lockfile changes without a reviewed commit, or a new transitive dependency appears.
- Build or CI changes. New runners, altered workflow files or unsigned artifacts appear in the pipeline.
- A vendor advisory or registry notice. The vendor, CISA or a registry warns about a compromised version you run.
If you see two or more of these together — for example a new version plus a new outbound connection — treat it as a probable incident and start hunting, not as a coincidence.
How do you check a new install or update?
Check the source and integrity of a new install before you trust it: compare the publisher, the update source, the hash and the signature against approved records. MITRE detection guidance flags software delivered from an unusual source or with a signature or hash mismatch as a high-signal indicator.
Next, join installer writes to the package event. Link file creation and code-integrity records to the install time, and look for binaries written to unexpected paths or signed files replaced. Then inspect the first run: an abnormal module load or unexpected child process after installation strengthens the signal, especially with new outbound network flows from the same host.
For software packages, check the registry page itself: download counts, repository link and publish history. A package first published last week with a name one letter off a famous one is a red flag. Install only from a committed lockfile, so nothing changes in your dependency tree without a reviewed commit.
How do you hunt for a supply chain compromise?
Hunt by starting from what you know — a suspect version, a vendor advisory or an odd behavior — and then searching every place that version could have touched. Preserve lockfiles, package-manager logs, build records and endpoint evidence before you start cleaning up.
- Scope the exposure. Use your SBOM and lockfiles to find every system, container and developer machine running the suspect version.
- Pull the advisory indicators. Vendor and CISA advisories list hashes, domains, file paths and behaviors to search for.
- Search logs for those indicators. Check endpoint, proxy, DNS and identity logs for the same time window.
- Check install and execution history. Was the package merely fetched, installed, imported or actually executed? Scope credentials accordingly.
- Look for persistence and lateral movement. New services, scheduled tasks, new accounts and unusual logins after the install date.
- Review vendor and service accounts. Look for sessions at odd hours, new API keys and privilege changes.
- Preserve evidence. Take disk and memory images from a sample of affected devices before rebuilding them.
Work outward from the install, not inward from a single alert. A supply chain compromise often leaves its clearest traces in build logs and package history, not on the endpoint where the payload ran.
What do real supply chain attacks look like?
Three documented cases show the range: a trojanised build, a trojanised desktop app, and a trojanised legitimate product. Each one teaches a different detection lesson.
| Incident | Year | What happened | Detection lesson |
|---|---|---|---|
| SolarWinds Orion | 2020 | Malicious code was added to certain versions of the SolarWinds Orion platform and used for initial access | Signatures cannot clear a compromised build; watch trusted software behavior |
| 3CX desktop app | 2023 | Trojanised installers of a business phone app were distributed through the normal channel | Signed installers can still be malicious; check first-run behavior |
| CCleaner | 2017 | Malicious code was added to a legitimate, signed version of CCleaner and distributed from its distribution site | Signed, legitimate software can carry a backdoor; verify distributed binaries |
The SolarWinds case is the most instructive. CISA's SolarWinds remediation guidance describes how attackers added a malicious version of the file solarwinds.orion.core.businesslayer.dll to Orion, and notes that the DLL was signed by the legitimate SolarWinds code signing certificate.
Customers who checked signatures, as they should, still installed the backdoor because it was inserted before signing. CISA issued Emergency Directive 21-01 on December 13, 2020, ordering federal civilian agencies to disconnect affected devices.
The CCleaner case, listed in MITRE ATT&CK as a procedure example for T1195.002, shows the same pattern at consumer scale: malicious code added to a legitimate, signed version of a popular product and distributed from its normal distribution site. Small anomalies in trusted software deserve attention.
How does an SBOM help you detect an attack?
An SBOM helps because it turns a vague question — "are we affected?" — into a lookup. When a bad version is disclosed, you search the SBOM for that component and version, and you immediately know which products and systems contain it.
Without an SBOM you are guessing, emailing vendors and waiting. With one, you can scope in minutes, prioritize the systems that actually run the component, and start hunting with the advisory's indicators on the right machines.
Keep an SBOM for every product you ship or deploy, update it on every release, and store it where your incident team can search it during an incident — not only in a developer's laptop. The same inventory discipline helps with the wider checklist in our small business cybersecurity checklist.
What monitoring catches supply chain attacks?
The monitoring that catches supply chain attacks combines endpoint, network, identity and build telemetry, because no single source is enough. Network inspection alone misses payloads that activate only in certain environments.
- Endpoint telemetry: unusual process trees, script execution and credential use on developer machines and build runners.
- Repository and version-control logs: unexpected workflow files, branch-protection changes, token creation and privilege escalation.
- Build system telemetry: new runners, altered dependencies, unsigned artifacts and abnormal package publication.
- Identity logs: service tokens and automation accounts used outside their expected job scope.
- Proxy and DNS logs: unusual retrieval timing, new destinations and destination clustering after installs.
- Package and artifact provenance: hashes, signatures and build metadata for every install.
Tune detection by platform and approved source. Keep lists of trusted publishers, approved repositories and known update hosts, and set a short install-to-first-run window so routine updates do not drown the signal. For externally facing services, our free SSL checker helps you verify what a vendor domain actually presents.
You can also check a vendor domain with our DNS lookup tool.
What should you do when you detect one?
When you detect a supply chain compromise, isolate first, preserve evidence second, and clean up third. Do not start wiping systems before you know the scope, or you will destroy the logs that tell you what else was touched.
Follow the vendor advisory exactly. For SolarWinds, the response included disconnecting affected Orion versions and hunting for the backdoor's indicators across the estate, following CISA Emergency Directive 21-01 and its supplemental guidance.
Rotate every credential and token that affected systems could reach, including service accounts and build secrets. Then rebuild affected systems from known-clean media and verify the new install with the same four checks from the earlier section.
How do you prevent the next one?
Prevention is mostly inventory, pinning and least privilege. You cannot stop a vendor from being compromised, but you can limit how far a compromised vendor can reach into your network.
- Know your suppliers. Inventory critical vendors, packages and service providers, and record what data and access each one can reach.
- Pin versions and use lockfiles. Lock dependencies to specific versions and install only from a committed lockfile.
- Use approved repositories. Route package installs through an internal mirror or approved registry where you can review changes.
- Limit vendor access. Give suppliers the minimum access they need, with separate accounts and short-lived credentials.
- Verify provenance. Require signed artifacts and, where available, build provenance records before you deploy.
- Patch fast, but verify first. Treat vendor security updates as urgent, and still check the hash and source.
- Monitor advisories. Subscribe to vendor security lists and CISA alerts for the products you run.
NIST SP 800-161 Rev. 1, the core framework for cyber supply chain risk management, frames this as an organization-wide program: identify critical suppliers, add security terms to contracts, assess suppliers and plan for acquired products and services. Our attack surface management product follows the same idea — know what is exposed before an attacker does.
The bottom line
Detecting a supply chain attack means watching trusted software as closely as you watch untrusted software. Check hashes and signatures, watch the first run, monitor dependency and maintainer changes, and hunt with advisory indicators when a vendor warns you.
Build the habit now, while nothing is burning: keep an SBOM, pin your lockfiles, and write down which vendors can reach what. Then, when the next SolarWinds-style compromise lands, you can answer "are we affected?" in minutes with the free security headers checker and your own inventory — instead of finding out from the news.
Frequently asked questions
What is a supply chain attack?
A supply chain attack compromises software, a service or a supplier before it reaches you, so malicious code arrives through a normal install or update. The attacker may tamper with a build system, a package, an update channel or a vendor account, and the victim installs the result willingly because it looks trusted.
What is the first sign of a supply chain attack?
The first sign is usually a change at a trusted handoff: a new version, a changed hash or signature, a new maintainer, or a trusted program suddenly behaving differently. Any one of these deserves a check, even if antivirus reports nothing.
Can antivirus detect a supply chain attack?
Sometimes, but not reliably. A trojanised update is often signed and contains no known malware signature, so antivirus may pass it. Behaviour monitoring, hash checks and advisory hunting catch far more supply chain compromises than signature scanning alone.
How long can a supply chain attack stay hidden?
Months. The SolarWinds backdoor was distributed in updates from March to June 2020 and was not widely disclosed until December 2020. Attackers design these compromises to look like routine updates, so detection depends on monitoring rather than luck.
What is an SBOM and how does it help detection?
A software bill of materials is a list of every component in a product, including versions. When a bad version is disclosed, an SBOM tells you in minutes whether you run it, where it runs, and which systems to hunt on, instead of guessing.
Should a small business worry about supply chain attacks?
Yes. Small businesses rarely get targeted directly, but they install the same vendor software, libraries and managed tools as everyone else. Keeping an inventory, patching fast and watching vendor advisories gives a small team most of the protection a large team has.
What should I do if I find a compromised package?
Isolate affected systems, preserve logs and the package itself, check the vendor advisory for indicators and remediation, rotate credentials that the affected systems could reach, and report the incident to your security team or provider. Do not wipe systems before you have preserved evidence.
Sources
- CISA — Remediating Networks Affected by the SolarWinds and Active Directory/M365 Compromise
- MITRE ATT&CK — Supply Chain Compromise, Technique T1195
- NIST — SP 800-161 Rev. 1 Update 1, Cybersecurity Supply Chain Risk Management Practices for Systems and Organizations
- CISA — Emergency Directive 21-01 Older Supplemental Guidance
- CISA — Detecting Post-Compromise Threat Activity Using the CHIRP IOC Detection Tool (AA21-077A)
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 MITRE ATT&CK T1195 and CISA guidance on the SolarWinds Orion compromise.
How we write and fact-check →