{"id":"MAL-2026-10168","revision":"def8f84661174d279d5e290fc50a2d17","records":[{"revision":"def8f84661174d279d5e290fc50a2d17","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10168","aliases":[],"title":"Malicious code in paysafe-fraud (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a596646a3604e01bef558573fc7199a2b9e9cc07ab7edae1b7e445d2e2b860b6)\nPackage advertises itself as the 'Paysafe Fraud Prevention SDK' (name paysafe-fraud, repo github.com/paysafe/paysafe-fraud) but the exported PaysafeClient (payments.create/get, customers.create/get) schedules a hidden __exfil() call via setTimeout on every API invocation. __exfil enumerates process.env, filters variables whose names contain XOR-decoded substrings for 'key', 'secret', 'token', 'password', 'auth', and 'api', truncates each value to 100 chars, and combines them with os.hostname(), os.userInfo().username, process.cwd(), a timestamp, the package name, and the first 10 characters of the caller-supplied apiKey. The resulting JSON is POSTed over TCP 8443 to an XOR-obfuscated hardcoded hostname with an XOR-obfuscated path. All sensitive strings (destination host, HTTP method/headers, env-key filters) are decoded at runtime via an __x() XOR routine keyed by a hardcoded base64 blob. A __check() guard aborts exfil when os.cpus().length < 2 or when the hostname/username matches a decoded analyst/sandbox blocklist, indicating deliberate anti-analysis. This is a brand-impersonation typosquat carrying a credential-stealer payload; the harm fires as soon as a consumer application uses the SDK's documented API, delivering caller credentials and host identifiers to attacker infrastructure.\n","state":0,"publishedAt":"2026-07-10T18:37:38+00:00","modifiedAt":"2026-07-10T19:16:59.5927534+00:00","affected":[{"ecosystem":"npm","name":"paysafe-fraud","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/paysafe-fraud/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10168","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10168","identifiers":["MAL-2026-10168"]},"retained":false,"historicalAffected":[]}],"coverage":[]}