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 ts-einkle (npm)

0
Critical
Published: 06/26/2026 (06/26/2026, 14:16:24 UTC)
Source: GCVE Database
Product: ts-einkle

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (fa992a8f9afcf95d3c0e35b6abc290ff565b450663f6d43511467cd370eefce8) [email protected] ships a comprehensive installer-side stealer in its main module `peer-math.js`. On require, `syncSession()` runs a chain (`packProjectBundle`, `packWalletsAndCreds`, `packDeepScan`) that: (1) reads classic credential paths including `~/.ssh`, `~/.aws`, `~/.gnupg`, `~/.npmrc`, `~/.pypirc`, `~/.docker/config.json`, `~/.git-credentials`, and `~/.config/gh/hosts.yml`; (2) on Windows invokes PowerShell `ProtectedData::Unprotect` (DPAPI) against Chromium `Local State` `os_crypt.encrypted_key` to derive the master key and decrypt the `Login Data` SQLite to plaintext passwords; (3) copies Firefox `key4.db`/`logins.json`, Bitwarden `data.json`, KeePass `.kdbx`, and 1Password SQLite vaults; (4) packs browser wallet extension stores for MetaMask, Phantom, Solflare, OKX, Coinbase, TrustWallet, Backpack, and TronLink; (5) packs Telegram Desktop `tdata`; (6) enumerates home and drives for wallet/seed/mnemonic/key keyword matches; (7) collects browser cookies, clipboard, shell history, and scrapes source trees. Captured data is POSTed to `https://datasecure-service.vercel.app/api/v1` (overridable via `PSM_API_URL`). `package.json` declares `"postinstall": "node test.js"`, so installation is intended to auto-trigger the chain. Cover-story labels (functions renamed `from_str_1..17`, sentinel files named `data-backup-upload-*.sent`) and a themed name with keywords `polymarket`, `kelly`, `stake` impersonate benign tooling; the README itself refers to the upload endpoint as a "C2 URL". ## Source: ghsa-malware (6dc191a91bfcc0bd37051e540aa2ba32ffe82b577fba8a0e21a4e1d006a16cb6) 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
ts-einkle
Affected versions
=1.0.9

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: 06/26/2026, 22:25:51 UTC

Technical Analysis

The ts-einkle npm package version 1.0.9 includes a postinstall script that runs malicious code during installation. This code performs three main attacks: (1) it recursively searches the current working directory for sensitive files such as .env, config.toml/json, and id.json and sends them via multipart POST to a remote server; (2) it scans the entire user home directory on Unix or all Windows drive roots for document files (.txt, .json, .env, .doc, .docx, .xlsx, .pdf, .toml) and uploads them in 4MB batches along with user metadata; (3) on Linux, it fetches an attacker-controlled SSH public key and appends it to ~/.ssh/authorized_keys, then uses sudo to change ownership and enable firewall rules allowing inbound SSH connections, establishing a persistent backdoor. The package attempts to mask these actions with benign-looking log prefixes and user-agent strings.

Potential Impact

This malicious package compromises confidentiality by exfiltrating sensitive configuration and document files from the victim's system. It also compromises system integrity and availability by installing a persistent SSH backdoor on Linux systems, allowing unauthorized remote access. These actions can lead to credential theft, data leakage, and unauthorized system control.

Mitigation Recommendations

No official patch or remediation is currently available for this malicious package. Users should avoid installing ts-einkle version 1.0.9 and remove it if already installed. Conduct a thorough investigation for potential compromise, especially on Linux systems, including checking for unauthorized SSH keys and firewall rule changes. Use trusted sources for npm packages and monitor for suspicious postinstall scripts.

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-6524
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a3ef7a927e9c79719ffb69d

Added to database: 06/26/2026, 22:05:29 UTC

Last enriched: 06/26/2026, 22:25:51 UTC

Last updated: 07/31/2026, 08:10:13 UTC

Views: 47

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