目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%
← 返回恶意软件包
npm active

@ornikar/react-native-svg-transformer

MAL-2026-11769
2026-08-18 00:30:48
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @ornikar/react-native-svg-transformer (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1,463
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.10unavailable
1.0.11unavailable
1.0.12unavailable
1.0.13unavailable
1.0.6unavailable
1.0.7unavailable
1.0.8archivedVIP 下载
1.0.9unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npm@ornikar/react-native-svg-transformer1.0.10
npm@ornikar/react-native-svg-transformer1.0.11
npm@ornikar/react-native-svg-transformer1.0.12
npm@ornikar/react-native-svg-transformer1.0.13
npm@ornikar/react-native-svg-transformer1.0.6
npm@ornikar/react-native-svg-transformer1.0.7
npm@ornikar/react-native-svg-transformer1.0.8
npm@ornikar/react-native-svg-transformer1.0.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11769","published":"2026-08-04T15:13:15Z","modified":"2026-08-18T00:30:48.466377995Z","aliases":["GHSA-rqjm-92gf-5c24"],"summary":"Malicious code in @ornikar/react-native-svg-transformer (npm)","details":"npm/@ornikar/react-native-svg-transformer is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the \"Shai-Hulud: Here We Go Again\" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook (`\"preinstall\": \"node setup.mjs\"`) that runs on a bare `npm install`, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as Math_Symbol.js / math_init.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading \"Shai-Hulud: Here We Go Again\") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.\n\nVersion 1.0.13 was added to this record on 2026-08-06, when it differed from the versions above in one important way: it was still published. As of that date the registry had unpublished 1.0.6 through 1.0.12 — those versions survived only in the packument `time` map and were absent from `versions` — while 1.0.13, the last republish of the burst, had been left in place and still held the `latest` dist-tag, so a default `npm install @ornikar/react-native-svg-transformer` still resolved to a poisoned release. The 1.0.13 manifest replaces every real script with a single `\"preinstall\": \"node setup.mjs\"` entry, was published at 2026-08-04T12:44:09.763Z by the same maintainer account as the preceding legitimate releases, and declares `dist.unpackedSize` 750900 against 12248 for the last clean release (1.0.5). A file listing of the published tarball shows the two extra files 1.0.13 adds over 1.0.5: `setup.mjs` (11017 bytes) and `math_init.js` (727680 bytes), whose sha256 digests match the campaign payload already recorded in this report's `evidence_files`; the same two files, byte for byte, are also in @ornikar/intl-config 10.0.10. Wiz Research and OX Security both list 1.0.13 in their published IoC sets for this campaign. Consumers should not resolve this package from `latest` or a floating range: pin to 1.0.5 or earlier, audit lockfiles for 1.0.13, and treat any host or CI runner that installed it with install scripts enabled as compromised.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (975ebafd6228d6eacc7ab142d5c1a70e4639c44cfd248107083a6ec641788025)\nThe package declares `preinstall: node setup.mjs`. setup.mjs performs OS/arch/libc detection (linux/darwin/win, x64/arm64, musl/Alpine), downloads the Bun runtime archive from `https://github.com/oven-sh/bun/releases/download/bun-v<version>/...zip`, extracts it, chmods +x, and then invokes `execFileSync(bunPath, [path.join(D, 'math_init.js')], { stdio: 'inherit', cwd: D })`. The executed sibling `math_init.js` is a ~727KB Bun-compiled bundle (`// @bun @bun-cjs`) obfuscated with string-array rotation (`WV8StW` rotator against a large `n7gIxM` constants table) and randomized identifiers; its behavior is only reachable after multi-layer deobfuscation and does not correspond to SVG transformation. `package.json` declares `\"files\": [\"index.js\", \"CHANGELOG.md\", \"README.md\"]`, yet the tarball also ships `setup.mjs` and `math_init.js` — the two files that actually execute at install are absent from the declared file allowlist. `index.js` mirrors the upstream unscoped `react-native-svg-transformer` implementation to preserve advertised behavior, while the malicious chain is grafted on via preinstall under an org-scoped name that resembles the legitimate package. Installing this package on a default `npm install` fetches and runs an alternate runtime to execute an unrelated, obfuscated payload with no relation to the package's stated SVG-transformer purpose.\n\n## Source: ghsa-malware (4876233e6393890b39a9073a5b06e1d9dc4edf31c017d2e7752e24ffda9c4448)\nAny 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.\n","affected":[{"package":{"name":"@ornikar/react-native-svg-transformer","ecosystem":"npm"},"versions":["1.0.6","1.0.7","1.0.8","1.0.9","1.0.10","1.0.11","1.0.12","1.0.13"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"setup.mjs","sha256":"fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb","tlsh":"9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"},{"path":"math_init.js","sha256":"9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc","tlsh":"59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"},{"path":"package.json","sha256":"bbcc502847f7fd7d2509437e5467185b8d50da618c8be43460e3c8cb9bd502cc","tlsh":"fc21d010cda84da309e960b5a87a65c35025a887885cfc0c77de130d4f5c95f10fdafd"}],"package_integrity":[{"filename":"react-native-svg-transformer-1.0.8.tgz","hashes":{"sha1":"cf43ab0a44bded99382e19869c4c6517db12d0e1","sha512_sri":"sha512-6k55L8lGGoFwwvrZ/+BjtASI+RLxB759qT9C8khzz0wXqwt4rJ3py4epqACcKRGMHFwwv5eFyrrd7iHljtEzow=="}},{"filename":"react-native-svg-transformer-1.0.13.tgz","hashes":{"sha1":"c2db71d07af0897200d610d517be32ed28ffbd95","sha512_sri":"sha512-LlpSuED6O4ViGEtommaYbvfDnGxdZH3+mPrlG+qD2eAj4pW5wHxBkc3HAXoJG7mFjFWlKOk41LwHk1LMcQCRSQ=="}}]}}}],"references":[{"type":"WEB","url":"https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain"},{"type":"WEB","url":"https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack"},{"type":"WEB","url":"https://safedep.io/keyv-npm-supply-chain-compromise/"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-rqjm-92gf-5c24"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.11"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.12"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ornikar/react-native-svg-transformer/v/1.0.13"},{"type":"WEB","url":"https://www.ox.security/blog/a-new-infostealer-worm-hits-npm-affecting-keyv-and-cacheable/"}],"database_specific":{"iocs":{"files":[{"note":"Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it.","paths":["setup.mjs"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"}},{"note":"Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js.","paths":["Math_Symbol.js","math_init.js"],"source":"PACKAGE_ARCHIVE","digests":{"sha256":"9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"}}]},"malicious-packages-origins":[{"id":"GHSA-rqjm-92gf-5c24","import_time":"2026-08-05T00:10:18.225411365Z","modified_time":"2026-08-04T16:44:28Z","sha256":"4876233e6393890b39a9073a5b06e1d9dc4edf31c017d2e7752e24ffda9c4448","source":"ghsa-malware","versions":["1.0.12","1.0.11","1.0.10","1.0.9","1.0.8","1.0.7","1.0.6"]},{"id":"IN-MAL-2026-011764","import_time":"2026-08-05T03:11:43.511181798Z","modified_time":"2026-08-05T02:24:14Z","sha256":"222fc8a4f9a6585e902366bedb45529cfd7881f1d9ff4fa1cc96639407ec9737","source":"amazon-inspector","versions":["1.0.8"]},{"id":"IN-MAL-2026-011640","import_time":"2026-08-05T03:11:30.311088838Z","modified_time":"2026-08-05T02:06:21Z","sha256":"6708b4b3b9127be0b6df18fbdb6530237cb0c61d72976f2e147a6967ef9bf872","source":"amazon-inspector","versions":["1.0.9"]},{"id":"IN-MAL-2026-011639","import_time":"2026-08-05T03:11:30.232196919Z","modified_time":"2026-08-05T02:06:12Z","sha256":"975ebafd6228d6eacc7ab142d5c1a70e4639c44cfd248107083a6ec641788025","source":"amazon-inspector","versions":["1.0.6"]},{"id":"IN-MAL-2026-011768","import_time":"2026-08-05T03:11:43.933866467Z","modified_time":"2026-08-05T02:24:44Z","sha256":"c35afffa6b76a98e86be2a97a821c1e615fa298518dd5eaf19b46785b5f5a584","source":"amazon-inspector","versions":["1.0.10"]},{"id":"IN-MAL-2026-011765","import_time":"2026-08-05T03:11:43.667977819Z","modified_time":"2026-08-05T02:24:21Z","sha256":"c8c66a0f0029f7a6cde35091d8f5c5387bbf45ddeb193141487ef509d1fb36ae","source":"amazon-inspector","versions":["1.0.7"]},{"id":"IN-MAL-2026-011767","import_time":"2026-08-05T03:11:43.852701765Z","modified_time":"2026-08-05T02:24:36Z","sha256":"f69f6d56131d0322e5186fd191f9071b965993eb5ea2b97c916ef745ab5905d3","source":"amazon-inspector","versions":["1.0.11"]},{"id":"IN-MAL-2026-011580","import_time":"2026-08-05T03:11:23.503820779Z","modified_time":"2026-08-05T01:57:56Z","sha256":"fffc4bed11c48f718cb3e34157031274dd8c6e525262cc2c1c711fb5a2f2e3e3","source":"amazon-inspector","versions":["1.0.12"]},{"id":"GHSA-rqjm-92gf-5c24","import_time":"2026-08-09T23:21:54.546214Z","modified_time":"2026-08-07T18:07:45Z","sha256":"1a821f0b7e21b9d55ad10321b5ca13afdfbeed97ea8ae491989907fe270614b8","source":"ghsa-malware","versions":["1.0.13","1.0.12","1.0.11","1.0.10","1.0.9","1.0.8","1.0.7","1.0.6"]}]},"credits":[{"name":"Aikido Security","contact":["https://www.aikido.dev"],"type":"FINDER"},{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OX Security","contact":["https://www.ox.security"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"},{"name":"Socket Threat Research Team","contact":["https://socket.dev"],"type":"FINDER"},{"name":"Wiz Research","contact":["https://www.wiz.io"],"type":"FINDER"}]}

数据来源:OpenSSF Malicious Packages · Apache-2.0