AI Security Review
scanned 2d ago · by lpm-firewall-aiNo confirmed malicious attack surface was found by source inspection. Risky primitives are expected for a local AI coding CLI and are activated by user CLI interaction or explicit configuration.
Decision evidence
public snapshot- package.json defines postinstall lifecycle script scripts/postinstall.js.
- dist/tools/builtin/terminal.js and files.js expose user-invoked shell/write capabilities for an AI coding CLI.
- dist/index.js system prompt encourages tool use, including installs, but runtime approval gates exist unless auto-approve is configured.
- scripts/postinstall.js only creates ~/.daedalus; no fetch, spawn, or payload execution.
- dist/tools/builtin/terminal.js strips common secret env vars and blocks install commands without approval unless DAEDALUS_ALLOW_INSTALL=true.
- dist/model.js gates terminal/write_file unless DAEDALUS_AUTO_APPROVE is enabled by user/config.
- dist/tools/mcp/stdio.js sanitizes env and rejects shell metacharacters in configured MCP commands.
- Network calls are package-aligned: update checks, user-requested web fetch/search, model/router health, MCP registry/configured servers.
Source & flagged code
9 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/tools/mcp/stdio.test.jsView on unpkg · L2This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/tools/builtin/files.jsView on unpkgPackage source invokes a package manager install command at runtime.
dist/tools/builtin/files.jsView on unpkg · L187Package source references dynamic require/import behavior.
dist/tools/executor.jsView on unpkg · L9Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
dist/tools/builtin/screenshot.jsView on unpkg · L10Package ships non-JavaScript build or shell helper files.
Daedalus.batView on unpkg