Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
dependency-confusion-typosquatpackage-repository-poisoningbuild-pipeline-compromiseproof-of-concept-release

Software Supply-Chain Attacks Abusing GitHub and npm Dependency Mechanisms

Updated 3mo agoFirst seen Jan 27, 20262 sources

Security researchers reported two distinct software supply-chain abuse paths that can make malicious code appear to originate from trusted sources. GMO Cybersecurity by Ierae described an active campaign dubbed “repo squatting” that abuses how GitHub renders and links commits from forks: a commit made in an attacker-controlled fork can be viewed under the upstream project’s URL structure, enabling convincing links like github.com/<official-org>/<repo>/commit/<hash> that appear to belong to the official repository. The campaign targeted the GitHub Desktop project by distributing a trojanized installer carrying HijackLoader, with the malicious download link presented in a way that could mislead users and some security tooling into believing it came from the official repo.

Separately, Koi researchers disclosed PackageGate weaknesses in JavaScript dependency tooling that allow bypassing npm’s post–Shai-Hulud mitigations when installing Git-based dependencies. They reported that a malicious .npmrc in a Git dependency can override the git binary path, enabling code execution even when lifecycle scripts are disabled (e.g., --ignore-scripts=true), affecting multiple tools (including pnpm, vlt, Bun, and npm). Vendors reportedly addressed the issue in the non-npm tools, while npm closed the report as “works as expected,” and researchers cited evidence of prior proof-of-concept abuse (e.g., reverse shell) indicating practical exploitation risk for organizations relying on Git dependencies in CI/CD and developer environments.

Share:
Software Supply-Chain Attacks Abusing GitHub and npm Dependency Mechanisms
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

6 events from the most recent confirmed update back to the earliest known activity.

6 EVENTS
Jan 26, 20265mo ago

GitHub says it is working on npm PackageGate protections

GitHub told BleepingComputer it is working to address the npm-related issue and is actively scanning the npm registry for malware. It also recommended trusted publishing, granular access tokens, and enforced two-factor authentication to strengthen supply-chain security.

pnpm, vlt, and Bun ship fixes for PackageGate issues

Following Koi's disclosure, Bun, vlt, and pnpm addressed the reported PackageGate problems, with pnpm assigning two CVEs to its fixes. npm did not issue a fix at that time and reportedly closed the report as works as expected.

Koi reports PackageGate flaws to JavaScript tool vendors

Researchers at Koi disclosed a set of weaknesses dubbed PackageGate affecting JavaScript dependency tools including pnpm, vlt, Bun, and npm. The flaws allowed Git-based dependencies and malicious configuration such as .npmrc to bypass protections like --ignore-scripts=true and achieve code execution.

Dec 29, 20256mo ago

GitHub repo-squatting issue remains reproducible

Researchers said the repository URL spoofing behavior was still reproducible months after disclosure, indicating the underlying issue had not been fully addressed. They specifically confirmed this status as of late December 2025.

Sep 15, 20259mo ago

Repo-squatting campaign targets GitHub Desktop users

During September and October 2025, threat actors abused the commit URL rendering quirk to distribute a trojanized installer masquerading as part of the official GitHub Desktop repository. The payload delivered was identified as HijackLoader.

Sep 9, 202510mo ago

GitHub is notified of repo-squatting commit URL abuse

GMO Cybersecurity by Ierae, Inc. reported to GitHub that attackers could abuse fork and commit URL rendering to make malicious commits appear to belong to an upstream official repository. GitHub acknowledged awareness of the issue on this date.

LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

17 LINKEDOpen in app
Affected products
5 linked
GithubGithubFirefoxNpmPnpm
Organizations
6 linked
GitHubGMO Cybersecurity by Ierae, Inc.BleepingComputerKoi SecurityHackerOneTarget
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Software Supply-Chain Attacks Abusing GitHub and npm Dependency Mechanisms | Mallory