AI Security Review
scanned 5d ago · by lpm-firewall-aiLPM treats this as warn-only first-party agent extension lifecycle risk. Install-time code writes package-owned MAMA templates under `~/.mama` and probes local Claude login status. The MCP executable later forwards explicit stdio requests to the local MAMA HTTP API, while code-act runs user-supplied code in a bounded QuickJS runtime.
Decision evidence
public snapshot- `package.json` automatically runs `scripts/postinstall.js`.
- Postinstall creates and populates `~/.mama/skills` and `~/.mama/workspace/skill-forge`.
- Postinstall invokes `claude auth status` and checks legacy credential-file existence.
- `dist/agent/code-act/sandbox.js` evaluates supplied code in a QuickJS sandbox during explicit runtime use.
- Postinstall does not write `.claude`, `.codex`, Cursor, or other foreign agent-control files.
- `~/.claude/.credentials.json` is only checked for existence; its contents are not read.
- No lifecycle network request or remote payload download appears in `scripts/postinstall.js`.
- `dist/mcp/code-act-server.js` sends requests only to `127.0.0.1`.
- QuickJS applies memory, stack, and deadline limits.
Source & flagged code
10 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgInstall-time lifecycle script is not statically allowlisted and needs review.
package.jsonView on unpkgPackage source references child process execution.
dist/connectors/calendar/index.jsView on unpkg · L3Package source references a known benign dynamic code generation pattern.
dist/multi-agent/bmad-templates.jsView on unpkg · L232Package source references dynamic require/import behavior.
dist/connectors/claude-code/index.jsView on unpkg · L11Source writes installer persistence such as shell profile or service configuration.
scripts/generate-gateway-tools.tsView on unpkg · L46A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli/runtime/utilities.jsView on unpkg · L62Install-time source drops package-supplied AI-agent/MCP control files or instructions.
scripts/postinstall.jsView on unpkg · L1Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/cli/runtime/api-routes-init.jsView on unpkg · L50