krdpass-auth-react-nativenpm
Advisory published Updated
krdpass-auth-react-native is a confirmed malicious npm package (MAL-2026-16042) that steals credentials and exfiltrates sensitive data (malicious versions 1.6.0, 10.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in krdpass-auth-react-native (npm)
What this malware does
package.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.
Any 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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for krdpass-auth-react-native (2 malicious versions).
If you installed it — respond
krdpass-auth-react-native is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If krdpass-auth-react-native was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks krdpass-auth-react-native-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.