{"id":"MAL-2026-6956","summary":"Malicious code in rio-design-tokens (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ed72d8256a1831ef61f01d101c9b9de21db822516cb3b61d1fffd1ef7b3bb0c7)\nrio-design-tokens@99.99.100 is a dependency-confusion attack package. package.json declares `preinstall: node index.js`, so `npm install` auto-executes index.js, which harvests installer secrets and system data and POSTs them to an attacker-controlled oastify.com (Burp Collaborator) subdomain. Specifically, index.js collects `os.hostname()`, `os.userInfo()`, output of `whoami`/`id`/`pwd` (via `execSync` with curl and other commands), the contents of `~/.npmrc` and `~/.yarnrc` (which contain npm auth tokens), `package-lock.json`, `yarn.lock`, `/etc/os-release`, `/etc/hosts`, probes AWS IMDS, and reads a targeted env-var list including `NPM_TOKEN`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`, `GITHUB_TOKEN`, `GITLAB_CI`, and `CODEARTIFACT_AUTH_TOKEN`, then sends the aggregated payload via `https.request(... POST)` to `7v343wmb7yqwapwew87n2p4stjzbn4bt.oastify.com`. The package's own metadata self-identifies as \"Dependency Confusion POC\" with version 99.99.100 and author \"YourName\" — the canonical shape of a public-registry package intended to shadow a private internal package name during resolution. Installing this package on a developer workstation, CI runner, or build system will exfiltrate registry auth tokens, cloud credentials, and CI secrets to an external collaborator host.\n\n## Source: ghsa-malware (f953c7dfe25e2d7da488167fee4e47d465f58bb2e45a0e52ccdba8f0ae267109)\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\n## Source: ossf-package-analysis (e83e18c7c88cb4c0e488342a49e4d0733087fa7e7ea7e833f1fbb6e8fbf5a35e)\nThe OpenSSF Package Analysis project identified 'rio-design-tokens' @ 99.99.100 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-53fp-9cgx-r5rg"],"modified":"2026-07-09T16:32:01.312818043Z","published":"2026-07-08T00:20:08Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-08T00:20:08Z","versions":["99.99.100"],"source":"ossf-package-analysis","sha256":"e83e18c7c88cb4c0e488342a49e4d0733087fa7e7ea7e833f1fbb6e8fbf5a35e","import_time":"2026-07-08T00:40:33.526824943Z"},{"id":"GHSA-53fp-9cgx-r5rg","modified_time":"2026-07-09T12:34:30Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"ghsa-malware","sha256":"f953c7dfe25e2d7da488167fee4e47d465f58bb2e45a0e52ccdba8f0ae267109","import_time":"2026-07-09T13:22:08.517000149Z"},{"versions":["99.99.99"],"source":"amazon-inspector","sha256":"089069734ecd333dcf73b5549ed0aeb3dc6f1d882b2df64583e9bd6360d75c3d","import_time":"2026-07-09T16:20:53.738979499Z","id":"IN-MAL-2026-009241","modified_time":"2026-07-09T15:48:45Z"},{"import_time":"2026-07-09T16:20:41.432429632Z","id":"IN-MAL-2026-009108","modified_time":"2026-07-09T15:29:27Z","versions":["99.99.100"],"source":"amazon-inspector","sha256":"ed72d8256a1831ef61f01d101c9b9de21db822516cb3b61d1fffd1ef7b3bb0c7"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-53fp-9cgx-r5rg"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/rio-design-tokens/v/99.99.99"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/rio-design-tokens/v/99.99.100"}],"affected":[{"package":{"name":"rio-design-tokens","ecosystem":"npm","purl":"pkg:npm/rio-design-tokens"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["99.99.100","99.99.99"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"d198de816e8b116f0e5bfe0cb3970cc883725b8700681de1e724f6ee6d3d60e5","tlsh":"f411ebe481e237741eba89c47494d41816bbe730710aade8f5ce03d157caab420b29f6"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/rio-design-tokens/MAL-2026-6956.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}