{"id":"MAL-2026-16042","summary":"Malicious code in krdpass-auth-react-native (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3a74ab9e45d4f67b40e21dc7491aff1979b4bf79be24bc49b8588916c18b847f)\npackage.json declares a preinstall script (preinstall.js) that runs automatically on `npm install`. The script collects os.hostname(), os.userInfo(), homedir, internal IP addresses, CI/repository identifiers (GITHUB_REPOSITORY, CI_PROJECT_PATH, JENKINS_URL, etc.), parent package.json metadata, and enumerates process.env keys matching /(TOKEN|KEY|SECRET|PASS|AUTH|CRED|AWS|AZURE|GCP|NPM|GITHUB|GITLAB|API)/i, then POSTs the payload to a hardcoded anonymous collector at https://webhook.site/5ba4d4a7-b977-4bb8-b26e-517b46271316. Bulk env-name enumeration and internal-network / CI-identifier collection are outside any documented purpose of a React Native auth library and disclose to a remote party which credentials exist on the installer or CI runner and how the host is situated. The manifest additionally lists the package's own name (krdpass-auth-react-native ^1.6.0) as one of its dependencies, causing npm to resolve and execute the lifecycle hooks of future self-published versions during install.\n\n## Source: ghsa-malware (802615c8d05ade7426df3338956dc9f1e50c4bfdbb4890b873a978859fa2a537)\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-3j7p-44mj-76hx"],"modified":"2026-09-08T19:30:04.619647220Z","published":"2026-09-08T03:46:25Z","database_specific":{"malicious-packages-origins":[{"sha256":"802615c8d05ade7426df3338956dc9f1e50c4bfdbb4890b873a978859fa2a537","source":"ghsa-malware","id":"GHSA-3j7p-44mj-76hx","import_time":"2026-09-08T04:29:32.221195019Z","modified_time":"2026-09-08T03:46:26Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"sha256":"2342fa8a50c80f4dbcfa21d6c3aebe67b86406b3b80c3fb674d81ac1c723466b","source":"amazon-inspector","versions":["10.0.0"],"id":"IN-MAL-2026-019661","import_time":"2026-09-08T19:15:03.416686755Z","modified_time":"2026-09-08T19:05:21Z"},{"id":"IN-MAL-2026-019666","import_time":"2026-09-08T19:15:03.672846438Z","modified_time":"2026-09-08T19:06:06Z","sha256":"3a74ab9e45d4f67b40e21dc7491aff1979b4bf79be24bc49b8588916c18b847f","source":"amazon-inspector","versions":["1.6.0"]}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3j7p-44mj-76hx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/krdpass-auth-react-native/v/10.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/krdpass-auth-react-native/v/1.6.0"}],"affected":[{"package":{"name":"krdpass-auth-react-native","ecosystem":"npm","purl":"pkg:npm/krdpass-auth-react-native"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["10.0.0","1.6.0"],"database_specific":{"cwes":[{"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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/krdpass-auth-react-native/MAL-2026-16042.json","indicators":{"evidence_files":[{"path":"preinstall.js","sha256":"dc3bed0fd7793fb216cdddfddb03ac3679f3f3bc384af5a619372ca4af34fd47","tlsh":"a74162c161eb722146e675a03863a402b2fbe411311ef5d0af9887342fef6715176aae"},{"path":"package.json","sha256":"3e5acf38ca52fa688143bdd64ee8fe20c0a5d4164b6566f0a0ff03933b1b0b0c","tlsh":"4de06835491098235ec907a058b2b845b055480f904cec0847d3052c92ce7af02bf23e"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}