Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in @tonsdk/core (npm)

0
Critical
Published: 06/11/2026 (06/11/2026, 05:00:02 UTC)
Source: GCVE Database
Product: @tonsdk/core

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d9a9a70e3d8b322df960cb96b195f74693eb4d2ea284680e4cfb41a33f1848f8) @tonsdk/core impersonates the legitimate @ton/core TON blockchain SDK. On `npm install`, scripts/postinstall.js executes automatically and performs two attacker-controlled actions against a hardcoded bare-IP C2 at 213.218.160.189 (ports 8080 and 80) over plaintext HTTP. First, it base64-encodes a JSON fingerprint of the installer host — hostname, username, platform, arch — and sends it as a GET query string to `/s?q=<base64>`, leaking host identifiers on every install. Second, it fetches a response payload, optionally XOR-decrypts it, and passes the result to eval(), giving the operator arbitrary remote code execution in the installer's Node process. The script also probes for VM/sandbox/analyst tooling (vmtoolsd, vboxservice, wireshark, x64dbg, ida) to suppress execution in researcher environments. The package description and name target developers searching for TON SDK tooling; the repository URL (`aspect-build/tonsdk`) is unrelated to the real TON foundation. ## Source: ghsa-malware (57c76201082cb24093c4db6ec9c7c86cd0088eb36159e05bb61bb38be791188e) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
@tonsdk/core
Affected versions
=0.9.3

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

AILast updated: 07/14/2026, 09:26:31 UTC

Technical Analysis

@tonsdk/core is a malicious npm package impersonating the legitimate TON SDK. Its postinstall.js script automatically runs on installation, sending a base64-encoded JSON fingerprint of the host (hostname, username, platform, architecture) to a hardcoded IP address over plaintext HTTP. It then retrieves a payload from the attacker-controlled server, optionally XOR-decrypts it, and executes it via eval(), allowing arbitrary remote code execution within the Node.js process. The script also probes for virtualization or analysis tools (vmtoolsd, vboxservice, wireshark, x64dbg, ida) to avoid execution in researcher environments. The package targets developers searching for TON SDK tooling but is unrelated to the official TON foundation repository. The affected version is exactly 0.9.3.

Potential Impact

Installation of this package results in full compromise of the host system. Host identifying information is leaked to an attacker-controlled server, and arbitrary code execution is granted to the attacker during installation. This can lead to complete system takeover, data theft, and persistence of malicious software. Secrets and keys stored on the compromised system should be considered exposed and rotated immediately. Removing the package alone may not remove all malicious artifacts.

Mitigation Recommendations

No official patch or fix is available. The package should be removed immediately if installed. Because the system is considered fully compromised, all secrets and keys stored on the affected computer must be rotated from a separate, trusted system. Monitor for any signs of persistent malicious activity and consider rebuilding the affected system. Avoid installing packages from untrusted or impersonating sources and verify package authenticity before installation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-5564
Osv Schema Version
1.7.4
Aliases
["GHSA-hw5x-gw43-m4mx"]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a55ff5168715ace432f00b9

Added to database: 07/14/2026, 09:20:17 UTC

Last enriched: 07/14/2026, 09:26:31 UTC

Last updated: 07/30/2026, 09:11:40 UTC

Views: 18

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses