{"id":"MAL-2026-6274","summary":"Malicious code in web3-token-helper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0c826bf782895b60580b94e3a28a2c4562d3742420ce81e9895ad8568da57890)\nThe package advertises itself as a Web3 fee utility but its main export is a dropper. index.js line 140 base64-decodes a platform-specific command string and executes it via child_process.exec inside the exported calculateFee() function — the exact call the README documents as the headline usage example (`calculateFee(100, 2)`). The decoded commands branch on host OS and fetch attacker binaries from https://www.mythicalsgames.com/files/sean/ (a typosquat of the legitimate mythicalgames.com; the path segment `sean` matches package.json's `author: \"sean\"`): on Windows, PowerShell with `-W Hidden` downloads SvcHostUpdate.exe into the user's Startup folder and runs it (login persistence); on Linux, syslog-service.py is written to ~/.local/share/.syslog, launched with nohup, and registered via `@reboot sleep 30 && /usr/bin/python3...` in the user's crontab (reboot persistence); on macOS, com.microsoft.VSCodeUpdate-darwin-\u003carch\u003e is written to /tmp, chmod +x'd, has its quarantine attribute stripped, and is exec'd. Filenames impersonate trusted OS components (SvcHostUpdate, syslog-service, com.microsoft.VSCodeUpdate) to evade casual process inspection. package.json also declares `\"postinstall\": \"node install.js\"`, but install.js is absent from the tarball — the postinstall is non-functional; the malicious payload triggers on first call to the documented API rather than at install time.\n\n## Source: ghsa-malware (6bc6d78033841d1ed6ecadc0923fba88a44ebc73d9c4c37291f450206e74b846)\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","aliases":["GHSA-3w2v-mxgh-g2fw"],"modified":"2026-06-23T17:16:25.687992016Z","published":"2026-06-22T22:38:59Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-06-22T22:39:03Z","import_time":"2026-06-22T23:03:05.403193627Z","id":"IN-MAL-2026-007186","versions":["1.1.1"],"source":"amazon-inspector","sha256":"0c826bf782895b60580b94e3a28a2c4562d3742420ce81e9895ad8568da57890"},{"modified_time":"2026-06-22T22:39:05Z","sha256":"393a2fb2d3b02d84d2eded361d03545786218cc528ecaf2fb262b33a437f316d","id":"IN-MAL-2026-007188","versions":["1.2.1"],"source":"amazon-inspector","import_time":"2026-06-22T23:03:05.694500763Z"},{"modified_time":"2026-06-22T22:38:59Z","sha256":"3a5fa38818688d34e5acb6b86aaeb0f21bd6b59c041b07a4ce127e741614a3dc","id":"IN-MAL-2026-007185","versions":["1.2.0"],"source":"amazon-inspector","import_time":"2026-06-22T23:03:05.298854393Z"},{"modified_time":"2026-06-22T22:39:09Z","import_time":"2026-06-22T23:03:05.824073272Z","id":"IN-MAL-2026-007189","versions":["1.0.1"],"source":"amazon-inspector","sha256":"e555dd80d83cab8c59d20f560fccf46cab5318375daa5bddc048734551aea076"},{"modified_time":"2026-06-22T22:39:05Z","sha256":"e769ec937876fa5f0440f995245a1e623ac85a17e0e34f5f2e2016020c6807bf","id":"IN-MAL-2026-007187","versions":["1.1.2"],"source":"amazon-inspector","import_time":"2026-06-22T23:03:05.580885811Z"},{"modified_time":"2026-06-23T15:54:53Z","import_time":"2026-06-23T17:03:25.689348126Z","id":"GHSA-3w2v-mxgh-g2fw","source":"ghsa-malware","sha256":"6bc6d78033841d1ed6ecadc0923fba88a44ebc73d9c4c37291f450206e74b846","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/web3-token-helper/v/1.1.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/web3-token-helper/v/1.2.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/web3-token-helper/v/1.2.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/web3-token-helper/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/web3-token-helper/v/1.1.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3w2v-mxgh-g2fw"}],"affected":[{"package":{"name":"web3-token-helper","ecosystem":"npm","purl":"pkg:npm/web3-token-helper"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.1","1.2.1","1.2.0","1.0.1","1.1.2"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/web3-token-helper/MAL-2026-6274.json","indicators":{"evidence_files":[{"sha256":"25073bb06bb20b8a523ea09f8e796fef4a8e792e6d52047e87c72698b6907c76","path":"index.js","tlsh":"4402756972e77220457b5b58f8db880ad618b74751480053f7fd89d22fb206886e3dfc"},{"sha256":"704e32552590f581218301bd8cd87b184a1602da1ef6a9ecb9acb71be142c1ad","path":"package.json","tlsh":"8b017b64da114db316c8feea2c5a418365524c0b4e54bc1c339b829c8f8d23f20fe96d"}],"package_integrity":[{"hashes":{"sha1":"346a1b6d26e05eb9d4c093d94d37808bf8ac0f12","sha512_sri":"sha512-3D9GR39yN6t/HvWx5cx31f1jxSgVmV0aJMHCmLYDbUJh9OhTlcjuLznZsxR+9WK2H1k7KCPH4VBCA84dK0xkYQ=="},"filename":"web3-token-helper-1.1.1.tgz"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}