AI Security Review
scanned 1d ago · by lpm-firewall-aiNo confirmed malicious package behavior was found, but the CMS exposes dangerous runtime automation surfaces. Authenticated/admin or stored flow configuration can execute JavaScript-like logic and make outbound requests.
Decision evidence
public snapshot- dist/packages/core/src/services/flow-engine.js executes database-defined flow condition/code via vm.runInContext with env in sandbox context.
- dist/packages/core/src/services/flow-engine.js can issue HTTP/webhook/slack fetches to flow-configured URLs at runtime.
- dist/packages/core/src/sandbox/worker-pool.js writes dist/packages/core/src/sandbox/worker-runner.js if its fallback worker content differs.
- dist/packages/core/src/api/system.js runs npx tsx on a template setup script during admin onboarding, with one duplicate route lacking projectType validation.
- package.json has no install/preinstall/postinstall lifecycle hooks.
- CLI pnpm add path is an explicit interactive zenithcms plugins command limited to official plugin choices.
- AI/network calls are CMS features using user-configured API keys and known providers, not hidden exfiltration endpoints.
- Dynamic imports/requires load local cms.config, local hooks, or .zenith adapter files as documented extension points.
- No evidence of credential harvesting, persistence outside app behavior, prompt injection, or unconsented AI-agent control-surface writes.
Source & flagged code
7 flagged · loading sourcePackage contains a possible secret pattern.
dist/packages/core/src/api/auth/sso.jsView on unpkg · L36Package source references child process execution.
dist/cli/index.jsView on unpkg · L237Package source references dynamic require/import behavior.
dist/database/adapters/AotBridge.jsView on unpkg · L30Package source executes code through a VM context API.
dist/packages/core/src/services/flow-engine.jsView on unpkg · L121Package source invokes a package manager install command at runtime.
dist/packages/core/src/api/system.jsView on unpkg · L1211This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/packages/core/src/index.jsView on unpkg