{"id":"MAL-2026-20277","summary":"Malicious code in @awazevr/mfe-common.contexts.guest-auth (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e2e3bcba4ce94634e40d0c13a284e37e60b2edf4c84479e4e8aa7347a417bc26)\nPackage @awazevr/mfe-common.contexts.guest-auth publishes to the unregistered public-registry scope @awazevr, which is used by a third-party organization for private internal packages. The package.json declares a postinstall script that executes shell commands (whoami, hostname) on every install, prefixed with an echoed banner identifying the artifact as a dependency-confusion proof-of-concept. Any build system that resolves this scope from the public npm registry (for example, a CI job misconfigured to fetch an internal @awazevr dependency without a scoped-registry pin) auto-executes the author's shell code on install. The current payload only prints local host identifiers rather than exfiltrating or fetching remote code, but the install-time arbitrary command execution path and the scope-shadowing mechanism are fully functional, and the same vector delivers whatever commands subsequent versions place in the postinstall script. Self-identification as bug-bounty research does not change the installer-facing behavior: the lifecycle hook runs attacker-authored commands on the installer host.\n","modified":"2026-11-20T02:30:08.615085007Z","published":"2026-11-20T02:14:27Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-20T02:16:23.215117602Z","modified_time":"2026-11-20T02:14:27Z","sha256":"e2e3bcba4ce94634e40d0c13a284e37e60b2edf4c84479e4e8aa7347a417bc26","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-022922"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@awazevr/mfe-common.contexts.guest-auth/v/1.0.0"}],"affected":[{"package":{"name":"@awazevr/mfe-common.contexts.guest-auth","ecosystem":"npm","purl":"pkg:npm/%40awazevr/mfe-common.contexts.guest-auth"},"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"}],"indicators":{"evidence_files":[{"sha256":"6f15bcbbbd961c0b0547e501823a7b63aea746d3f24ce4ced9a5a468f5624e78","tlsh":"a3f0dc6928306a3324efc157063ac0d77920d9ab0011790c01ef76ac82d93b30bbe29a","path":"package.json"}],"package_integrity":[{"filename":"mfe-common.contexts.guest-auth-1.0.0.tgz","hashes":{"sha1":"ecfac3eaad3ff04867ee7a36cc33099337d878c7","sha512_sri":"sha512-ea0cMCtINJCoybcDjErBr8EQC398lIzWpoJ6r9kTexjF6whjl04viJkC9giEhnDN6ZA9ViAfDQSpRg/adNO4VQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@awazevr/mfe-common.contexts.guest-auth/MAL-2026-20277.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}