Malicious code in tramvai-module-feature-toggle (npm)
The npm package tramvai-module-feature-toggle version 20.5.3 is a malicious package that drops and executes a platform-specific binary from attacker-controlled Cloudflare Workers hosts. It uses obfuscation techniques to evade detection, including runtime assembly of hostnames and fallback to covert DNS TXT record payload delivery. The package does not provide legitimate functionality and its installation results in full system compromise.
AI Analysis
Technical Summary
The tramvai-module-feature-toggle package (version 20.5.3) is a malicious npm package that, upon require(), loads a setup script which downloads a platform-specific binary from hardcoded Cloudflare Workers domains. This binary is saved to a hidden temporary path, given executable permissions, and executed detached via /bin/sh. The package uses obfuscation by assembling destination hostnames at runtime and employs a fallback covert channel via DNS TXT records if HTTPS fetch fails. Execution is controlled by opt-out environment variables and a cooldown lockfile. The package mimics the legitimate tramvai ecosystem but contains no real functionality beyond the drop-and-execute behavior. Any system with this package installed should be considered fully compromised.
Potential Impact
Installation of this package results in full compromise of the affected system. The attacker gains the ability to execute arbitrary code via the downloaded binary. All secrets and keys stored on the compromised system are at risk and should be rotated immediately from a different, uncompromised system. Removing the package alone does not guarantee removal of all malicious components or persistence mechanisms.
Mitigation Recommendations
Remove the tramvai-module-feature-toggle package version 20.5.3 immediately. Rotate all secrets and keys that may have been exposed on the compromised system from a separate, secure environment. Conduct a thorough investigation for additional persistence or malware installed by the attacker. There is no official patch or fix available; remediation requires removal and incident response.
Malicious code in tramvai-module-feature-toggle (npm)
Description
The npm package tramvai-module-feature-toggle version 20.5.3 is a malicious package that drops and executes a platform-specific binary from attacker-controlled Cloudflare Workers hosts. It uses obfuscation techniques to evade detection, including runtime assembly of hostnames and fallback to covert DNS TXT record payload delivery. The package does not provide legitimate functionality and its installation results in full system compromise.
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 tramvai-module-feature-toggle package (version 20.5.3) is a malicious npm package that, upon require(), loads a setup script which downloads a platform-specific binary from hardcoded Cloudflare Workers domains. This binary is saved to a hidden temporary path, given executable permissions, and executed detached via /bin/sh. The package uses obfuscation by assembling destination hostnames at runtime and employs a fallback covert channel via DNS TXT records if HTTPS fetch fails. Execution is controlled by opt-out environment variables and a cooldown lockfile. The package mimics the legitimate tramvai ecosystem but contains no real functionality beyond the drop-and-execute behavior. Any system with this package installed should be considered fully compromised.
Potential Impact
Installation of this package results in full compromise of the affected system. The attacker gains the ability to execute arbitrary code via the downloaded binary. All secrets and keys stored on the compromised system are at risk and should be rotated immediately from a different, uncompromised system. Removing the package alone does not guarantee removal of all malicious components or persistence mechanisms.
Defensive Guidance
Remove the tramvai-module-feature-toggle package version 20.5.3 immediately. Rotate all secrets and keys that may have been exposed on the compromised system from a separate, secure environment. Conduct a thorough investigation for additional persistence or malware installed by the attacker. There is no official patch or fix available; remediation requires removal and incident response.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12285
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-x32c-hhrc-xrc7"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a74cfacbf8831d5391b2180
Added to database: 08/06/2026, 18:17:16 UTC
Last enriched: 08/06/2026, 19:20:49 UTC
Last updated: 08/06/2026, 19:20:49 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.