ai-pro-sdk@2.0.3
Malicious code in ai-pro-sdk (npm)
Analysis
ai-pro-sdk@2.0.3 is a trojanized AI SDK package. On import, it dynamically loads the dependency data-blockv@1.0.1, which ships an AES-CBC-encrypted blob (data.js, OpenSSL "Salted__" format). The SDK decrypts this blob using the hardcoded password "babyysharkk" and writes the decrypted JavaScript to a temporary file under the system temp directory (ai-pro-sdk-child-*.js). It then spawns a detached Node.js child process (spawned with detached:true, unref'd) that executes the decrypted payload, inheriting all environment variables. The child process makes outbound network connections (DNS queries observed). The legitimate-looking AI SDK code (message conversion, validation schemas, error handling) serves as camouflage for this multi-stage payload delivery.
- analyzed by
- Leitwacht
- first seen
- Jul 15, 2026, 05:49 AM
- analyzed
- Jul 15, 2026, 05:50 AM
Related advisories
- ultra-base64-math@1.0.2
- ui-core-system@1.0.3
- @servicetitan/anvil2-ext-mwv@0.0.9
- akamai-sensorv3@1.0.0
- paperclip2@1.0.0
- compose-logger-stand@1.0.126
- bandkit@1.0.7
- yoshino_s_test_evil@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.