Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

typedecodenpm

typedecode is a confirmed malicious npm package (MAL-2026-6476) that typosquats a legitimate package to trick installs (malicious versions 1.0.1, 1.0.2, 1.0.3). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in typedecode (npm)

MAL-2026-6476
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall typedecode

What this malware does

On require('typedecode') / import 'typedecode', the bundled dist/index.cjs and dist/index.js execute an obfuscated import-time payload. A bootstrap.js IIFE exposes require and module on global, deobfuscates two large strings through a custom permutation (YWG), constructs a function via the Function constructor (AQq(erE, YWG(fvm))), invokes it on a second decoded payload to produce XZs, then calls XZs(7942) and brands global._V = 'A6-Shadow-15'. The deliberate placement of require/module on globals before the IIFE allows the decoded code to dynamically load arbitrary Node modules (fs, http, child_process, etc.) without any static reference. The package's API surface and inline comments are copied verbatim from the legitimate decoders package by nvie (including the email-regex comment and the pojo detection comment), and the README API (object, array, optional, string, number, email, url, uuid, decode/verify/value, formatInline, formatShort) duplicates that library — an impersonation lure to drive installs of the hidden loader. Author is the placeholder-style chavanetsanastasia-netizen.

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.

Malicious versions

3 flagged
1.0.11.0.21.0.3

Indicators of compromise (SHA-256)

593662d3b4cda901642b713f419417807a33f3dca74e818f66e8d0cf9ebcf6e3
bedd4815e96aa992468ab037dbd2c342b8567f07ece45674dd8a274c4e479912
94ab8efbe59223ab64fd1866492a3aca182db628a93768e6a558f69fe9675c3e
94d821385ecc3b8a01df48c17477068a85f0f8ce769cc308ff71d87ed2260c5f

Detection & response playbook

Typosquat
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for typedecode (3 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging typedecode across your stack and pipelines.

  2. If you installed it — respond

    typedecode is a typosquat — you almost certainly intended a legitimately-named package. Remove typedecode, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If typedecode was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks typedecode before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. typedecode on npm has been identified as a malicious package (versions 1.0.1, 1.0.2, 1.0.3 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007535GHSA-wfg2-fj8h-rxj6IN-MAL-2026-008844IN-MAL-2026-008845

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks typedecode-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

typedecode (npm) malicious package — MAL-2026-6476 | O3 Security