Loading npm security reports…
Loading npm security reports…
@baize-ai/core: AI-agent control-surface risk | LPM Firewall
npm / AI-agent control-surface risk / @baize-ai/core Baize (白泽) — autonomous AI agent infrastructure
This report shows the evidence for @baize-ai/core@0.3.17 . 4 of 13 known versions are blocked or flagged. The newest version, 0.3.18, is flagged.
Soft block: AI-agent control surface
Warn by default; block when configured. The installation changes an AI agent's behavior-bearing configuration without a separate user command or confirmation.
AI security reviewscanned on Nov 8, 2026, 01:41 UTC · by lpm-firewall-ai The automatic postinstall path writes behavior-bearing settings into the user's Claude configuration when Baize is initialized. Under the package firewall rules, this unconsented install-time mutation of an AI-agent control surface is malicious.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm install when CI is unset and the configured Baize directory already contains .claude.
Impact
The installation changes an AI agent's behavior-bearing configuration without a separate user command or confirmation.
Mechanism
The postinstall hook launches sync-settings-hooks.js, which updates installed settings from package templates, including an executable statusLine command.
Policy narrative
When installed in an already initialized Baize environment, the package's postinstall hook synchronizes Claude settings automatically. That synchronizer persists template-driven settings, including a statusLine command that runs a bundled script, thereby changing an AI-agent control surface during installation without a separate user request.
Evidence
package.json scripts/postinstall.js cli/lib/sync-settings-hooks.js templates/.claude/settings.json $BAIZE_DIR/.claude/settings.json
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 91.0% confidence with low false-positive risk.
Evidence for policy risk
The manifest runs scripts/postinstall.js automatically after installation. Postinstall invokes the settings synchronizer whenever Baize is initialized, without a user confirmation step. The synchronizer updates installed settings from package templates and persists the result. The template configures an executable statusLine command in the user's Baize Claude settings. Evidence against
Postinstall skips when CI is set or the Baize .claude directory does not exist. The statusLine command points to a bundled Baize activity-monitor script. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 151 files · 1.59 MB of source
16 external domains referenced
a2a.example.com admin.example.com api.github.com api.openai.com claude-proxy.example.com claude.ai console.anthropic.com example.com github.com open.feishu.cn pm2.keymetrics.io proxy.example.com raw.githubusercontent.com registry.npmjs.org registry.npmmirror.com work.weixin.qq.com Findings1 critical · 24 high · 8 medium · 4 low Source & flagged code29 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node scripts/postinstall.js || true
High Child process
Package source references child process execution.
cli/lib/sync-settings-hooks.js View on unpkg · L21 Code excerpt · 3 lines 21 import os from 'os' ;
22 import { execFileSync } from 'child_process' ;
23 import { fileURLToPath } from 'url' ;
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
cli/commands/init.js View on unpkg · L9 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
cli/commands/init.js View on unpkg · L9 Shared code excerpt · 2 findings · 12 lines 9 import fs from 'node:fs' ;
10 import https from 'node:https' ;
11 import os from 'node:os' ;
⋯
13 import { createRequire } from 'node:module' ;
14 import { execSync, execFileSync, spawnSync, spawn } ;
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
cli/commands/shell.js View on unpkg · L8 Code excerpt · 9 lines 8 import readline from 'node:readline' ;
9 import net from 'node:net' ;
10 import fs from 'node:fs' ;
⋯
12 import path from 'node:path' ;
13 import { execFileSync } from 'node:child_process' ;
14 import { bold, dim, cyan } from '../lib/colors.js' ;
15
Critical AI agent control hijack
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
scripts/postinstall.js View on unpkg · L17 Code excerpt · 14 lines Install-time code directly mutates a foreign AI-agent control surface:
25 const BAIZE_DIR = process.env.BAIZE_DIR || path.join (process.env.HOME, 'baize' );
26 const SKILLS_DIR = path.join (BAIZE_DIR, '.claude' , 'skills' );
27 const CORE_SKILLS_SRC = path.join (__dirname, '..' , 'skills' );
⋯
92 const syncHooks = path.join (__dirname, '..' , 'cli' , 'lib' , );
skills/create-skill/scripts/init-skill.js View file High External AI agent control surface mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
skills/create-skill/scripts/init-skill.js View on unpkg Scanner record · 18 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
const scriptsdir = path.join(skilldir, 'scripts');
fs.mkdirsync(scriptsdir);
const examplescript = path.join(scriptsdir, 'example.js');
fs.writefilesync(examplescript, generateexamplescript(skillname));
fs.chmodsync(examplescript, 0o755);
console.log('created scripts/example.js');
const refsdir = path.join(skilldir, 'references');
fs.mkdirsync(refsdir);
fs.writefilesync(path.join(refsdir, 'api-reference.md'), generateexamplereference(skillname));
console.log('created references/api-reference.md');
High Runtime package install
Package source invokes a package manager install command at runtime.
cli/lib/upgrade.js View on unpkg · L513 Code excerpt · 3 lines 513 try {
514 execSync ('npm install --omit=dev' , {
515 cwd: ctx.skillDir,
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
docker/entrypoint.sh View on unpkg Scanner record · 4 lines path = docker/entrypoint.sh
kind = build_helper
sizeBytes = 9724
magicHex = [redacted]
.npm-cache/_cacache/content-v2/sha512/61/51/888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9 View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
.npm-cache/_cacache/content-v2/sha512/61/51/888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9 View on unpkg Scanner record · 4 lines path = .npm-cache/_cacache/content-[redacted]
kind = high_entropy_blob
sizeBytes = 4317
magicHex = [redacted]
Medium Ships compressed blob
Package ships compressed or archive-like blobs.
.npm-cache/_cacache/content-v2/sha512/61/51/888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e9 High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
test/integration/runtime/run.sh View on unpkg Scanner record · 4 lines path = test/integration/runtime/run.sh
kind = payload_in_excluded_dir
sizeBytes = 13543
magicHex = [redacted]
skills/web-console/public/markdown-it.min.js View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
skills/web-console/public/markdown-it.min.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 1
skills/web-console/scripts/server.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/web-console/scripts/server.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/web-console/scripts/server.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
cli/commands/add.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = cli/commands/add.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
skills/activity-monitor/scripts/monitor.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/activity-monitor/scripts/monitor.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/activity-monitor/scripts/monitor.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
skills/activity-monitor/scripts/proc-sampler.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/activity-monitor/scripts/proc-sampler.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/activity-monitor/scripts/proc-sampler.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/http/scripts/setup-caddy.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/http/scripts/setup-caddy.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
skills/web-console/scripts/admin-auth.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/web-console/scripts/admin-auth.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/web-console/scripts/admin-auth.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
skills/web-console/scripts/channel-admin.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/web-console/scripts/channel-admin.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/web-console/scripts/channel-admin.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
skills/web-console/scripts/codex-login.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/web-console/scripts/codex-login.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/web-console/scripts/codex-login.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
skills/web-console/scripts/feishu-admin.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
skills/web-console/scripts/feishu-admin.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = skills/web-console/scripts/feishu-admin.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
cli/commands/self-uninstall.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = cli/commands/self-uninstall.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
cli/commands/service.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @baize-ai/core@0.3.15
matchedPath = cli/commands/service.js
matchedIdentity = npm:QGJhaXplLWFpL2NvcmU:0.3.15
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Versions13 known versions 5 versions are still under review and not listed.
AI assessment confidence 91%
Certainty of the verdict, not severity.
Verdict details False-positive risk, Review stage, Firewall policy This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.
Package metadata npm Author Baize AI
Version 0.3.17
Latest on npm 0.3.18
Published Sep 14, 2026
License MIT
Dependencies 3
Integrity verified
Package size 25.9 MB
Files 1,381
Keywords ai agent claude autonomous
Runtime surface package.json Entrypoints main → cli/baize.js bin → baize
Runtime node >=20.20.0
Artifact 29.2 MB unpacked · 1,381 files 1 signature
Install lifecycle postinstall
On this report AI security review Decision evidence Findings37 Flagged code29 Remediation Versions 1 finding
.npm-cache/_cacache/content-v2/sha512/61/51/888f691a98b493c70e8db198e80717d2c2c9f4c9c75eb26738a7e436d5ce733ee675a65f8d7f155dc4fb5d1ef98d54e43a5d2606e0052dcadfc58bb0f5e92 findings
High Ships high entropy blob Code↓ from
'node:child_process'
15 import { BAIZE_DIR, SKILLS_DIR, CONFIG_DIR, COMPONENTS_DIR, LOCKS_DIR, COMPONENTS_FILE, BIN_DIR, HTTP_DIR, CADDYFILE, CADDY_BIN, getBaizeConfig, updateBaizeConfig } from '../lib/co...
85 function installSystemPackage (pkg) {
86 const platform = process.platform;
87 const sudo = process.getuid?.() === 0 ? '' : 'sudo ' ;
131 function ensureCompletePathProfile () {
132 const homedir = os.homedir ();
133 const shell = (process.env.SHELL || '' ).split ('/' ).pop ();
High Trigger reachable external AI agent control surface mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
cli/commands/init.js View on unpkg Scanner record · 18 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
function verifysetuptoken() {
try {
const result = spawnsync('claude', ['-p', 'hi', '--max-turns', '1'], {
timeout: 30000,
env: { ...process.env, path: completebinpath() },
stdio: ['pipe', 'pipe', 'pipe'],
});
if (result.status === 0) {
return { valid: true };
}
const output = ((result.stdout?.tostring() || '') + (result.stderr?.tostring() || '')).trim();
const lower = output.tolowercase();
const isautherror = lower.includes('401') || lower.includes('unauthorized') ||
lower.includes('authentication') || lower.includes('invalid token') ||
lower.includes('invalid key') || lower.includes('expired') ||
lower.i
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
cli/commands/init.js View on unpkg · L9 Code excerpt · 12 lines Trigger-reachable persistence chain: manifest.main -> cli/baize.js -> cli/commands/init.js
9 import fs from 'node:fs' ;
10 import https from 'node:https' ;
11 import os from 'node:os' ;
⋯
13 import { createRequire } from 'node:module' ;
14 import { execSync, execFileSync, spawnSync, spawn } from 'node:child_process' ;
15 import { BAIZE_DIR, SKILLS_DIR, CONFIG_DIR, COMPONENTS_DIR, LOCKS_DIR, COMPONENTS_FILE, BIN_DIR, HTTP_DIR, CADDYFILE, CADDY_BIN, getBaizeConfig, updateBaizeConfig } from '../lib/co...
⋯
85 function installSystemPackage (pkg) {
86 const platform = process.platform;
87 const sudo = process.getuid?.() === 0 ? '' : 'sudo ' ;
⋯
131 function ensureCompletePathProfile () {
132 const homedir = os.homedir ();
133 const shell = (process.env.SHELL || '' ).split ('/
Medium Dynamic require
Package source references dynamic require/import behavior.
cli/commands/init.js View on unpkg · L64 Code excerpt · 3 lines 64 try {
65 const require = createRequire (import .meta.url);
66 // Clear cache so re-reads pick up updates from deployTemplates()
16 const BAIZE_DIR = process.env.BAIZE_DIR || path.join (os.homedir (), 'baize' );
17 const C4_RECEIVE = path.join (BAIZE_DIR, '.claude' , 'skills' , 'comm-bridge' , 'scripts' , 'c4-receive.js' );
'sync-settings-hooks.js'
93 const templateSettings = path.join (__dirname, '..' , 'templates' , '.claude' , 'settings.json' );
113 // Baize must be initialized — .claude/ directory exists after `baize init`
114 const claudeDir = path.join (BAIZE_DIR, '.claude' );
115 if (!fs.existsSync (claudeDir)) {
Write operation from cli/lib/fs-utils.js:
17 base = path.join (os.homedir (), 'tmp' );
18 fs.mkdirSync (base, { recursiv
const assetsdir = path.join(skilldir, 'assets');
fs.writefilesync(path.join(asset
Scanner record · 4 lines path = .npm-cache/_cacache/content-[redacted]
kind = compressed_blob
sizeBytes = 4317
magicHex = [redacted]