AI Security Review
scanned 2h ago · by lpm-firewall-aiExplicitly running the CLI opens a WebSocket relay for registered agents and capability holders. The bundled protocol supports command and PTY request frames, creating a remote execution control surface when deployed.
Decision evidence
public snapshot- `dist/relay.js` exposes WebSocket routes `/agent/register` and `/relay/<capId>`.
- `dist/relay.js` forwards arbitrary binary invoker frames to the agent owning a capability.
- `dist/relay.js` protocol accepts `cmd`/`pty` modes with an `argv`, cwd, and env.
- `dist/relay.js` defaults `AGENT_SHELL` and `SPAWN_SANDBOX` to `/bin/bash` and `none`.
- `/relay/<capId>` does not perform separate invoker authentication; access relies on capability IDs.
- `package.json` has no `preinstall`, `install`, or `postinstall`; only `prepublishOnly`.
- `dist/cli.js` starts the server only after an explicit `locus-server` invocation.
- No credential harvesting, file-write, destructive, or AI-agent config mutation was found.
- `web/sw.js` is a same-origin preview relay service worker, not an install-time payload.
- The hinted HTML worker maps to Monaco editor sources; no bidi controls were found.
Source & flagged code
9 flagged · loading sourceSource spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/relay.jsView on unpkg · L180Package source references dynamic require/import behavior.
dist/relay.jsView on unpkg · L2Package source references a known benign dynamic code generation pattern.
dist/relay.jsView on unpkg · L1026Package source references weak cryptographic algorithms.
dist/relay.jsView on unpkg · L180Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
web/assets/html.worker-B3Ztmmz2.jsView on unpkg · L22Package contains source files above the static scanner size ceiling.
web/assets/ts.worker-0mEyHVru.jsView on unpkgThis package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
web/sw.jsView on unpkg