Software Supply-Chain Attacks Abusing GitHub and npm Dependency Mechanisms
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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
6 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
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.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


