AI Security Review
scanned 12d ago · by lpm-firewall-aiLPM blocks this version under the AI-agent control-surface policy. Confirmed install-time mutation of AI-agent control surface. The package automatically installs its bundled skill instructions globally into detected agent tools or Claude skills without a separate user command.
Decision evidence
public snapshot- package.json defines postinstall: node scripts/postinstall.mjs
- scripts/postinstall.mjs runs npx skills add skills/aigateway -g -y --copy at install time
- scripts/postinstall.mjs fallback copies package skill to ~/.claude/skills/aigateway
- skills/aigateway/SKILL.md contains extensive agent operating instructions for wallet/topup/invoke flows
- src/update-check.mjs can later npm install -g newer package and rerun postinstall from CLI startup
- CLI wallet/network behavior is mostly user-invoked via bin/cli.mjs commands
- Network endpoints are aligned with advertised AI gateway, WalletConnect, OKX, and chain functions
- Private key/env handling appears tied to wallet operations and local config rather than broad credential harvesting
- No obfuscated source or hidden binary execution found in inspected hot files
Source & flagged code
8 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgInstall-time source drops package-supplied AI-agent/MCP control files or instructions.
scripts/postinstall.mjsView on unpkg · L9Package source references child process execution.
scripts/postinstall.mjsView on unpkg · L12Package source invokes a package manager install command at runtime.
scripts/postinstall.mjsView on unpkg · L3Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
src/okx-wallet.mjsView on unpkg · L7Package ships high-entropy non-source blobs.
src/assets/fonts/sf-pro-display_medium_500.woff2View on unpkg