ozturk-mfa@1.0.3
Malicious code in ozturk-mfa (npm)
Analysis
The package masquerades as a zero-dependency Discord MFA/TOTP authentication library (keywords discord, mfa, totp, 2fa, vanity) but its main entry index.js is a ~974KB heavily obfuscated, self-decrypting payload that runs when the module is imported (no install hook). At load it uses Node crypto to AES-decrypt a large embedded ciphertext blob with a hardcoded key assembled from hex chunks (fce4c51797bf88de61f2f19563d57204e97b153acf138d181a21de2b7ef3425d) and IV 9f7895b16ac2c70baee2ea42, then executes the decrypted code; the source is additionally escape-encoded (method names wrapped in \x escapes) to evade literal-string detection. The Discord-auth disguise plus packed/encrypted runtime-executed payload is consistent with a Discord token grabber. The final C2/webhook is contained inside the encrypted blob and is not recoverable in plaintext, so only the decryption key and IV are provided as IOCs.
- analyzed by
- Leitwacht
- first seen
- Jun 12, 2026, 12:00 AM
- analyzed
- Jun 12, 2026, 12:01 AM
Related advisories
- ozturk-mfa@1.0.0 same package
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.