# MAL-2026-6524: Malicious code in ts-einkle (npm)


- **Type:** Malicious package
- **Package:** `ts-einkle` (npm)
- **Published:** 26 Jun 2026
- **Also known as:** GHSA-mjcv-m7fg-mg8j

## What is MAL-2026-6524?

MAL-2026-6524 is a malicious package in ts-einkle, published on 26 Jun 2026. 

### Official description

ts-einkle@1.1.3 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".

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.

## What should I do about MAL-2026-6524?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-6524 is a malicious package: ts-einkle (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-6524/ (Markdown: https://insights.sbomify.com/MAL-2026-6524/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-6524

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-6524/
Summaries are generated and may contain mistakes; the official description above is the record.
