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- Explicit `am init-agent` writes/updates `AGENTS.md`, `skills/agentic-mermaid-diagram-workflow/SKILL.md`, and `.mcp.json` in a selected consumer repo.
- `src/mcp/server.ts` exposes an optional HTTP/SSE MCP server that executes submitted JavaScript in a VM sandbox.
- `src/mcp/artifacts.ts` writes rendered artifacts to a local managed directory and removes its expired tracked files.
- `package.json` has only `prepublishOnly`; no `preinstall`, `install`, or `postinstall` hook.
- `src/cli/index.ts` invokes setup only for explicit `init-agent`; `--dir` selects its target.
- No source `fetch`/HTTP-client exfiltration path found; URLs are documentation, local server URLs, or SVG font imports.
- `src/mcp/sandbox.ts` removes `fetch`, `process`, `require`, `eval`, `Function`, and dynamic-code globals from the agent VM.
- `spawnSync` is limited to explicit CLI preview opening via `AM_OPEN_COMMAND` or platform opener.
- Bidi scan found only emoji ZWJ occurrences, not Trojan Source control characters.
Source & flagged code
7 flagged · loading sourceSource contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
dist/am.jsView on unpkg · L7305Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/am.jsView on unpkg · L40Package source executes code through a VM context API.
dist/am.jsView on unpkg · L40Package source references a known benign dynamic code generation pattern.
dist/am.jsView on unpkg · L38894A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/agent.jsView on unpkgThis package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
src/cli/index.tsView on unpkg