AI Security Review
scanned 7d ago · by lpm-firewall-aiNo confirmed malicious attack surface by static inspection. The package is a telemetry/session-tracking CLI with explicit user-invoked hooks, proxy, and worker installation capabilities aligned with its stated RuleMetric functionality.
Decision evidence
public snapshot- dist/chunk-ANOWI23I.js writes Claude/Cursor/Copilot/Antigravity hook configs that run rulemetric hooks
- dist/commands/hooks/install.js can configure HTTPS_PROXY, trust mitmproxy CA, and start a local gateway
- dist/commands/proxy/setup.js can install mitmproxy via pipx/uv/pip/brew when user runs setup
- dist/commands/service/install.js creates launchd/systemd worker persistence when user runs service install
- dist/chunk-CWFVBGX2.js sends authenticated API requests using RULEMETRIC tokens
- package.json has no install/preinstall/postinstall lifecycle scripts
- bin/run.js only dispatches oclif; no observed install-time execution
- Dangerous commands are gated behind explicit CLI commands such as setup/hooks install/proxy setup/service install
- Secrets are read from RuleMetric config and used as Authorization headers to configured RuleMetric API, not broad credential harvesting
- Network defaults are package-aligned: https://rulemetric.com for version check and configurable/localhost API
Source & flagged code
7 flagged · loading sourceThis package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/chunk-346TGPVR.jsView on unpkgPackage source references child process execution.
dist/chunk-346TGPVR.jsView on unpkg · L15Package source invokes a package manager install command at runtime.
dist/chunk-346TGPVR.jsView on unpkg · L100Package source references a known benign dynamic code generation pattern.
dist/commands/evals/run.jsView on unpkg · L49Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/chunk-ANOWI23I.jsView on unpkg · L1Source writes installer persistence such as shell profile or service configuration.
dist/chunk-ANOWI23I.jsView on unpkg · L1