AI Security Review
scanned 2h ago · by lpm-firewall-aiReview flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.
Decision evidence
public snapshot- bin/init.js writes shell rc/env, IDE configs, launchd/systemd daemon for a local LLM proxy when `lemma init` is run.
- dist/esm/cli/lemma-proxy.js auto-registers MCP servers in Codex, Claude, Cursor, Windsurf, VS Code, Kiro, OpenCode configs on `start/setup`.
- dist/esm/cli/lemma-proxy.js injects agent behavior rules into project rule files such as `.cursorrules`, `.clinerules`, `.opencode.md`.
- dist/esm/mcp/tools.js exposes user-invoked workspace read/write/patch/command tools with an allowlist including package managers and network utilities.
- cache-proxy.js and CLI proxy forward prompts/API keys to configured LLM upstreams and cache prompt/response data locally.
- package.json has no preinstall/install/postinstall hook; only prepublishOnly build/test lifecycle.
- Main entry dist/cjs/index.js primarily re-exports modules; no import-time config mutation observed.
- Agent/IDE config mutation is tied to explicit commands like `lemma init`, `lemma start`, or MCP tool calls, not npm install.
- Network endpoints are package-aligned LLM/proxy/license endpoints rather than hidden exfiltration hosts.
- MCP path handling uses safeResolvePath to constrain file access to the workspace for many file tools.
Source & flagged code
12 flagged · loading sourceSource launches a detached bundled service that exposes a broad-bound HTTP listener.
bin/init.jsView on unpkg · L6Package source references dynamic require/import behavior.
bin/init.jsView on unpkg · L3Source writes installer persistence such as shell profile or service configuration.
bin/init.jsView on unpkg · L6Package source references a known benign dynamic code generation pattern.
dist/esm/pr-review/analyzers/SecurityScanner.jsView on unpkg · L13Package source references weak cryptographic algorithms.
dist/esm/proxy/ProjectStore.jsView on unpkg · L4A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/esm/cli/lemma-proxy.jsView on unpkg · L2014Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/esm/cli/lemma-proxy.jsView on unpkg · L7Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/esm/mcp/tools.jsView on unpkg · L3Package source invokes a package manager install command at runtime.
dist/esm/mcp/tools.jsView on unpkg · L1267This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/cjs/autopilot/Notifier.jsView on unpkg