Malicious code in fund-calculator (npm)
The npm package 'fund-calculator' version 999.9.12 contains malicious code that executes a preinstall script during installation. This script collects various installer environment details including hostname, user info, home directory, and public IP address by querying external services. The collected data is exfiltrated to a hardcoded callback server using multiple channels including HTTP, HTTPS, and DNS queries to evade network egress filtering. The package is likely a dependency confusion name-squatting attempt targeting private internal packages with the same name.
AI Analysis
Technical Summary
The 'fund-calculator' npm package version 999.9.12 declares a preinstall script that runs unconditionally on 'npm install'. This script gathers installer-side identifiers such as hostname, user information, current working directory, home directory, and metadata from the parent project's package.json. It also obtains the installer's public IP address by making HTTPS requests to api.ipify.org, icanhazip.com, and ifconfig.me. The collected information is exfiltrated to a hardcoded callback domain 'da51rv0hb2uc72tg4gvgdepinjcallbk1.oast.fun' using three methods: HTTP POST on port 80, HTTPS POST on port 443 with a path containing a UUID, and DNS queries with hex-encoded payload chunks as subdomains to bypass egress filters that block HTTP but allow DNS. The package version and name suggest it is a dependency confusion attack designed to override an internal private package of the same name.
Potential Impact
Sensitive environment and network information from the installer machine can be leaked to an attacker-controlled server. This includes hostname, user details, project metadata, and public IP address. Such data leakage can aid attackers in reconnaissance and further targeted attacks. The use of multiple exfiltration channels, including DNS tunneling, increases the likelihood of successful data exfiltration even in restricted network environments.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'fund-calculator' package version 999.9.12 from public npm registries, especially if it conflicts with internal private packages. Verify package authenticity and source before installation. Employ strict package name policies and use scoped packages to prevent dependency confusion attacks. Monitor for suspicious preinstall scripts in dependencies.
Malicious code in fund-calculator (npm)
Description
The npm package 'fund-calculator' version 999.9.12 contains malicious code that executes a preinstall script during installation. This script collects various installer environment details including hostname, user info, home directory, and public IP address by querying external services. The collected data is exfiltrated to a hardcoded callback server using multiple channels including HTTP, HTTPS, and DNS queries to evade network egress filtering. The package is likely a dependency confusion name-squatting attempt targeting private internal packages with the same name.
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 'fund-calculator' npm package version 999.9.12 declares a preinstall script that runs unconditionally on 'npm install'. This script gathers installer-side identifiers such as hostname, user information, current working directory, home directory, and metadata from the parent project's package.json. It also obtains the installer's public IP address by making HTTPS requests to api.ipify.org, icanhazip.com, and ifconfig.me. The collected information is exfiltrated to a hardcoded callback domain 'da51rv0hb2uc72tg4gvgdepinjcallbk1.oast.fun' using three methods: HTTP POST on port 80, HTTPS POST on port 443 with a path containing a UUID, and DNS queries with hex-encoded payload chunks as subdomains to bypass egress filters that block HTTP but allow DNS. The package version and name suggest it is a dependency confusion attack designed to override an internal private package of the same name.
Potential Impact
Sensitive environment and network information from the installer machine can be leaked to an attacker-controlled server. This includes hostname, user details, project metadata, and public IP address. Such data leakage can aid attackers in reconnaissance and further targeted attacks. The use of multiple exfiltration channels, including DNS tunneling, increases the likelihood of successful data exfiltration even in restricted network environments.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'fund-calculator' package version 999.9.12 from public npm registries, especially if it conflicts with internal private packages. Verify package authenticity and source before installation. Employ strict package name policies and use scoped packages to prevent dependency confusion attacks. Monitor for suspicious preinstall scripts in dependencies.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14391
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a8c4c74acd9273b499c0e44
Added to database: 08/24/2026, 13:51:48 UTC
Last enriched: 08/24/2026, 14:29:18 UTC
Last updated: 08/25/2026, 00:58:27 UTC
Views: 21
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.