Skip to main content

Malicious code in dransay (npm)

0
Medium
Published: 10/08/2026 (10/08/2026, 17:23:01 UTC)
Source: GCVE Database
Product: dransay

Description

The npm package 'dransay' version 99.0.0 contains a malicious preinstall script that performs network requests to a third-party collaborator domain during installation. This behavior leaks the installer's IP address, DNS resolver IP, hostname data, and timestamp to an external server. The package appears to be a dependency-confusion proof-of-concept but executes non-consensual outbound network communication.

Affected software

npmghsa
dransay
Affected versions
=99.0.0

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: 10/08/2026, 22:12:53 UTC

Technical Analysis

The 'dransay' npm package at version 99.0.0 declares a 'preinstall' lifecycle script that runs 'node beacon.js'. This script performs a DNS lookup and HTTPS GET request to a hardcoded Interactsh collaborator subdomain (db3klhbi6i9hark1kegg174t38h33b6wt.oast.site) on every 'npm install'. The outbound request discloses sensitive network identity information including the installer's source IP, DNS resolver IP, hostname-derived data, and timestamp to a third-party collaborator host unrelated to any legitimate publisher. The package name and unusually high version number suggest it is a dependency-confusion probe targeting internal package names. The README self-labels the package as a benign proof-of-concept, but the behavior involves non-consensual data exfiltration during installation.

Potential Impact

Installation of this package results in leakage of network identity information to an external third-party server. This can expose the installer's IP address, DNS resolver IP, hostname information, and installation timestamp, potentially compromising privacy and internal network details. There is no indication of further exploitation or code execution beyond this data exfiltration.

Mitigation Recommendations

No official patch or remediation is indicated. Users should avoid installing the 'dransay' package version 99.0.0. Since this is a malicious package designed as a proof-of-concept for dependency confusion, verifying package sources and avoiding untrusted or suspicious packages is recommended. No vendor advisory or fix is available; patch status is not yet confirmed — check vendor advisories 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-17700
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6ac80fc22cdf04f65639c3b1

Added to database: 10/08/2026, 21:48:50 UTC

Last enriched: 10/08/2026, 22:12:53 UTC

Last updated: 10/08/2026, 22:12:53 UTC

Views: 2

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