#53 - Open Software Supply Chain Attack Reference Framework with Neatsun
Thousands of findings need context before a team can decide what to fix.
17 min read
We had the opportunity to talk with Neatsun Ziv, one of the founders of Ox Security, about the Open Source Software Supply Chain Attack Reference Framework (https://pbom.dev). We delved deeper into possible attack vectors and explored ways to mitigate some of them. During our discussions, we also had a couple of unusual takes on supply chain security. If you are looking to understand the Open Source Software Supply Chain, then this episode is perfect for you.
The chain runs from a Git setting to a container in production
Open the last thing you shipped and count what you didn’t write. The base image, and everything its authors put inside it. The npm or pip packages, and the packages those pull in behind them. The third-party Actions in the workflow. The Terraform providers that execute on your build host with your cloud credentials. All of it, from how your Git organisation is configured to the container answering requests in production, is your software supply chain. At every stage somebody else’s code gets a say in what yours does.
Nobody holds that whole picture in their head. A car is assembled from thousands of components built in hundreds of factories, and you press the brakes without knowing what happens when you do. Attacking the build became such a good deal for the same reason: the surface is enormous. Application security is also rarely the oldest competency on a security team. Most of those teams grew out of networking or governance long before it became a job. Get into one build system and you often reach the customers of the company you got into.
The two vantage points on this rarely meet. Neatsun Ziv builds the tooling. He is co-founder and CEO of OX Security, a software supply chain security company, and spent ten years before that as VP of cyber security at Check Point. Ayse Vlok lives with what that tooling emits. She is a senior platform security engineer at Just Eat Takeaway.com, with around six years in security, working on platform and CI/CD security across a large multi-brand engineering organisation.
A map of attacker behaviour beats another list of findings
The first problem isn’t a missing control. It’s that the surface has no shared vocabulary, so every conversation about it starts from scratch.
What does the OSC&R framework give you that a scanner doesn’t?
A structured map of how these attacks actually run, so a finding can be placed somewhere instead of just counted. OSC&R, the Open Software Supply Chain Attack Reference, is organised the way MITRE ATT&CK is. Tactics and techniques run left to right, from reconnaissance through initial access and lateral movement to impact. The sub-techniques sit under each one. Its own site calls it “the first and only matrix that focuses specifically on the software supply chain attacks”, covering third-party libraries, build and deployment systems, and compromised updates.
That number is his, from the work behind the framework. The published site doesn’t carry it, so treat it as the sample the matrix was built on rather than a figure you can check. What you can check is the rest. OX Security spearheaded it with a group that includes engineers from GitLab, a CISO at Kaltura and a head of product security at FICO. In March 2023 the matrix moved to GitHub, so anyone can contribute to it.
Know what it is for. A matrix tells you which stage a weakness belongs to and what an attacker does next. It says nothing about which of your findings matters most this week. The matrix also sits beside SLSA rather than replacing it, since SLSA grades artifact integrity while this describes adversary behaviour.
Nobody is paying the maintainer you’re demanding security from
Map the stages and most of them start upstream of you, which makes it worth asking what the upstream is actually getting from us.
Why does so much open source ship without a security process?
Because the people we expect it from are volunteers, and the registry in between can’t vouch for the code it hands you. Count OpenSSL’s maintainers against the number of companies that depend on it. Large organisations demand security practices from people maintaining libraries in their spare time, and almost none of them pay for it. A distribution’s official archive works differently: a named maintainer packages and patches that software, and apt verifies the archive’s signature before it unpacks anything. That is a claim about the archive, not about the code. Debian’s apt-secure page puts the limit plainly, saying that trusting an archive “does not mean that you trust its packages not to contain malicious code, but means that you trust the archive maintainer”. It reviews no signatures at the package level, and a third-party repository you add gets verified on exactly the same terms.
A public registry is looser again: the publisher is the author, and nobody sits between them and you. npm does run checks. GitHub described building infrastructure “to automate monitoring and analysis of newly published versions of packages in order to identify malware and other malicious code in real time” in November 2021. Automated detection is not the same as a maintainer vouching for what is inside, and deliberately poisoned packages keep getting published.
The economics on the finder’s side are stranger still. Someone who finds a flaw has three routes. One is a bug bounty programme: money and public credit. Another is a CVE and the recognition that comes with it, which is why most of the researchers we know report things. The third is a broker. Zerodium’s own page advertised payouts from $2,500 to $2,500,000 per submission for a working zero-day, with the top prices on mobile full chains. Reporting quietly to a maintainer competes with that market, and that is before you get to the governments and the dark web arenas buying the same work.
Some of the answer is shared tooling rather than money. MegaLinter bundles a large set of open source linters and scanners into one Docker image and one execution. A small team gets a baseline across its code and pipeline without wiring up twenty tools. It is maintained in the open, originally by Nicolas Vuillamy, and large companies contribute. The rest of the answer is uncomfortable. We take from this ecosystem constantly, and the number of us who fund it is small.
Assume they got in. It’s still just code execution
Here is where we part company with most supply chain pitches.
What is actually different when a malicious package runs inside your service?
Very little. A poisoned library compiled into your microservice gives an attacker code execution inside your process. A memory bug in the HTTP API you wrote, a stack overflow in the wrong place, can hand over the same thing. Not every web flaw gets that far. SQL injection runs attacker-controlled queries in the database, and how much further it travels depends on what that database account is allowed to do. Where an attack does land code in your process, the outcome matches the poisoned package exactly. So the controls that matter are the ones deciding what that code can reach, not the ones trying to pick the right front door to guard.
Take a Terraform module somebody contributed that includes a resource which opens a remote shell when you run terraform plan. That is not hypothetical. Atlantis documents it in its own security guide: a pull request containing a malicious provider or an external data source gets executed by the automatic plan. Atlantis names two mitigations before any of the credential advice. Require a thumbs-up on the pull request before the plan runs. Leave --allow-fork-prs at its default of false, so a stranger’s fork can’t trigger a plan. Then the useful question is what the credentials on that plan job can do. Plan usually needs read access. Give it admin and you’ve built the catastrophe yourself.
Scoping has a ceiling. A build runs with the permissions it legitimately needs, and writing the artifact is one of them. SLSA’s threat model puts SolarWinds in that box: an attacker on the build platform “installed an implant that injected malicious behavior during each build”, using nothing the build wasn’t already allowed to do. The v1.0 threat overview answers that with stronger controls on the build platform itself, and with provenance recording how an artifact was produced, so a consumer can see when one “was not built in the expected manner”.
So spend the effort on layers, blast radius and detection, and on knowing which systems are worth defending hardest. You will not stop every way in. You can decide what each way in is worth.
A finding without context is a ticket nobody can action
Prioritising assumes you can tell which findings matter, and that turns out to be the expensive part.
Why do developers push back on the vulnerability tickets we send them?
Because most tickets arrive without the one thing that makes them actionable: what this specific issue can do in this specific environment. Assembling that takes three kinds of knowledge at once. The application, which the developers have. The platform and the CI/CD setup, which the platform team has. The threat and the attacker’s likely goal, which security has. Put them together and you can say this is a real risk, fix it. Skip it and you’ve handed over a list.
Here the two disagree, and the disagreement is the useful part. Ayse Vlok’s answer is to grow security people who understand how their developers work and what the environment looks like, then hand back findings with the context attached. Neatsun Ziv’s objection is about scale rather than principle. People who can do that triage are hard to find and harder to keep. One AppSec engineer per 200 developers does not stretch, and when that engineer leaves, a replacement takes months. The overflow lands on developers in the meantime, who reply that the thing isn’t internet-connected and isn’t exploitable. Lose that argument publicly a few times and you don’t get the room back.
His answer is to take the judgement off people. Triage that depends on finding and keeping the right engineer isn’t a system, and until it runs on something more reliable than humans he doesn’t think a security programme scales. Ayse Vlok puts the investment at the opposite end, in security professionals who learn the codebase, the platform and how their developers work well enough to supply that context themselves. Which one you bet on depends on how many of those people you can hire and keep.
Shared accountability is the least bad answer anyone offered: developers are measured on delivering business value, and AppSec teams are too small to take security off them. Which way it tips depends on your architecture and your culture. Where developers already treat security as part of the job, push it left. Where integrations are complex and no single team can see where the data goes, the security team carries more.
Compliance is a different job from security
Plenty of teams reach for a compliance platform at this point, and it is worth being precise about what that buys.
Does a continuous compliance tool make us secure?
It makes your evidence collection continuous, which is worth something on its own. Tools of the Drata and Secureframe type scan your AWS accounts and containers, pull in Dependabot output, hold your policies, and put the whole security programme in one place. That does genuinely help you prioritise. What they don’t produce is the report. That comes from an examination by an independent CPA firm. The AICPA’s SOC 2 guide splits the result in two. A type 1 report covers the system and the design of controls as of a point in time. Type 2 covers a period of time, and whether those controls operated effectively throughout it. Neither reports that you cannot be breached.
That last line is the one that gets lost. A breach at a company holding a current type 2 report is not the contradiction it looks like. The report says an examiner found controls operating over a window that has already closed, and the organisations large enough to be examined are the same ones large enough to reach the newspapers.
The part of compliance that does carry over is scoping. PCI DSS is prescriptive, and what it forces is useful. Find where the valuable data lives, lock that down, and treat everything touching it to the same standard. Care proportionally less about what doesn’t. Segregate, then segregate again. That is the same prioritisation every security programme needs, with an auditor making you actually do it.
Block the release, not the developer
Context tells you which issue matters. Something still has to change what ships.
What actually keeps a known vulnerable build out of production?
A gate that refuses the deploy, placed where the decision already happens. If a service is internet-facing and carries a known exploitable issue, that build doesn’t go to production. Going to staging is fine, so work continues and the team isn’t blocked while the fix lands. One large organisation kept publishing releases for six months after a known Apache Struts problem was public, which is precisely the stretch of time a gate exists to delete.
Routing matters as much as blocking. The triage behind a good gate answers a short list. Who has this in their code, where is it running, is it reachable from the internet, does it touch personal data, and who checked the code in? Then the ticket goes to that developer, worded for them, rather than to a queue.
One tactic here will divide a room. Where a developer rejects security tickets repeatedly, OX Security has tried reading that developer’s history with a language model. The ticket then carries a snippet that demonstrates the exploit against their own code. That is their experiment, not our recommendation. It does name the real dynamic, which is that driving a fix is a social problem inside an engineering organisation, and tooling that ignores that produces tickets nobody closes.
What we check before installing something
Which leaves the decision each of us makes most weeks.
How do you judge an open source package before you add it?
Read what it does, and look for evidence that somebody is keeping it current. Reading the source of a small library tends to show it is less code than you assumed. Probably 80% of what it does isn’t for your case, which argues for writing the part you need and importing nothing. That is one of us on edge cases, not the average developer’s workflow, and it doesn’t scale to a framework. It is still the only judgement that doesn’t lean on somebody else’s.
GitHub stars tell you nothing you can act on. What moves our trust is upkeep, starting with the last commit date. Four years since the last one, on a project with a large dependency tree, lowers our confidence that anyone is minding those dependencies. Treat that as a prompt to check which versions it pins and whether any moved, not as a verdict. Dependabot or the equivalent wired up is the opposite signal: somebody put the upkeep on autopilot deliberately. Mistakes happen to everyone and are normal. The absence of any policy is what to be wary of.
Then the arithmetic. One package brings ten, those bring more, and a project ends up carrying the same sub-dependency at several versions with nobody able to say how. OX Security sees dependency trees rolling up to tens of thousands of open source packages per organisation, across the thousand or so companies and developers on its platform. A 2019 study of npm found the average package implicitly trusts 79 third-party packages and 39 maintainers.
Count your own. package.json lists what you asked for, not what arrives. npm ls --all prints the whole tree, which npm documents as a logical dependency tree rather than the physical layout of node_modules. One package can appear at many nodes and versions. Count distinct name-and-version pairs across the graph, not the leaves. In CI, npm ci refuses to run without a lock file and installs the resolutions that lock file records instead of re-resolving them, which holds the versions steady between builds. It doesn’t hold the count steady on its own. omit decides which dependency types land on disk, and npm defaults to omitting dev when NODE_ENV is production. Compare counts only across runs configured the same way. A clean npm audit is rare enough that our honest count is zero.
What this means for teams
The uncomfortable summary is that no one is fully secure here and nobody can read everything they install. That is survivable. What is not survivable is a build system with admin credentials, a finding pile nobody can rank, and no agreement about who fixes what. Those three are inside your control this week, and none of them needs a purchase.
Four things to do now:
- Write down what credentials each build and
terraform planjob carries, then take admin off the ones that only need to read. Require an approval before a plan runs on a pull request from outside the team, and treat that pull request as code that will execute. - Pin third-party GitHub Actions to a full-length commit SHA, which GitHub’s own hardening guidance recommends, and decide who is allowed to add a new one.
- Take one pile of scanner output and add context to the top ten: reachable from the internet, touches personal data, who owns the code. Send those ten and nothing else.
- Put a gate on production deploys for internet-facing services with known exploitable issues, leave staging open, and tell everyone before you turn it on.
Common questions, answered
How do I stop a malicious pull request from running code in our Terraform pipeline?
Gate the plan on a human approval before it runs, and don’t auto-plan pull requests from forks. A contributed module can include an external data source or a malicious provider that executes during terraform plan. Atlantis documents both the exploit and the mitigations: a thumbs-up on the pull request before the plan continues, and --allow-fork-prs left at its default of false. Scoped credentials come second: they only limit what the code reaches once it has run, and Atlantis warns plan-time code can exfiltrate them anyway. Apply is a separate decision with separate credentials.
Where do we start with supply chain security when we have nothing in place?
Start with an inventory of what can deploy, then cut its permissions. You cannot evaluate thousands of packages, and you can find out which systems hold credentials that reach production, which is a shorter list and the one attackers want. Then map what you have against a framework like OSC&R to see which stages have no coverage. Buying a scanner first gives you findings before you have anywhere to put them.
How do I find out how many packages a single install really pulls in?
Walk the whole graph, and decide what you are counting first. npm ls --all prints the tree, which npm documents as the logical dependency tree rather than the physical layout of node_modules. One package can appear at several nodes and in several versions. Count distinct name-and-version pairs if what you want is the code you are trusting. npm ci installs the resolutions the committed lock file records instead of re-resolving them, which pins the versions rather than the count. Keep omit and NODE_ENV the same across the runs you compare, because npm omits dev from disk by default when NODE_ENV is production.
Related episodes
- Episode 46, Software supply chain attacks is part one of this conversation, with Jacob Lärfors: pinning, registries, signing and SBOMs, and the difference between Log4Shell and Codecov.
- Episode 44, Kosli with Mike Long covers the provenance side: proving that what runs in production came from your pipeline. That is the adjacent problem to this one, and likely to converge with it.
- Episode 28, Scaling Security goes through the Codecov incident and what it takes to make security controls scale with the number of accounts and people.
- Episode 52, Lingon covers an open source project maintained by one of us, mentioned here as needing more funding.
Resources
- pbom.dev as it stood in June 2023 settles what OSC&R claims to be, how its authors separate it from SLSA, and what a pipeline bill of materials adds to an SBOM.
- OX Security’s March 2023 announcement settles who the founding consortium is and Neatsun Ziv’s Check Point background. It is a press release, so it settles nothing about adoption.
- Atlantis security documentation settles that
terraform planon a pull request can execute attacker code through a malicious provider or anexternaldata source. The mitigations it names are approval before plan and no fork plans. - SLSA v1.0’s threat overview settles what credential scoping cannot cover: a compromised build process that injects behaviour into the artifact, and what provenance shows about how that artifact was produced.
- Debian’s
apt-securemanual page settles what archive signature checking does and does not promise: trust in the archive maintainer, without verifying individual package signatures. - Security hardening for GitHub Actions settles GitHub’s own position on third-party actions. A compromised action can steal secrets accessible to its job; pin reviewed actions to full-length commit SHAs.
- Small World with High Risks, USENIX Security 2019 settles the npm trust arithmetic across the registry, including how many maintainers a single install depends on.
Since we recorded
OX Security’s July 2024 report, OSC&R in the Wild, found at least one severe supply chain risk in 95% of the organisations studied. The GitHub Actions warning aged into an incident in March 2025, when the tj-actions/changed-files tags were repointed to code that dumped CI secrets into build logs (CVE-2025-30066). That is the exact failure SHA pinning exists to prevent. We came back to the topic in episode 97, on compromised publishing credentials and install-time hooks that run before your code reaches CI.
