Software Supply-Chain Attacks Abusing GitHub and npm Dependency Mechanisms
Supply Chain Risk · 2 sources · Updated 5mo ago · First seen Jan 27, 2026

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=trueas 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


