AI Security Review
scanned 10h ago · by lpm-firewall-aiNo confirmed malicious attack surface was established. The risky primitives are package-aligned Cursor adapter functionality activated by user runtime configuration, with no install-time or import-time execution.
Decision evidence
public snapshot- build/adapters/cursor.js spawns build/adapters/cursor-node-helper.js when the user selects the cursor provider.
- build/adapters/cursor-node-helper.js dynamically requires @cursor/sdk and can run Cursor agent local/custom tools via user-supplied requests.
- build/adapters/cursor-isolation.js can write .sbtmp, .isolation/darwin.sb, .isolation/relay.cjs, .isolation-broker.sock, and ~/.cursor/projects/<workspace> when providerOptions.isolation is explicitly enabled.
- build/adapters/cursor-broker.js proxies requests with a real Cursor API key to api.cursor.com and api2.cursor.sh.
- package.json has no preinstall/install/postinstall or other lifecycle hooks.
- build/index.js only exports adapters/utilities; importing the package does not spawn helpers or start the broker.
- Cursor helper execution is gated by runtime use of the cursor adapter, not install-time or import-time behavior.
- Isolation setup is default-off and user-configured through providerOptions.isolation with a caller-supplied workspace.
- No code found for credential harvesting beyond normal API key handling, arbitrary remote payload download, persistence, destructive actions, or broad AI-agent config mutation.
Source & flagged code
4 flagged · loading sourceSource matches reverse-shell style process and socket wiring.
build/adapters/cursor-isolation.jsView on unpkg · L13A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
build/adapters/cursor-isolation.jsView on unpkg · L13Package source references child process execution.
build/adapters/cursor-isolation.jsView on unpkg · L13This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
build/adapters/cursor.jsView on unpkg