{"id":"MAL-2026-11123","revision":null,"records":[{"revision":"186ec9bfb0f34e859d017a66938c32da","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11123","aliases":[],"title":"Malicious code in @yancyyu/agentcli (npm)","description":"The npm package `@yancyyu/agentcli` ships a Feishu/Lark credential stealer. An auto-started telemetry worker (`src/main/telemetry/worker.ts`, started via `agentcli init`/`agentcli usage start` and macOS launchd) calls `safeScanLarkCredentials()` in its periodic run loop; the scan reads and decrypts local Lark credentials (macOS Keychain AES-256-GCM `.enc` under `~/Library/Application Support/lark-cli/`, Windows DPAPI under `HKCU\\Software\\LarkCli\\keychain`), refreshes tokens and POSTs {app_id, app_secret, access_token, refresh_token} to the operator backend (endpoint `/api/v1/report/lark-credentials`, later renamed `/api/v1/feishu/lark-cli/credentials`; default cloud hosts include `agentbus.skg.com`, `159.75.231.98:8088`, `47.112.24.153`).\n\nThese versions are not part of the existing OSV record MAL-2026-11123 (Amazon Inspector), which covers 1.9.25-1.9.80. The true malicious boundary is 1.9.9 (2026-07-12) via the import->call reachability chain (`telemetry/worker.ts` -> `larkCredentials`), 16 versions earlier than the previously-catalogued 1.9.25; the reachable credential theft is present continuously across 1.9.9-1.9.24 (each verified) and 1.10.0. Versions 1.8.8-1.9.8 exfiltrate local Claude/Codex conversations to the same backend but do not yet steal Lark credentials (out of scope for this malware record).\n\nThis report extends the confirmed-malicious set with 17 additional versions and an earlier boundary, scoped to the versions not yet listed in MAL-2026-11123 to avoid duplication. Determined by static code and dataflow review of the published npm tarballs.\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7f6774653f487db8fbb9b40f1c1aba2bf959edffae409445162b0d245a3bedf1)\nThe @yancyyu/agentcli package installs a telemetry worker (dist/telemetry-worker.bundle.mjs) that is started by `agentcli init` / `agentcli usage start` and auto-started via macOS launchd. The worker enumerates every lark-cli (Feishu) profile stored on the host — decrypting macOS Keychain-wrapped AES-256-GCM `.enc` files under `~/Library/Application Support/lark-cli/` and Windows DPAPI-protected values under `HKCU\\Software\\LarkCli\\keychain` — refreshes each token, and batch-POSTs `{app_id, app_secret, access_token, refresh_token}` for every profile every 5 minutes to a hardcoded default endpoint `http://47.112.24.153` (plain HTTP, bare IPv4, no TLS). The endpoint constant `DEFAULT_OPENHERMIT_CLOUD_BASE_URL` is the single default for the credential batch upload and conversation/usage pipelines when no override env var or settings value is present. The enumeration is not limited to AgentCli-created profiles; every lark-cli profile on the machine is harvested. The `reportAllLarkCredentials` code comment states: \"enumerate all personal lark-cli profiles, refresh each, then read current credentials [...] batch the complete eligible set to the server.\" The postinstall step additionally rewrites the optional `cc-connect` dependency's installer to prepend third-party China GitHub mirror hosts (gh-proxy.com, ghproxy.net) in front of upstream release URLs before the cc-connect native binary is downloaded and executed, broadening the trust boundary for that binary. Feishu (Lark) `app_id` + `app_secret` combined with valid access/refresh tokens allow full impersonation of the affected tenant applications; sending them cleartext to a bare IPv4 over HTTP additionally exposes them to any on-path observer.\n","state":0,"publishedAt":"2026-07-28T13:30:51+00:00","modifiedAt":"2026-09-11T04:00:06.6115921+00:00","affected":[{"ecosystem":"npm","name":"@yancyyu/agentcli","ranges":[],"versions":["1.9.32","1.9.42","1.9.35","1.9.27","1.9.52","1.9.43","1.9.61","1.9.66","1.9.67","1.9.48","1.9.26","1.9.77","1.9.44","1.9.53","1.9.29","1.9.40","1.9.33","1.9.36","1.9.50","1.9.71","1.9.58","1.9.79","1.9.30","1.9.78","1.9.28","1.9.80","1.9.25","1.9.9","1.9.10","1.9.11","1.9.12","1.9.13","1.9.14","1.9.15","1.9.16","1.9.17","1.9.18","1.9.19","1.9.20","1.9.21","1.9.22","1.9.23","1.9.24","1.10.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.32","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.42","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.35","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.27","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.52","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.43","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.61","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.66","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.67","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.48","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.26","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.77","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.44","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.53","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.29","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.40","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.33","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.36","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.50","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.71","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.58","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.79","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.30","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.78","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.28","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.80","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.25","https://research.codelake.dev/advisories/clr-2026-3047-yancyyu-agentcli","https://osv.dev/vulnerability/MAL-2026-11123","https://www.npmjs.com/package/@yancyyu/agentcli/v/1.9.14"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11123","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11123","identifiers":["MAL-2026-11123"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-15T00:30:35.7025358+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-15T00:30:35.7025358+00:00","lastSuccessAt":"2026-11-15T00:30:35.860631+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.8606328+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f4305fb3b9417bd97547e9305731a80b9463cd5f49ef853b3cd62960cad53a57-b1b3898d5794e2254d7800e3fe3019a3916d0abcec27dcc333172b795590268a","complete":true,"records":425757,"lastAttemptAt":"2026-11-15T00:30:35.1141414+00:00","lastSuccessAt":"2026-11-14T23:32:08.2210295+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.1141414+00:00","snapshotPublishedAt":"2026-11-14T23:27:44+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-19d3a167288748059b764510b42a56e1","complete":true,"records":13821,"lastAttemptAt":"2026-11-15T00:39:00.6890084+00:00","lastSuccessAt":"2026-11-15T00:39:00.683+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:39:00.683+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13874,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-15T00:30:35.7025358+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-15T00:30:35.7025358+00:00","lastSuccessAt":"2026-11-15T00:30:35.8620517+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.8620552+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a2d6726fa6984ccea1afed1a3e59d87e","complete":true,"records":13833,"lastAttemptAt":"2026-11-15T00:31:15.0819052+00:00","lastSuccessAt":"2026-11-15T00:31:15.078+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:31:15.078+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13874,"expectedIdentifiers":13874,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-15T00:30:35.4763058+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.4763058+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-15T00:30:35.2641931+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.2641931+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-012aff9b2fb349d53e2c4bace6ca57956b6f5f9d82c1dc9fdc1c9b3c738f8977","complete":true,"records":3148,"lastAttemptAt":"2026-11-15T00:30:35.583275+00:00","lastSuccessAt":"2026-11-14T04:57:03.8279646+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.583275+00:00","snapshotPublishedAt":"2026-11-14T03:02:50+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-bfbc75e561bfffdd0ad20c592902934adbd2d0a701402c5539bbccd9991fe78c","complete":true,"records":232472,"lastAttemptAt":"2026-11-15T00:30:35.36985+00:00","lastSuccessAt":"2026-11-14T21:27:13.9659762+00:00","error":null,"lastVerifiedAt":"2026-11-15T00:30:35.36985+00:00","snapshotPublishedAt":"2026-11-14T20:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}