@xyroorynzz/ocrk@1.0.4
Malicious code in @xyroorynzz/ocrk (npm)
Analysis
@xyroorynzz/ocrk is a trojanized package disguised as an OCR library that intercepts WhatsApp Web pairing credentials. On require(), the package monkey-patches the @whiskeysockets/baileys library's makeWASocket function, replacing requestPairingCode to intercept phone numbers. Each intercepted phone number is hashed (SHA-256 of MD5) and validated against a remote registry fetched from pastebin[.]com/raw/wh34RDBe (token) and api[.]github[.]com/repos/xyroorynzz/Alice/contents/Alicesv2.json (registry data). Phone numbers not matching the registry trigger process.exit(1), blocking the WhatsApp connection. The package imports OCR modules (tesseract.js, pdf-lib, sharp) that are not declared as dependencies — the OCR functionality is a decoy. IOCs: pastebin[.]com/raw/wh34RDBe, api[.]github[.]com/repos/xyroorynzz/Alice/contents/Alicesv2.json
- analyzed by
- Leitwacht
- first seen
- Jun 19, 2026, 04:39 AM
- analyzed
- Jun 19, 2026, 04:40 AM
Related advisories
- eslint-helper-1@5.0.4
- new-solt-1@0.0.9
- new-solt@0.0.7
- eslint-helper@4.0.1
- node-vfs-polyfill@2.0.5
- mjs-eslint-helper@4.0.1
- server-parket@3.8.1
- env-config-f281@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.