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

@ziedzzz/demo-canarynpm

Advisory published Updated

@ziedzzz/demo-canary is a confirmed malicious npm package (MAL-2026-17652) that steals credentials and exfiltrates sensitive data (malicious versions 0.0.0-stage, 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @ziedzzz/demo-canary (npm)

MAL-2026-17652
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @ziedzzz/demo-canary

What this malware does

On npm install, the package's declared postinstall script executes index.js, which collects a host fingerprint (hostname, username, home directory, cwd, platform/arch/OS release, CPU model, memory, network interfaces including MAC/OUI, process info) and enumerates process.env for variable names matching TOKEN|SECRET|KEY|PASS|AWS_|GCP_|AZURE_|SSH|GIT|NPM|DOCKER. The collected data is transmitted via HTTPS GET to the hardcoded third-party endpoint telegrambot-aebk.onrender.com/ping. The behavior fires automatically on install without opt-in and discloses the installer's host identity and credential-variable inventory to an author-controlled destination.

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

2 flagged
0.0.0-stage1.0.0

Indicators of compromise (SHA-256)

e6350184f3eabc17d37726cdd71ea97666cef28b2e1c125cffeb56e7c474b8dd
d3e7b0e058e95345b4068c6e4f15e9c53f11d2e5c93cecb7d599af7f1b0710cf

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for @ziedzzz/demo-canary (2 malicious versions).

  2. If you installed it — respond

    @ziedzzz/demo-canary 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 @ziedzzz/demo-canary was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. @ziedzzz/demo-canary on npm has been identified as a malicious package (versions 0.0.0-stage, 1.0.0 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-021112GHSA-p7gq-mvm4-4cw4

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @ziedzzz/demo-canary-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

@ziedzzz/demo-canary (npm) malicious package — MAL-2026-17652 | O3 Security