Skip to main content
Mallory
← Back to News
dependency-confusion-typosquatpackage-repository-poisoningbuild-pipeline-compromiseproof-of-concept-release

Software Supply-Chain Attacks Abusing GitHub and npm Dependency Mechanisms

Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Jan 27, 2026

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.

Why it matters

Impact assessment

These issues affect software publishers, enterprise developers, CI/CD operators, and any organization that trusts GitHub-hosted source artifacts or installs JavaScript dependencies from Git repositories. The impact is high because both abuse paths can lead to execution of attacker-controlled code under the guise of trusted software provenance, resulting in malware delivery, credential theft, developer secret exposure, and downstream supply-chain compromise.

The GitHub repo-squatting activity was observed in an active campaign targeting GitHub Desktop users in September-October 2025, indicating exploitation in the wild. PackageGate appears broader in exposure because it affects common JavaScript tooling workflows across npm, pnpm, vlt, and Bun, with practical exploitation risk demonstrated by prior proof-of-concept reverse-shell abuse.

Supporting facts

  • Affected populations:
    • Developers and end users downloading software from GitHub commit links
    • Organizations using Git-based JavaScript dependencies in developer workstations and CI/CD pipelines
    • Teams relying on npm mitigations such as --ignore-scripts=true as a primary control
  • Severity drivers:
    • Malware delivery via trojanized installer in a trusted-looking GitHub URL path
    • Full code execution from malicious Git dependency configuration
    • Potential theft of developer secrets, tokens, and CI credentials
    • Risk of lateral supply-chain propagation into internal builds and published packages
  • Scope:
    • Repo squatting is targeted but repeatable against any project using GitHub forks and commit-link sharing
    • PackageGate is ecosystem-wide across multiple JavaScript package managers and Git dependency workflows
  • Known exploitation:
    • Active repo-squatting campaign targeted the GitHub Desktop project
    • Malicious installer delivered HijackLoader
    • Koi cited prior proof-of-concept abuse of the Git dependency technique to spawn a reverse shell
    • Prior related npm ecosystem incidents referenced include Shai-Hulud, s1ngularity, and GhostAction
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

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

6 events · Sep 9, 2025 – Jan 26, 2026
  1. Jan 26, 202610mo 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.

  2. Jan 26, 202610mo ago

    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.

  3. Jan 26, 202610mo ago

    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.

  4. Dec 29, 202511mo 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.

  5. Sep 15, 20251y 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.

  6. Sep 9, 20251y 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.

Open in app →

Malware

1 linked

Affected products

3 linked
NpmGithubPnpm

Organizations

1 linked
GitHub
Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

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, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.