Securing the Software Supply Chain in the Age of Vibe Coding
On March 31, 2026, two malicious versions of Axios, a JavaScript HTTP library, appeared in its official npm package. They remained on the registry for about three hours. The attacker had first approached the maintainer roughly two weeks earlier.1
![]()

Dohyun Jung - Principal Consultant, ROBOCO
TL;DR
- The number of significant supply chain attacks Wiz reported to customers more than doubled in the first half of 2026 compared with the previous six months. In the Axios incident, the attacker impersonated a company founder and staged a workspace and a meeting to win over one maintainer.12
- When agents choose libraries, teams need rules that take effect before a pull request opens. This year pnpm changed how long it waits before selecting a new version, and the npm CLI changed which code can run during installation.
- A team running a software factory has three decisions to make beyond code review. Which dependencies can it install? What can a build access? Who can publish the finished package? Updates from GitHub, npm, and PyPI in 2026 give teams ways to enforce those decisions.
1. How much have attacks grown, and how targeted have they become?
Supply chain attacks rose from about 10% of the significant incidents Wiz highlighted to customers in the second half of 2025 to 25% in the first half of 2026. The number of significant supply chain attacks also more than doubled. A separate study offers another measure of scale. Rubrik Zero Labs analyzed more than 400 software supply chain security incidents reported between January 1 and July 28, 2026. Of the 311 with an identified distribution channel, 156 originated on npm. The two organizations tracked different populations, so their counts cannot be added together.23
The Axios maintainer’s account shows how precisely an attacker can tailor an approach. The person who contacted him posed as the founder of a real company. The Slack workspace he was invited to carried the company’s branding, accounts that looked like employees, and channels that resembled ordinary work conversations. During a subsequent video call, the attacker staged a technical problem. The maintainer reported that his computer and npm account were compromised and that the account published the malicious releases. Even users who checked the official package name and fetched it from their usual registry could have been affected.1
Maintainers with publishing access can draw a practical rule from this incident. When a new contact asks you to install software or change permissions during a meeting, verify the person and the request through a channel outside the invitation. Staying inside the workspace they prepared means checking several clues supplied by the same person.
Public incident reports offer little basis for estimating how often attackers use AI. Teams already have grounds to change their defenses. Supply chain attacks rose in both number and share in the incidents Wiz reported to customers, and the Axios attacker imitated the professional relationships of someone with publishing access. On the development side, AI adoption is easier to observe. The share of GitHub pull requests (PRs) that started with an agent’s draft rose from 17% in March 2026 to over 40% in September. Ask an agent to “add CSV export” and it may install a library and run the tests before opening a PR. By the time the reviewer first sees the package name, its code may already have run.4
2. Choose versions and execution permissions before installation
Among the changes announced between January and November 30, 2026, two directly affect everyday development. pnpm’s installation delay and npm CLI’s approval of install scripts govern different decisions about the same JavaScript dependency.
pnpm 11 waits before selecting a new version. Version 11.0, released April 28, set the default minimum age for newly resolved dependency versions (minimumReleaseAge) to 1,440 minutes, or one day. The malicious Axios releases disappeared after about three hours. An environment with a one-day rule at the time could have skipped both during normal version resolution. An urgent security fix is also a new release, though. A team can have someone check the advisory and grant an exception for that patch while keeping the waiting period for other versions.15
npm CLI 12 separates installation from permission to run scripts. In February, administrators could opt to restrict dependencies fetched from Git repositories. Version 12, generally available July 8, blocks Git and remote URL dependencies by default. Dependency install scripts and implicit native builds also require explicit permission. Teams can review the scripts they need and record the allowlist in package.json. If adding a library also expands permission to run install scripts, the reviewer can see that change in the PR.67
Teams with several agents and runners can centralize installation policy. On October 20, GitHub introduced its package firewall in public preview for GitHub Enterprise Cloud customers. It inspects requests to npm registries. Administrators can set a waiting period for new releases or block known malicious packages. Coverage depends on where requests go. If continuous integration (CI) runners use the firewall while development agents go straight to an external registry, two environments working on the same PR will apply different policies.8
3. Separate publishing authority from maintainer accounts and builds
After the incident, the Axios maintainer identified direct publishing from a personal account as a risk to address.1 Changes in 2026 give teams separate controls over account recovery, checks on external contributions, and publishing a release.
- Account recovery. In June, npm introduced additional protection for high-impact accounts. Changing the email address or using a two-factor recovery code puts the account in read-only mode for 72 hours. That gives its owner time to respond before someone who took it over can publish a package.9
- Builds. In June, GitHub Actions added policies that restrict which events and users can start workflows. Some workflows triggered by less trusted events also lost write access to shared caches. Teams that test external PRs and produce official releases in the same repository can start by checking which permissions and caches those jobs share.9
- Publishing. On September 3, npm added support for multiple trusted publishing configurations per package. Prerelease and stable workflows can each use short-lived OpenID Connect (OIDC) credentials, reducing the need for separate long-lived publishing tokens. By default, the workflow stages a package for approval. A person can approve it once malware scanning finishes. Direct publishing requires a separate opt-in for each configuration.10
4. Check the individual files in a Python release
A single Python package version can contain several distribution files for different operating systems or Python versions. Even teams that pin versions have reason to ask when a particular file was added and where it was built.
In July, PyPI announced that it would reject new file uploads to releases more than 14 days old. That narrows the opportunity to slip a file into an old version following a publishing account takeover. To support a new environment after the window closes, a maintainer must publish a new version. At the time, PyPI said it knew of no attacks that had exploited this route.11
On November 6, PyPI project pages gained a Security tab showing provenance attestations for individual release files. PyPI introduced attestations in 2024. This year’s change puts per-file attestations and the release’s provenance status together where someone evaluating a package can find them. An attestation helps establish where the file came from. The behavior of the code built there still needs its own review.12
Conclusion
Return to the PR where the agent added a CSV library. On GitHub, teams can use this year’s package firewall and Actions execution policies alongside established supply chain security features. Each answers a question at a different stage.
| Stage | Question for the team | What GitHub provides |
|---|---|---|
| Before the first install | Should agents and CI fetch this version? | Route npm requests from both environments through the package firewall to apply the same waiting period and blocking rules. The October announcement covered the Enterprise Cloud public preview.8 |
| Before merging a PR | Which other packages did that one library bring in? | Dependency review shows changes to transitive dependencies in the lockfile and their known vulnerabilities. Making the review action a required check can block PRs that violate the team’s vulnerability policy. Private repositories need GitHub Code Security or GitHub Advanced Security enabled to use the action.13 |
| Before starting a build | Which jobs can an external contribution trigger? | Actions workflow execution policies restrict permitted events and actors. Set job permissions separately in the workflow for external PR checks and for releases that use publishing credentials.9 |
| Before distributing a release | Did this file come from the approved repository and workflow? | Artifact attestations sign claims about build provenance. Verify the file’s attestation at deployment and check the recorded repository, commit, and workflow against the team’s release criteria.14 |
| After merging | Has a vulnerability surfaced in a version we already use? | Enable Dependabot alerts to receive an alert when a new advisory applies to a dependency on the default branch. The person handling it can identify the affected file and check for a fixed version.15 |
These decisions leave concrete records in the team’s software factory. The repository holds a reviewed allowlist of install scripts, runners have the permissions their jobs require, and the registry recognizes approved publishing workflows. Those decisions apply again when the next agent picks up a similar change. For the related question of who gets to merge a PR, see Software Factory Best Practices (2): Who Merges?.