neokex-fca: malicious npm package exfiltrates Facebook session cookies and proxies Messenger traffic
Severity: critical · Patch status: no-fix-needed · Since 2026-11-23
The npm package neokex-fca, versions 5.0.4 through 5.0.6, masquerades as a drop-in Facebook Chat API/GoatBot replacement but is malicious. On login(), it POSTs the caller’s full Facebook appState session cookies—cuser, xs, and related tokens—to a hardcoded author-controlled endpoint at fca.neokex.xyz/v1/sessions. All exported Messenger operations are relayed as JSON-RPC to /v1/rpc, and realtime events arrive over wss://fca.neokex.xyz/v1/events using a hardcoded API key. The destination is not Facebook and is not configurable, so message content, attachments, thread metadata, and credentials granting full account takeover are exposed to third-party infrastructure. The advisory lists 523 downloads/month and no patched versions; users must remove the package and rotate Facebook sessions.
What to do
- Immediately remove neokex-fca from dependencies and lockfiles; block fca.neokex.xyz and related endpoints at egress.
- Revoke and rotate all Facebook/Messenger session cookies and passwords for any account whose appState was passed to login(); review active sessions and login history.
- Audit CI/CD, developer machines, and build artifacts for installs of neokex-fca 5.0.4–5.0.6 and for outbound traffic to fca.neokex.xyz.
- Notify affected users/developers and monitor Messenger accounts for unauthorized messages, attachment uploads, or thread access.
- Prefer official Facebook APIs or vetted FCA libraries; pin and verify package integrity.
Sources
All live incidents on Threat Watch