AI Security Review
scanned 2h ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. Installation silently provisions LeafCLI skill content into Claude Desktop and TRAE IDE directories. This is a first-party AI-extension lifecycle mutation, not a confirmed payload or data-exfiltration chain.
Decision evidence
public snapshot- `package.json` runs `scripts/postinstall.js` on install.
- `scripts/postinstall.js` creates `~/.claude/.../plugins/leafcli` and copies package skills without prompting.
- `scripts/postinstall.js` also creates `~/.trae-cn/builtin_skills/leafcli-*` during installation.
- `dist/src/external.js` can install and execute registered external CLIs only through runtime user commands.
- Postinstall is local filesystem setup; it has no network or subprocess execution.
- AI-tool writes are limited to named LeafCLI-owned directories and copy packaged skills only when absent.
- No credential harvesting, secret reads, exfiltration, remote payload loading, or destructive behavior was found in inspected files.
- `dist/src/update-check.js` contacts only the npm registry and GitHub for version notices during CLI runtime, not installation.
Source & flagged code
9 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 unpkgPackage source references child process execution.
dist/src/external.jsView on unpkg · L4Package source references a known benign dynamic code generation pattern.
dist/src/browser/article-extract.jsView on unpkg · L108Package source references dynamic require/import behavior.
dist/src/discovery.jsView on unpkg · L180Package source references weak cryptographic algorithms.
clis/flomo/memos.jsView on unpkg · L76Install-time source drops package-supplied AI-agent/MCP control files or instructions.
scripts/postinstall.jsView on unpkg · L6Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/src/cli.jsView on unpkg · L99