# GHSA-J2PV-FH3G-JP56: Malicious code in @ziedzzz/demo-canary (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-10-08
- Modified: 2026-10-08

## Affected versions

- @ziedzzz/demo-canary (npm): 1.0.0

## Description

## Source: amazon-inspector (e6350184f3eabc17d37726cdd71ea97666cef28b2e1c125cffeb56e7c474b8dd)
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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/1f0efa038b4952b6f39151f24f216b7f464d67c4/osv/malicious/npm/@ziedzzz/demo-canary/MAL-2026-17652.json))

## References

- https://github.com/ossf/malicious-packages/blob/1f0efa038b4952b6f39151f24f216b7f464d67c4/osv/malicious/npm/@ziedzzz/demo-canary/MAL-2026-17652.json
- https://www.npmjs.com/package/@ziedzzz/demo-canary/v/1.0.0
- https://github.com/advisories/GHSA-j2pv-fh3g-jp56

Page: https://cve.now/GHSA-J2PV-FH3G-JP56

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
