Skip to main content

Malicious code in passkeys-react (npm)

0
Critical
Published: 08/12/2026 (08/12/2026, 15:41:43 UTC)
Source: GCVE Database
Product: passkeys-react

Description

The npm package passkeys-react version 1.0.1 contains malicious code that executes automatically during installation. It collects sensitive system information including hostname, username, home directory, DNS servers, current working directory, and contents of /etc/passwd and /etc/hosts. This data is exfiltrated via HTTPS to a hardcoded external server. The package's legitimate purpose does not require such data collection, indicating malicious intent. Systems with this package installed should be considered fully compromised.

Affected software

npmghsa
passkeys-react
Affected versions
=1.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/08/2026, 05:25:04 UTC

Technical Analysis

The passkeys-react npm package version 1.0.1 declares a preinstall hook in its package.json that runs a script (index.js) on installation. This script performs host reconnaissance by gathering sensitive system information such as hostname, username, home directory, DNS servers, current working directory, and the contents of /etc/passwd and /etc/hosts. It then exfiltrates this data over HTTPS to a hardcoded subdomain associated with an out-of-band interaction service (OAST). This behavior is inconsistent with the package's stated purpose as a passkeys React helper, indicating malicious activity. The package compromises the host system upon installation and may allow an attacker full control.

Potential Impact

Any computer with passkeys-react version 1.0.1 installed is considered fully compromised. The attacker may have obtained sensitive system information and potentially full control over the system. All secrets and keys stored on the compromised computer should be considered exposed and must be rotated immediately from a different, trusted machine. Removal of the package alone does not guarantee eradication of all malicious software or backdoors introduced by the compromise.

Defensive Guidance

Remove the passkeys-react package version 1.0.1 immediately from affected systems. Rotate all secrets, keys, and credentials that were stored on the compromised machine using a separate, trusted device. Because the system may be fully compromised, consider rebuilding or restoring the system from a known good backup. There is no official patch or fix available; the package itself is malicious. Avoid installing this package and monitor for any signs of compromise related to it.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-13922
Osv Schema Version
1.7.4
Aliases
["GHSA-j5q8-gq2c-63vq"]
Ecosystems
["npm"]

Threat ID: 6a9f9110acd9273b49ff2ac5

Added to database: 09/08/2026, 04:37:36 UTC

Last enriched: 09/08/2026, 05:25:04 UTC

Last updated: 10/04/2026, 07:00:44 UTC

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses