Malicious code in relativity-foundation-core (npm)
The npm package relativity-foundation-core version 6.8.2 contains malicious code that executes a preinstall script during npm install. This script collects system information such as hostname, user environment variables, current working directory, npm registry configuration, and CI environment variables, encodes this data in base64, and sends it via an HTTPS GET request to an attacker-controlled domain (a Burp Collaborator subdomain). The package's main code file is empty, indicating its sole purpose is reconnaissance and data exfiltration during installation.
AI Analysis
Technical Summary
The relativity-foundation-core npm package version 6.8.2 includes a malicious preinstall script that gathers environment and system metadata (os.hostname(), USER/USERNAME environment variables, current working directory, npm_config_registry, CI environment variables, and platform) and encodes this information in base64. It then sends this encoded data via an HTTPS GET request to a Burp Collaborator subdomain controlled by an attacker, effectively exfiltrating reconnaissance data on every npm install. The package's index.js is empty, confirming that the preinstall script is the only active component. This behavior constitutes a supply chain attack through a malicious npm package.
Potential Impact
The malicious preinstall script can leak sensitive environment and system information to an attacker-controlled server during the installation process. This reconnaissance data could be used to profile the victim's environment for further targeted attacks or exploitation. There is no indication of direct code execution beyond the preinstall script or persistence mechanisms. No known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 6.8.2 of relativity-foundation-core. Verify package integrity and source before installation. Consider using package integrity verification tools and monitoring for unexpected network requests during npm installs. Check the vendor or package repository for updates or official advisories regarding this malicious package.
Malicious code in relativity-foundation-core (npm)
Description
The npm package relativity-foundation-core version 6.8.2 contains malicious code that executes a preinstall script during npm install. This script collects system information such as hostname, user environment variables, current working directory, npm registry configuration, and CI environment variables, encodes this data in base64, and sends it via an HTTPS GET request to an attacker-controlled domain (a Burp Collaborator subdomain). The package's main code file is empty, indicating its sole purpose is reconnaissance and data exfiltration during installation.
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 relativity-foundation-core npm package version 6.8.2 includes a malicious preinstall script that gathers environment and system metadata (os.hostname(), USER/USERNAME environment variables, current working directory, npm_config_registry, CI environment variables, and platform) and encodes this information in base64. It then sends this encoded data via an HTTPS GET request to a Burp Collaborator subdomain controlled by an attacker, effectively exfiltrating reconnaissance data on every npm install. The package's index.js is empty, confirming that the preinstall script is the only active component. This behavior constitutes a supply chain attack through a malicious npm package.
Potential Impact
The malicious preinstall script can leak sensitive environment and system information to an attacker-controlled server during the installation process. This reconnaissance data could be used to profile the victim's environment for further targeted attacks or exploitation. There is no indication of direct code execution beyond the preinstall script or persistence mechanisms. No known exploits in the wild have been reported.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 6.8.2 of relativity-foundation-core. Verify package integrity and source before installation. Consider using package integrity verification tools and monitoring for unexpected network requests during npm installs. Check the vendor or package repository for updates or official advisories regarding this malicious package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12426
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735743bf8831d539159c68
Added to database: 08/05/2026, 15:31:15 UTC
Last enriched: 08/05/2026, 17:18:33 UTC
Last updated: 08/05/2026, 17:18:33 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.