Malicious code in dransay (npm)
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
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.