ai-pro-sdk
AI SDK v7 provider for Claude via Claude Agent SDK (use Pro/Max subscription)
This report shows the evidence for ai-pro-sdk@2.0.4. 4 of 5 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is a concrete concealed import-time arbitrary-code execution chain, not a package-aligned SDK feature. The detached process and inherited environment materially increase impact.
Decision evidence
public snapshot- `dist/index.js` runs an async IIFE immediately on module import.
- It dynamically imports `data-blockv`, DES-decrypts its value with an embedded password, and treats it as JavaScript.
- The decrypted content is written to a temporary `.js` file and executed with `spawn(process.execPath, [tmpPath])`.
- The child is detached with `unref()` and receives the full `process.env`, enabling hidden background execution with inherited secrets.
- `package.json` declares `data-blockv` solely as a runtime dependency supporting the concealed payload chain.
- `package.json` has only a `prepare` hook, whose build command only prints a message.
- No concrete network endpoint is visible in the package source; the opaque decrypted payload is the execution vector.
Source & flagged code
1 flagged · loading sourceSource fingerprint signature matches a known malicious package signature; route for source-aware review.
dist/index.jsView on unpkgFindings
Affected versions and remediation
This report applies to ai-pro-sdk@2.0.4.
The versions list below shows the verdict for each recorded version.
- Avoid installing ai-pro-sdk@2.0.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.