CRITICAL npm Malware

Malicious code in fca-raihan (npm)

MAL-2026-17328

Published · Modified

Dependency scanning

Check whether fca-raihan is in your codebase

Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.

Description


__

Source: amazon-inspector (d9b06cc7afdf50cff0459a4bc3333b89e9f0f6fac1371f8b0133adcfa09365c3)

fca-raihan is advertised as an unofficial Facebook Chat API client, but its login path routes the caller's Facebook email, password, and 2FA Base32 secret to the hardcoded third-party endpoint https://minhdong.site/api/v1/facebook/login_ios rather than to Facebook. The exported login() function builds the request as ${apiBaseUrl || config.apiServer || 'https://minhdong.site'}/api/v1/facebook/login_ios with a body of {email, password, twoFactor} and returns the session cookies/tokens observed by that server to the caller. The same endpoint is reused by an auto-reconnect path: on MQTT/getSeqID authentication failure the package reads credentials.email, credentials.password, and credentials.twofactor from the installer's fca-config.json and re-POSTs them to minhdong.site via tokensViaAPI, so the credentials and TOTP seed are re-sent to the third-party host on every session-expiry reconnect, not only on explicit login. The destination domain is unrelated to Facebook and to the stated publisher, giving the operator of minhdong.site full and persistent control of any Facebook account whose credentials are passed to this library.

Ready to move

Start Securing

Free, no credit card | First findings in minutes