Malicious code in saas-f-testing (npm)
The npm package 'saas-f-testing' version 20.4.2 contains malicious code that, upon require, downloads a platform-specific executable from dynamically assembled hostnames. This executable is saved under covert filenames in temporary directories, given executable permissions, and spawned without any hash or signature verification. The code uses obfuscation techniques to evade static detection. A secondary malicious file exists but is not reachable from the main entry in this version.
AI Analysis
Technical Summary
The 'saas-f-testing' npm package version 20.4.2 includes malicious functionality where the main script (index.js) loads setup.js, which downloads an executable payload from runtime-assembled and obfuscated hostnames. The payload is saved to temporary directories with disguised filenames, permissioned to be executable (chmod 0755), and executed detached via shell commands without any integrity verification. The hostnames and child process invocation are constructed dynamically to evade static analysis. Additionally, a secondary file (lib/telemetry.js) contains similar malicious code but is not invoked in this version. This behavior indicates a supply chain compromise or deliberate inclusion of malware in the package.
Potential Impact
This malicious code can result in arbitrary code execution on any system that installs and requires this specific version (20.4.2) of the 'saas-f-testing' npm package. The downloaded executable runs without verification, potentially allowing attackers to execute any payload, leading to system compromise, data theft, or further malware deployment. There is no indication of active exploitation in the wild yet.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using version 20.4.2 of the 'saas-f-testing' npm package. It is recommended to audit dependencies for malicious code and remove or replace this package until a vendor advisory or patch is available. Monitor for updates from the package maintainer or npm security advisories for remediation guidance.
Malicious code in saas-f-testing (npm)
Description
The npm package 'saas-f-testing' version 20.4.2 contains malicious code that, upon require, downloads a platform-specific executable from dynamically assembled hostnames. This executable is saved under covert filenames in temporary directories, given executable permissions, and spawned without any hash or signature verification. The code uses obfuscation techniques to evade static detection. A secondary malicious file exists but is not reachable from the main entry in this version.
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 'saas-f-testing' npm package version 20.4.2 includes malicious functionality where the main script (index.js) loads setup.js, which downloads an executable payload from runtime-assembled and obfuscated hostnames. The payload is saved to temporary directories with disguised filenames, permissioned to be executable (chmod 0755), and executed detached via shell commands without any integrity verification. The hostnames and child process invocation are constructed dynamically to evade static analysis. Additionally, a secondary file (lib/telemetry.js) contains similar malicious code but is not invoked in this version. This behavior indicates a supply chain compromise or deliberate inclusion of malware in the package.
Potential Impact
This malicious code can result in arbitrary code execution on any system that installs and requires this specific version (20.4.2) of the 'saas-f-testing' npm package. The downloaded executable runs without verification, potentially allowing attackers to execute any payload, leading to system compromise, data theft, or further malware deployment. There is no indication of active exploitation in the wild yet.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using version 20.4.2 of the 'saas-f-testing' npm package. It is recommended to audit dependencies for malicious code and remove or replace this package until a vendor advisory or patch is available. Monitor for updates from the package maintainer or npm security advisories for remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12434
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735750bf8831d53915a603
Added to database: 08/05/2026, 15:31:28 UTC
Last enriched: 08/05/2026, 17:48:52 UTC
Last updated: 08/05/2026, 17:48:52 UTC
Views: 3
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.