Alibaba developer-targeted distributed npm RAT campaign
Summary
Socket Research reported on July 28, 2026 that an unattributed campaign split a malicious downloader across multiple npm packages and publisher accounts, then delivered a cross-platform remote-access trojan to environments that could resolve private Alibaba @ali/* dependencies. The lure packages copied names used by Alibaba's private development tooling, while individually plausible helper packages combined configuration retrieval with a Node.js vm escape and remote code execution.
The final aone-cli payload targets Alibaba-oriented developer and collaboration tooling, supports command execution, file transfer, reverse proxying, persistence, and DingTalk-assisted lateral movement, and was still backed by active infrastructure when Socket published. Socket assessed industrial espionage as the likely objective. Treat that objective and the Chinese-language artifacts as an assessment, not actor attribution.
Tags
- ops
- operations
- supply-chain
- npm
- dependency confusion
- private packages
- developer targeting
- Alibaba
- Aone
- DingTalk
- remote access trojan
- cross-platform malware
- command execution
- lateral movement
- AI tools
- source-repository abuse
- credential theft
- industrial espionage
Campaign and trust-boundary chain
Socket traced two related delivery paths:
lib-mtop, an unscoped lookalike for a private@alipackage, received three new versions in late March 2026 and directly downloaded JavaScript withcurlbefore loading it from disk. The sparse older package history suggests possible account takeover, but public evidence does not distinguish takeover from a malicious or rogue publisher.- A larger package cluster was staged across April 27-28. Top-layer lures copied private
@ali/*package names and declared both the real private dependency and attacker-controlledsmart-config-manager. smart-config-managerpulledcloud-config-fetcherandlocal-config-parser, published through different accounts. Each helper looked consistent with its stated purpose when reviewed alone.cloud-config-fetcherretrievedpreferences.jsonfromsmi1e2u/smart-config-manageron GitHub and stored it as.cloud-preferences.json.local-config-parserevaluated a disguised rule from that file. The rule escaped the Node.jsvmsandbox throughitems.constructor.constructor, recoveredprocessand module-loader access, and downloadedsetting.jsfrom Alibaba Cloud Object Storage.setting.jsprofiled the host, suppressed or cleaned earlier artifacts, selected a platform path, and installed the finalaone-cliRAT.
This is a compositional-evasion pattern: package-level review can miss malicious behavior when network retrieval, rule evaluation, sandbox escape, and execution are separated across dependencies and accounts.
Reported npm packages
Direct or early-stage packages
lib-mtopaone-kitaone-kit-cliaone-sandboxnode-data-utilsfast-transform-pipeline
Distributed loader and lure cluster
cloud-config-fetcherlocal-config-parsersmart-config-manageraone-cloud-clicolder-clidef-open-clientfeedback-ai-sdkflight-compare-analyzerlwp-web-clientlzd-unified-station-sdkopen-worker-clitest-skill-zipuniapi-bridge
Socket's IOC list omits node-data-utils from its final malicious-package block while describing it as an April 27 test of the multi-package delivery mechanism. Preserve that distinction when scoping confirmed installation versus campaign-adjacent publication.
RAT behavior and persistence
The final payload uses an aone-cli name aligned with Alibaba's internal Aone research-and-development platform. Reported capabilities include:
- host and network discovery;
- arbitrary shell, JavaScript, and Python execution;
- upload, download, and additional payload staging;
- screenshot collection;
- encrypted reverse TCP proxying;
- Python and Node.js module installation;
- AI-tool poisoning and DingTalk lateral-movement commands.
Platform-specific behavior includes:
- macOS: adds a background command to
~/.zshrcand a LaunchAgent that runs every 10 minutes; - Windows: terminates the official Alilang security application and replaces its
app.asarwith a trojanized copy; - Linux: runs a detached payload from
/tmpand deletes the file after it is loaded; - developer/AI tooling: injects marked Python code into
.skillsdirectories used by tools including DingTalk, Wukong, and Qoder so a Bun-hostedscript.jsis relaunched.
HTTP requests can carry fake Origin and Referer values of https://alidocs.dingtalk.com to blend with expected Alibaba collaboration traffic.
High-value indicators
Network and repository
smi1e2u/smart-config-manageraone-cli-next[.]oss-cn-beijing[.]aliyuncs[.]comaone-ai-cli[.]oss-cn-beijing[.]aliyuncs[.]comaone-kit[.]oss-cn-beijing[.]aliyuncs[.]comxemzqli2vu[.]ai-app[.]pub, primary C2 reported by Socketdiamond-cli-znsxphqell[.]cn-shanghai[.]fcapp[.]run, reverse-proxy WebSocket C2- fake HTTP origin/referrer:
https://alidocs.dingtalk.com
Host and code
.cloud-preferences.json- injection marker
# __INJECT_MARKER__ - environment variable
ROBOT_UID=3201d407b7899a12d6d439950511c6a5 - unexpected
aone-cli,aone-kit-update,setting.js,crypto.js, orscript.jsunder developer-tool paths - unapproved edits to Alilang
app.asar,.skillsPython files,~/.zshrc, or LaunchAgent definitions
SHA-256
84a6ccaaab1596139d28e822f40cc99c68d337d4c81d1c6d9692c1d6bb22e4af, maliciouspreferences.json6044974c633b3a319c31bb32110411520c425e89722a64806528553227e7a50a,setting.js0910ecfa049738ef3f2540855341a380df89224ff71da94b4c21689fd66f62e3, macOSaone-cli.jsb8b81af76163bdcc5b4f7d8fe6795f164991f8a62678c971db031b9e90a27813, Linuxaone-clief9a1896eeaae929800eade768276e2240ef252d26d0d96c1950a1a5e1aadb34, Windowsaone-cli.zipe5d8350f1540fe91145dc262c455bca7748ad97dafb2d9facd5adebed9f66d2d,aone-cli-deps.tar.gz41957bd0ba2d9c07af2e069f10780fdf6b2102c065bebe0db2136dfe07d67a28,crypto.js33b58598eb317553942e27545982d4c25ce6120eae10e42393746eb0e02ecae9, Linuxaone-kit-update
Defender actions
- Search lockfiles, SBOMs, npm caches, internal mirrors, CI logs, build artifacts, and developer-host package trees for the reported package names and versions.
- Isolate systems that installed or imported affected packages. Preserve npm cache archives,
.cloud-preferences.json, package trees, process telemetry, DNS/proxy logs, shell profiles, LaunchAgents, Alilang files, and.skillsdirectories before cleanup. - Hunt for Node.js package activity followed by GitHub raw-content retrieval, Alibaba OSS payload downloads,
vmsandbox escapes, detached execution from/tmp, or the C2 and header indicators above. - Search Python files for
# __INJECT_MARKER__and inspect DingTalk, Wukong, Qoder, and adjacent agent-skill directories for unexpected Bun orscript.jslaunch code. - Review DingTalk and developer-platform audit records for lateral movement or access originating from affected workstations.
- From a known-clean host, rotate source-control, npm and other registry, cloud, Vault, Kubernetes, Docker, SSH, CI/CD, Slack, Twilio, and other credentials accessible to affected processes.
- Pin private scopes to the intended private registry without public fallback. Alert when a public unscoped package imitates a private scoped name or combines private dependencies with newly published public helpers.
- Analyze dependency behavior as a graph. Flag combinations where one package retrieves mutable configuration and another evaluates it, even if neither package contains a complete downloader by itself.
- Rebuild affected developer systems from known-good media when execution cannot be ruled out. Package removal does not reverse profile, LaunchAgent, application, or skill-directory persistence.
Assessment caveats
- Socket reported low package download counts and did not publish confirmed victim counts.
- Chinese comments, UTC+0800 commit timestamps, and targeting of Alibaba-oriented tools support a Chinese-speaking-operator hypothesis but are forgeable and do not identify an actor.
- The campaign's likely industrial-espionage objective is an analytic assessment based on target and capability, not a publicly confirmed operator statement.
- Possible maintainer-account takeover for
lib-mtopandlocal-config-parserremains unconfirmed.
November 19 2026: the setting.js URL resurfaced in a new, still-live loader - the durable hunt key is the URL
On Nov 19 2026 this wiki found (via queue filing ossf/malicious-packages#1818, w0rmsign, 16:21:05Z) a still-installable npm package, ali-ai-coding-trace 1.0.0 (packument 200, created 2026-05-08T10:24:35Z, sole maintainer noertvd / noertvd@proton.me, 59 dl last week, zero OSV rows and zero GHSAs at read), whose entire functionality is a postinstall: node index.js that rebuilds a URL from a character-code array and execSync-fetches https://aone-cli-next.oss-cn-beijing.aliyuncs.com/config/setting.js into .cache, require()s it, then unlinks it - the exact host and object path this page's July-2026 campaign reporting carries as the setting.js stage. This wiki statically read the 778 B tarball (sha256 ec7490acf4a841534002ae43bb778cb97ab2388f982fb24ce3e12c388b621dbd, executed nothing); the second stage itself was not fetched-executed, and a plain static GET of the object today answers 403 AccessDenied bucket acl (per-read lane state). Kinship with the July operator is NOT asserted (zero IOCs on any row, bucket provenance unreadable from outside; reuse of a named-then-ACL-closed URL is consistent with copycat as much as with the original operator). The adjacent name bare ai-coding-trace (iflowyou, created 2026-04-24, OSV {} at read) declares dependency @ali/ai-coding-trace: * - a private Alibaba scope, public npm 404 - the private-scope dependency-confusion shape from this campaign's playbook, recorded as shape-of-record with no verdict. Defender action: the name lane missed this loader for six months across every feed; grep lockfiles, SBOMs, and CI logs for the OSS hosts on this page - aone-cli-next.oss-cn-beijing.aliyuncs.com, aone-ai-cli…, aone-kit… - across ALL namespaces, and treat any new package combining an ai/telemetry costume, a charcode-obfuscated URL, and one of these hosts as this lane until disproven. See the 341st sweep stream section for the full verification.
Related pages
- @marketfront / @tqm-mfe dependency-confusion stealer
- Developer-tool config auto-execution
- npm install explicit-trust controls
- Joyfill npm blockchain-RAT compromise
Source
- Socket Research: https://socket.dev/blog/npm-rat-targets-alibaba (July 28, 2026)
November 23 382nd sweep: ali-ai-coding-trace FINALLY papered ≈6.5 months post-publish, tarball digest-identical, STILL installable; the setting.js stage object stays ACL-closed
The 341st's loader capture got its OSV row this sweep: MAL-2026-20351 ali-ai-coding-trace (1.0.0, published 2026-11-19T16:00:00Z = the #1818 FILING stamp, modified 2026-11-23T10:15:08.6Z = the 10:15 tick = 77th ingest-correlation positive), born within ≈9 min of #1818 CLOSING at 10:06:26Z — six and a half months of zero paper across every feed closed on a queue close, the read-state-with-expiry law at its longest observed duration. The row's IOC set MATCHES this wiki's 341st capture exactly: file index.js sha256 507b9adf7ec3f4d561efc74b462641a1521d8217c3b4336552d967829eff34eb, URL/domain aone-cli-next.oss-cn-beijing.aliyuncs.com — THIS WIKI re-pulled the tarball 200 (sha ec7490ac…, digest-identical to the 341st pull), re-read index.js 1,031 B byte-wise = the row's own file digest re-attested (decoded the charcode arrays statically: the URL string, the .cache target, the curl -sL -o command — executed NOTHING); packument still 200 roster [1.0.0], maintainer noertvd = advised-but-STILL-INSTALLABLE at row birth (de-listing watch armed). The second-stage object dial this sweep: https://aone-cli-next.oss-cn-beijing.aliyuncs.com/config/setting.js → 403 AccessDenied bucket acl (per-read lane state, same as the 341st). Kinship with the July operator still NOT asserted; the row adds no attribution. Stream: 382nd sweep.