MAL-2026-5450Malicious code in o3forms (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
90.0.0 | unavailable | — | — | — |
99.1.99 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | o3forms | * |
| npm | o3forms | 90.0.0 |
| npm | o3forms | 99.1.99 |
{"schema_version":"1.7.4","id":"MAL-2026-5450","published":"2026-06-09T17:34:41Z","modified":"2026-08-20T16:27:29.345872380Z","aliases":["GHSA-gp6v-h28c-4fxf"],"summary":"Malicious code in o3forms (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4d094d4429f1492bb6b99d802de86b97dc972e06d680a1287846e6d1635fe457)\nThe package name impersonates the OpenMRS O3 forms ecosystem (legitimate packages are published under the @openmrs/ scope). package.json declares an optionalDependency `o3forms-utils` resolved as `github:core-modules-lab/o3forms-utils#76c1c55` — code fetched directly from GitHub, outside npm registry scanning. index.js (lines 1-4) wraps `require('o3forms-utils')` in a try/catch that silently swallows errors, so the off-registry payload executes on every consumer import with no visible failure if anything goes wrong. The package.json `bin` field maps 11 ubiquitous dev-tool names (webpack, vite, eslint, tsc, next, jest, prettier, nodemon, turbo, ts-node, webpack-cli) all to index.js, so any hoisted invocation of those commands (e.g. `npx webpack`) launches this package's loader and triggers the GitHub fetch+execute. Additional attacker-hygiene tells: version 99.1.99 (version-squat to outrank legitimate releases), `config.unsafe-perm: true` to keep root during npm scripts, and a placeholder `OpenMRS Community Contributor` author with no homepage. Installing or loading this package — or running any of the hijacked dev-tool commands in a project where it is hoisted — executes attacker-controlled code from a mutable GitHub commit.\n\n## Source: ghsa-malware (3e796b9c6466d2c972373d9960dbe289662608dd691a226d69b2162e6d877380)\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":"o3forms","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["99.1.99","90.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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"fa22f3441eccdc1077f1496a975a4016731d55b4e2937409d73596889d702829","tlsh":"0911ce33d1a61d230278da51ea9a0e22b1d35b3f20200c0bb67d216e8ff356650deb59"}],"package_integrity":[{"filename":"o3forms-99.1.99.tgz","hashes":{"sha1":"8365056056d01f6902973f909a52e564f267e19c","sha512_sri":"sha512-uJ5qcU+zIEXSwB7FYfb8ULXqhOyz33o8Ezs8T0TYF22l39rVg9eUOPxoktOgrsJqkJaheQhoF9AZ7UP5IHqBwg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/o3forms/v/99.1.99"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/o3forms/v/90.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gp6v-h28c-4fxf"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-005065","import_time":"2026-06-09T17:45:52.260114791Z","modified_time":"2026-06-09T17:34:41Z","sha256":"4d094d4429f1492bb6b99d802de86b97dc972e06d680a1287846e6d1635fe457","source":"amazon-inspector","versions":["99.1.99"]},{"id":"IN-MAL-2026-005159","import_time":"2026-06-09T18:50:21.087344728Z","modified_time":"2026-06-09T17:57:53Z","sha256":"aacfdf714651bb7a6ab33cec3a675e5031157ce336db3f60a800bd7dc0ae5daf","source":"amazon-inspector","versions":["90.0.0"]},{"id":"GHSA-gp6v-h28c-4fxf","import_time":"2026-08-20T16:25:42.691900452Z","modified_time":"2026-08-20T16:23:32Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3e796b9c6466d2c972373d9960dbe289662608dd691a226d69b2162e6d877380","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0