Skip to main content

Malicious code in lab-helper (npm)

0
Critical
Published: 06/15/2026 (06/15/2026, 21:03:46 UTC)
Source: GCVE Database
Product: lab-helper

Description

The npm package 'lab-helper' versions 0.0.2 and 0.0.3 contains malicious code that executes during installation. The postinstall script runs a JavaScript file that checks if the host's IPv4 address starts with 18.175., targeting a specific subnet. If the condition is met, it reads a file named 'myfile.txt' from the installer's working directory and exfiltrates its contents to a hardcoded command and control server at http://18.175.63.47:8080/collect. This behavior indicates a targeted supply-chain attack likely aimed at specific AWS or lab environments. Any system with this package installed should be considered fully compromised, and all secrets and keys must be rotated immediately. Removal of the package does not guarantee full remediation due to potential persistence of malicious software.

Affected software

npmghsa
lab-helper
Affected versions
=0.0.3=0.0.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 16:50:39 UTC

Technical Analysis

The 'lab-helper' npm package versions 0.0.2 and 0.0.3 include a postinstall lifecycle script that runs 'sec_check.js'. This script enumerates network interfaces and proceeds only if an IPv4 address matches the 18.175. subnet, effectively gating execution to targeted environments. Upon passing this gate, the script reads 'myfile.txt' from the installer's current working directory and sends its contents via an HTTP POST request to a hardcoded IP address (18.175.63.47) on port 8080. This exfiltration mechanism, combined with the targeted network check and automatic execution during package installation, characterizes a supply-chain attack designed to stealthily compromise specific hosts, likely within AWS or lab subnets.

Potential Impact

Systems that install the affected versions of the 'lab-helper' package and meet the network targeting criteria are at high risk of data exfiltration. The malicious script can leak sensitive files from the installer's environment to an external attacker-controlled server. The compromise is severe enough that the entire system should be considered fully compromised, necessitating immediate rotation of all secrets and keys. Removal of the package alone may not eliminate all malicious components, indicating potential persistence mechanisms.

Defensive Guidance

No official patch or fix is currently documented. Immediate removal of the 'lab-helper' package versions 0.0.2 and 0.0.3 is recommended. Due to the high likelihood of full system compromise, all secrets and credentials stored on the affected system should be rotated from a separate, trusted environment. Investigate the system for additional malicious artifacts or persistence mechanisms. Monitor for any network traffic to the IP address 18.175.63.47 and block it if possible. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-5835
Osv Schema Version
1.7.4
Aliases
["GHSA-gqf6-7j7q-9x94"]
Ecosystems
["npm"]

Threat ID: 6a7f43f1bf8831d5395d7708

Added to database: 08/14/2026, 16:36:01 UTC

Last enriched: 08/14/2026, 16:50:39 UTC

Last updated: 09/18/2026, 06:46:50 UTC

Views: 24

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses