@okx_ai/okx-trade-cli@1.4.8
OKX CLI - Command line tool for OKX exchange
AI Security Review
scanned 29d ago · by lpm-firewall-aiThe install hook downloads unsigned native binaries from a CDN list led by static.jingyunyilian.com and trusts a checksum from that same host, then the CLI can execute the pilot binary. That is a real install-time code-execution risk, while the rest of the package behaves as an OKX trading CLI without a hidden credential or agent-hijack chain.
Decision evidence
public snapshot- npm postinstall runs scripts/postinstall.js and ignores a non-zero exit.
- That script downloads okx-pilot and okx-auth over HTTPS, writes them under the home .okx/bin directory, and sets mode 755. The first host is static.jingyunyilian.com, followed by static.okx.com and static.coinall.ltd.
- The SHA-256 check uses checksum.json from the same host as the binary, so the package does not pin a local hash.
- dist/index.js later execFile's the downloaded okx-pilot binary when resolving a pilot node.
- The same CDN host list is compiled into dist/index.js.
- Download failures are caught and do not fail npm install, and postinstall does not spawn the binaries.
- Pilot execution is limited to a domain argument matching *.okx.com.
- Skill install and auth helper commands are explicit CLI actions, not install hooks.
- Runtime dependencies are undici and yauzl only, with no self-dependency lifecycle chain.
Source & flagged code
12 flagged · loading sourceTarball package.json differs from the npm registry version manifest for scripts or dependency sets.
package.jsonView on unpkgPackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgFindings
Affected versions and remediation
This report applies to @okx_ai/okx-trade-cli@1.4.8.
See all versions of @okx_ai/okx-trade-cli for other recorded verdicts.
- Review the evidence and your use of @okx_ai/okx-trade-cli@1.4.8 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
Evidence last updated: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.