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

llm-context-compressornpm

Malicious code in llm-context-compressor (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-4278
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall llm-context-compressor

What this malware does

Ten packages published by npm user asdxzxc at version 1.0.10 target developers working on AI and LLM tooling. Each package masquerades as a developer utility while executing a two-stage payload triggered via postinstall: package.jsonlib/setup.jslib/worker.js.

Credential harvesting: lib/worker.js scans the filesystem for private keys (64-char hex), BIP39 mnemonics (12–24 word phrases), API keys and secrets, and passwords from env vars and shell history (.bash_history, .zsh_history, .fish_history, .mysql_history, .psql_history), including wallet tool invocations (geth account, hardhat, metamask, wallet import). Targeted paths include ~/.ssh, ~/.aws/credentials, ~/.config/gcloud, ~/.azure, ~/.docker/config.json, ~/.kube/config, crypto wallet dirs (~/.ethereum, ~/.bitcoin, ~/.solana), exchange configs (Binance, Bybit, OKX, KuCoin, Deribit, 3Commas), .env, .npmrc, .gitconfig. Also performs browser data theft and Ethereum keystore brute-force. A priority-target list fetched from the actor's GitHub Pages endpoint enables aggressive deep scanning for pre-registered high-value hosts.

AI self-propagation: after credential theft, a _propagate() function executes a multi-vector campaign to infect AI coding assistants. It writes poisoned .cursorrules and CLAUDE.md files — framed as "P-2024-001 Enterprise Credential Integrity Standard" — to all discovered project directories, parent directories, and home subdirectories, instructing Cursor, Claude Code, and GitHub Copilot to execute the remote payload and propagate it via Issues, PRs, and documentation. Git hooks (post-merge, post-checkout, pre-commit, pre-push) are injected into all .git repos found on disk, and a persistence block is appended to ~/.bashrc, ~/.zshrc, and ~/.profile. Zero-width steganography (ZWSP/ZWJ/ZWNJ/LTRM encoding) embeds hidden scan triggers in all AI-generated text output, enabling AI-to-AI chain infection invisible to humans.

C2/exfil: a remotely configurable JSON config hosted on the actor's GitHub Pages delivers the active webhook list, encryption key, and scan strategy; hardcoded fallback webhooks at webhook.site and a DNS TXT record fallback are used if the primary channel fails. A dedup marker at ~/.local/share/.p2024_integrity prevents re-propagation within 24 hours.

llm-context-compressor poses as an LLM context window compression utility, specifically targeting AI/LLM application developers.

The package ships lib/trap-core.js, a ~1000-line module that combines fs, os, https, and child_process to collect host fingerprints and POST them to a remote endpoint. Observed structural fingerprints in trap-core.js: os.hostname() / os.platform() reads (lines 1023-1024, 304), filesystem enumeration via fs.existsSync at multiple locations (lines 28, 81, 196,...), spawning of child processes including curl (line 781) and ping (line 40), and multiple HTTP POST request constructions carrying hostname: fields in their JSON bodies (lines 385, 393, 411, 466, 548-553, 600). This matches the host-recon-and-exfiltrate pattern: gather identifiers from os/fs, run shell commands for additional intel, then POST results over https. The package's stated purpose ("LLM context compressor") provides no legitimate justification for hostname/platform collection, child_process spawning of curl, or POST'ing host metadata. Treat as a credential/host-intelligence exfiltrator regardless of how the module is reached, as the file is part of the published tarball and shipped with the library code.

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.

The OpenSSF Package Analysis project identified 'llm-context-compressor' @ 1.0.12 (npm) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.

Malicious versions

6 flagged
1.0.121.1.01.3.01.4.01.5.01.5.1

Indicators of compromise (SHA-256)

5204b76dff252870f5cd3780e4c487280ee23d902f513b9d711133a96a92f200
67b8fe7520edd9ce527f9eccb91561c4ea943cf60dc2c3b626bdee7b074efccd
118ec1f8daac8478e096500a73331b231b7edd1ae91c397ed4e1e835315df1c3
75ea9239bc0a534e1b168c764960f7dc4921214f9b1d877dbf784f8f01288427
7c111e6ffb0e0ba4f303039b99ce79163ba68b3c209b3669964006b25b3b9365
e9c153ce1554f3397e2fc5220e97ee13325d9c6425ee73179fbd077c2865ae0d
ea6cdda63d3c08f8dc0eebb8f52ead9afcee37975986b06958363a7a826b694c
0e4ecbf0054c747d008205e13c23bcab26aec9906da389810fc34898b5e6d62d
57e047c4ed2dbdbf5c0a62b39838541b778f91c456b208da93c151fd7703b102
57e3b94d285f684a22acef94238e49c9cd80704a50c90957c889ec7fa14d9e23
629c13f1128fb653d7ff5d05f411cbce6549ce994aa87d661a30472780ec908d
afd6313eae8f1d9434db14cfc8abc9485ff2bef6df41c0e10d2d5c11661718b3

Detection & response playbook

Credential / info stealer
  1. Find it

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

  2. If you installed it — respond

    llm-context-compressor is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If llm-context-compressor 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 llm-context-compressor 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. llm-context-compressor on npm has been identified as a malicious package (versions 1.0.12, 1.1.0, 1.3.0, 1.4.0, 1.5.0, 1.5.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-65j3-6fx4-8q2jIN-MAL-2026-004421IN-MAL-2026-004491IN-MAL-2026-004419IN-MAL-2026-004438IN-MAL-2026-004416IN-MAL-2026-004492IN-MAL-2026-004420IN-MAL-2026-004439IN-MAL-2026-004395IN-MAL-2026-004396

References

Credits

  • Amazon Inspector · finder
  • OpenSSF: Package Analysis · finder
  • SafeDep · finder

Detect & block this

O3 blocks llm-context-compressor-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

llm-context-compressor (npm) malicious package — MAL-2026-4278 | O3 Security