Malicious code in techportal (npm)
Description
The npm package 'techportal' version 4.0.10 contains malicious code that executes automatically during installation via a preinstall hook. This code collects host identity information including hostname, username, and current working directory, encodes it, and sends it to a hardcoded attacker-controlled IP address via HTTP headers. If the HTTP request fails, the data is exfiltrated using DNS queries to attacker-controlled domains, bypassing typical HTTP egress controls. There is no user consent or configuration option to disable this behavior, and the package self-labels the data exfiltration as a bug bounty or dual-use tool, which does not mitigate the risk.
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 'techportal' npm package version 4.0.10 includes a preinstall script 'beacon.js' that runs automatically on 'npm install'. This script collects sensitive host information (os.hostname(), os.userInfo().username, process.cwd()), base32-encodes it, and sends it to a hardcoded IP address (http://45.76.249.245) via HTTP GET with custom headers. If the HTTP beacon fails or times out, the same data is exfiltrated through DNS tunneling by encoding it into DNS subdomain labels and querying attacker-controlled domains (*.oob.asm5.net). This behavior occurs without user opt-in or configuration, effectively leaking installer host identity to attacker infrastructure.
Potential Impact
The malicious code leaks sensitive host identity information from the machine performing the npm install, including hostname, username, and current working directory. This data is sent to attacker-controlled infrastructure via HTTP and DNS channels, potentially exposing internal environment details and enabling further targeted attacks or reconnaissance. The DNS tunneling technique can bypass network egress controls that block HTTP traffic, increasing the risk of unnoticed data exfiltration.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal of the malicious package is confirmed, avoid installing 'techportal' version 4.0.10 from untrusted sources. Consider auditing npm dependencies for unexpected preinstall scripts and monitor network traffic for suspicious connections to the indicated IP address and domains. If possible, restrict DNS and HTTP egress to prevent unauthorized data exfiltration.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15561
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7d9acd9273b49e75aa2
Added to database: 08/29/2026, 15:16:41 UTC
Last enriched: 09/09/2026, 21:23:52 UTC
Last updated: 10/04/2026, 07:56:32 UTC
Views: 91
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.