MAL-2026-12424Malicious code in react-native-ui-message (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.0.0 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | react-native-ui-message | * |
| npm | react-native-ui-message | 1.0.0 |
{"schema_version":"1.7.4","id":"MAL-2026-12424","published":"2026-08-05T12:57:43Z","modified":"2026-08-21T12:28:12.526527060Z","aliases":["GHSA-w3j6-3pww-qfcw"],"summary":"Malicious code in react-native-ui-message (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (615dd38493e2ff2257cfe5fe94b089a9001329b0d68c6b48f7ac491e4fcb205f)\nreact-native-ui-message@1.0.0 declares a postinstall hook that runs src/utilities/SubscriptionGuard.js. On install the script enumerates non-internal network interfaces via os.networkInterfaces() to obtain the host's MAC address, then POSTs {mac, os: process.platform, path: __dirname} to https://react-native-ui-message.com/api/EntitlementState. It then issues a GET to https://react-native-ui-message.com/api/ValidateLicense/... and passes the response body to Node's vm.runInContext with a context exposing require/process/Buffer, executing arbitrary server-returned JavaScript on the installer's machine. The accompanying integrity check compares a constant string against itself, so no verification of the fetched code occurs. The package presents itself as a pure-JS React Native toast/message component, for which no license-server-controlled remote code path is required.\n\n## Source: ghsa-malware (dee8481cdae210e822ba45fe71276dffeb9fd613380963ab7e4d10178298d847)\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":"react-native-ui-message","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"src/utilities/SubscriptionGuard.js","sha256":"d3563aafe52c819ebdbc1d830a26b7c1376a3814195ba0b1058e9731d6f9358d","tlsh":"045134dc69a7145247b267f85d27501ffba081233240c2657abd83e02ff6414a5a3fdc"}],"package_integrity":[{"filename":"react-native-ui-message-1.0.0.tgz","hashes":{"sha1":"0bfd450b06dde0f1ef8ead88a0c122eae30a09fc","sha512_sri":"sha512-UlZkYfBiZS5Nd0ubDa2KXuOOPAKfpSQ8MK388hYko/5jbGtactlTa34UcBDKXqzvAUbzimYbkbSK+rmpN/IWGw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-native-ui-message/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w3j6-3pww-qfcw"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014825","import_time":"2026-08-05T13:08:49.429917625Z","modified_time":"2026-08-05T12:57:43Z","sha256":"615dd38493e2ff2257cfe5fe94b089a9001329b0d68c6b48f7ac491e4fcb205f","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-w3j6-3pww-qfcw","import_time":"2026-08-21T12:26:03.500979162Z","modified_time":"2026-08-21T11:43:09Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"dee8481cdae210e822ba45fe71276dffeb9fd613380963ab7e4d10178298d847","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0