{"id":"MAL-2026-20341","summary":"Malicious code in neokex-fca (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (40212ce7ca821c2edd2fe0506fb849b9a0a0da0e79cd37310673630e286487b0)\nPackage presents itself as a drop-in replacement for the classic Facebook Chat API (FCA) / GoatBot engine, which normally communicates directly with facebook.com. Instead, the caller's full Facebook session cookies (c_user, xs, and the rest of the appState array) passed to login() are POSTed to a hardcoded, author-controlled endpoint at https://fca.neokex.xyz/v1/sessions (DEFAULT_SERVER_URL). Every exported Messenger operation (sendMessage, listenMqtt, uploadAttachment, httpGet/httpPost, etc.) is dispatched as JSON-RPC to /v1/rpc on the same host, and realtime events are received over wss://fca.neokex.xyz/v1/events, keyed by a hardcoded API key 'neokex-fca-global-free-2026'. The destination is not Facebook and is not caller-configurable in any documented way; session cookies that grant full account takeover of the user's Facebook/Messenger identity, together with all message content, attachments, and thread metadata, are shipped to and proxied by third-party infrastructure under the cover story of 1:1 FCA compatibility. This is credential theft and silent relay of caller-supplied Facebook credentials and message payloads to a non-issuing, author-controlled host.\n","modified":"2026-11-23T06:30:05.128547755Z","published":"2026-11-23T06:00:46Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-11-23T06:00:46Z","sha256":"40212ce7ca821c2edd2fe0506fb849b9a0a0da0e79cd37310673630e286487b0","source":"amazon-inspector","versions":["5.0.5"],"id":"IN-MAL-2026-023039","import_time":"2026-11-23T06:27:44.44404548Z"},{"versions":["5.0.6"],"id":"IN-MAL-2026-023040","import_time":"2026-11-23T06:27:44.579023131Z","modified_time":"2026-11-23T06:00:54Z","sha256":"76af539e23055640cc5b80d4896d925dc0bc8bb9f8abb6d166d66acdc7dab1e9","source":"amazon-inspector"},{"import_time":"2026-11-23T06:27:44.677871494Z","modified_time":"2026-11-23T06:01:01Z","sha256":"4f4d9337062ac8186d4dd27acbd6e5b6752a3bf5af38f0e833a0187f5990779e","source":"amazon-inspector","versions":["5.0.4"],"id":"IN-MAL-2026-023041"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/neokex-fca/v/5.0.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/neokex-fca/v/5.0.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/neokex-fca/v/5.0.4"}],"affected":[{"package":{"name":"neokex-fca","ecosystem":"npm","purl":"pkg:npm/neokex-fca"},"versions":["5.0.5","5.0.6","5.0.4"],"database_specific":{"indicators":{"evidence_files":[{"path":"lib/config.js","sha256":"714b61383a78baea5d54f6edd6afc16cfd38b98dc72743d125db5f0e6095ae69","tlsh":"9e21fe19a39e171009833fc1d779904337bff20a558ab1847a6d82c52f64a2ba3c7e88"},{"tlsh":"2732a98539b322374ab3b1b6ae5f9144b73690033564cc58bd9c8344af4587cdba6fe8","path":"lib/transport.js","sha256":"a5064f5884e50751255f015cff96b85206a703846e50cdac88c8f4c2ee2a9559"}],"package_integrity":[{"hashes":{"sha1":"12ab1c6a2d58118dd37de8a1027d4088d970a90d","sha512_sri":"sha512-iOEbhG/PSEJBfCpvexlLMrjjBMbfeMHrPNMHlAlTpp3DgVG7wmOnCL22ZMmhNKDtApfYOBRZ4cuAdK5w87OLCA=="},"filename":"neokex-fca-5.0.5.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/neokex-fca/MAL-2026-20341.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}