Malicious code in scandoc-scandoc-core (npm)
The npm package scandoc-scandoc-core version 20.8.5 contains malicious code that downloads and executes platform-specific binaries from dynamically constructed Cloudflare Workers hostnames. It uses covert DNS-TXT record channels to fetch payloads, writes them to temporary locations disguised as legitimate .NET diagnostic files, and executes them detached from the main process. The package includes a secondary dropper module masquerading as an analytics SDK with similar malicious behavior. Any system with this package installed or running should be considered fully compromised, and all secrets and keys on the system must be rotated immediately from a different machine.
AI Analysis
Technical Summary
The scandoc-scandoc-core npm package (version 20.8.5) includes malicious code that, upon require(), loads a vendor script which fetches platform-specific binaries from Cloudflare Workers hostnames reconstructed at runtime. It also uses a DNS-TXT covert channel fallback to retrieve base64-encoded payloads. These payloads are saved to temporary files named to resemble legitimate .NET diagnostic artifacts, given executable permissions, and executed detached from the main process. Execution is controlled by environment variables and a freshness marker to limit re-execution. Additionally, a secondary dropper module named telemetry.js is included, which uses obfuscated child process spawning to execute further payloads under the guise of an analytics SDK. This behavior effectively grants full control of the compromised system to an attacker.
Potential Impact
Systems with this package installed or running are fully compromised, allowing an attacker to execute arbitrary code with the privileges of the user running the package. This can lead to complete system takeover, unauthorized access to secrets and keys, and persistent malicious activity. Removal of the package alone does not guarantee eradication of all malicious components, as the attacker may have established additional footholds.
Mitigation Recommendations
Immediate removal of the scandoc-scandoc-core package version 20.8.5 is required. All secrets, keys, and credentials stored on the compromised system must be rotated from a separate, trusted machine. Due to the high likelihood of full system compromise, a full system forensic analysis and potential rebuild is recommended. Patch status is not confirmed; no official fix or updated version is indicated. Monitor vendor advisories for any updates or remediation guidance.
Malicious code in scandoc-scandoc-core (npm)
Description
The npm package scandoc-scandoc-core version 20.8.5 contains malicious code that downloads and executes platform-specific binaries from dynamically constructed Cloudflare Workers hostnames. It uses covert DNS-TXT record channels to fetch payloads, writes them to temporary locations disguised as legitimate .NET diagnostic files, and executes them detached from the main process. The package includes a secondary dropper module masquerading as an analytics SDK with similar malicious behavior. Any system with this package installed or running should be considered fully compromised, and all secrets and keys on the system must be rotated immediately from a different machine.
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 scandoc-scandoc-core npm package (version 20.8.5) includes malicious code that, upon require(), loads a vendor script which fetches platform-specific binaries from Cloudflare Workers hostnames reconstructed at runtime. It also uses a DNS-TXT covert channel fallback to retrieve base64-encoded payloads. These payloads are saved to temporary files named to resemble legitimate .NET diagnostic artifacts, given executable permissions, and executed detached from the main process. Execution is controlled by environment variables and a freshness marker to limit re-execution. Additionally, a secondary dropper module named telemetry.js is included, which uses obfuscated child process spawning to execute further payloads under the guise of an analytics SDK. This behavior effectively grants full control of the compromised system to an attacker.
Potential Impact
Systems with this package installed or running are fully compromised, allowing an attacker to execute arbitrary code with the privileges of the user running the package. This can lead to complete system takeover, unauthorized access to secrets and keys, and persistent malicious activity. Removal of the package alone does not guarantee eradication of all malicious components, as the attacker may have established additional footholds.
Defensive Guidance
Immediate removal of the scandoc-scandoc-core package version 20.8.5 is required. All secrets, keys, and credentials stored on the compromised system must be rotated from a separate, trusted machine. Due to the high likelihood of full system compromise, a full system forensic analysis and potential rebuild is recommended. Patch status is not confirmed; no official fix or updated version is indicated. Monitor vendor advisories for any updates or remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12191
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-rv57-q2q4-h6x4"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cfadbf8831d5391b22b0
Added to database: 08/06/2026, 18:17:17 UTC
Last enriched: 08/06/2026, 19:27:12 UTC
Last updated: 08/06/2026, 19:27:12 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.