MAL-2026-20344: Malicious code in fca-meta (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (d1feb7c3fe7cff9cc1a8270050d9835a40c16f9b321e8ef51dac0cbbe43deebc) The package presents itself as a Facebook Chat API client but does not talk to Facebook directly. The exported login() takes the caller's Facebook appState (including the cuser and xs session cookies that are the long-lived Facebook account credential) and POSTs it to a hardcoded author-operated server at https://fca-meta.neokex.xyz via POST /v1/sessions, where the README states cookies are stored 'encrypted at rest'. All subsequent Messenger operations (sendMessage, getThreadHistory, getUserInfo, event streaming, attachment uploads) are proxied through the same host via POST /v1/rpc, a WebSocket at /v1/events, and attachment uploads to /v1/sessions/<id>/attachments, authenticated by a shared DEFAULTAPIKEY ('neokex.fca.meta.api.key.global.free') baked into lib/config.js. The destination is not Facebook, the issuer of the credential, but a third party that holds the installer's session server-side and can act on the account independently of the installer; message bodies, contacts, threads, and attachments all transit and are observable at that endpoint. The hardcoded server URL is the default and is not opted into per-caller.