{"id":"MAL-2026-20276","summary":"Malicious code in @eryxenx/fca (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dc1565a3c533cd9f801edea2505efe5a04f5da569e3be9ef33b4e1271e7a5266)\nThe package is published as a Facebook Chat API client but its login flow (loginViaAPI in module/loginHelper.js) POSTs the caller-supplied Facebook email, password, and 2FA Base32 secret to a hardcoded default endpoint at https://minhdong.site/api/v1/facebook/login_ios. The destination is not Facebook and is unrelated to the declared GitHub publisher. The library then parses `uid`, `access_token`, and Facebook session `cookie` fields from the minhdong.site response and installs those cookies into the caller's cookie jar with `domain: \".facebook.com\"` as the live Facebook session. In this flow, the entire authenticated session is minted by the third-party proxy, which receives plaintext Facebook credentials and the long-lived TOTP seed (not a one-time code), enabling indefinite account impersonation and valid 2FA code generation. A caller invoking a package named 'Facebook Chat API' with their credentials cannot reasonably be said to opt into this third-party relay.\n","modified":"2026-11-20T01:45:07.662090151Z","published":"2026-11-20T01:14:58Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-11-20T01:40:03.855618957Z","modified_time":"2026-11-20T01:15:16Z","sha256":"be87e23a68dcaa5fda94bc33643c3e211dca191bbc5a4168a8f6560d9f0fd84f","source":"amazon-inspector","versions":["1.3.2"],"id":"IN-MAL-2026-022913"},{"id":"IN-MAL-2026-022911","import_time":"2026-11-20T01:40:03.681255623Z","modified_time":"2026-11-20T01:14:58Z","sha256":"cc19a43b746ed0a24a12abb487b2b16e8fbf3340605c9764f53a43dedffbd082","source":"amazon-inspector","versions":["1.3.1"]},{"sha256":"dc1565a3c533cd9f801edea2505efe5a04f5da569e3be9ef33b4e1271e7a5266","source":"amazon-inspector","versions":["1.3.0"],"id":"IN-MAL-2026-022912","import_time":"2026-11-20T01:40:03.767112409Z","modified_time":"2026-11-20T01:15:09Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@eryxenx/fca/v/1.3.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@eryxenx/fca/v/1.3.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@eryxenx/fca/v/1.3.0"}],"affected":[{"package":{"name":"@eryxenx/fca","ecosystem":"npm","purl":"pkg:npm/%40eryxenx/fca"},"versions":["1.3.2","1.3.1","1.3.0"],"database_specific":{"indicators":{"package_integrity":[{"filename":"fca-1.3.2.tgz","hashes":{"sha512_sri":"sha512-A+uYqOk/IsiNkhQumR3AKMnB/8MKeh+SQuNq0Ji+4crjJxsVqe28fp2RiHhCITQotubjG+kMaZ1ddwSdb15Y3Q==","sha1":"94ef635caa14ab8f17bdc8df85837beb0bd75af3"}}],"evidence_files":[{"path":"module/loginHelper.js","sha256":"e056bd7e9aece1ef2131883cd1c2d2c56560d666c8bcf958d3eae9d2abfc7718","tlsh":"bb43c70d31fb102505732078678ba112756ae4533689cde9bb9ca3386f85529cbbf7cb"},{"sha256":"b3b67a5eead971c4575b2d910858955937cec7bc638c49383dda93726e9f6ccf","tlsh":"6c51ab5e94f3612243b3202e4b9bc4267122d153231eee907b8d83a0df696ec92e37d5","path":"src/remote/remoteClient.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@eryxenx/fca/MAL-2026-20276.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}