Loading npm security reports…
Loading npm security reports…
@enterpriseai/cli@3.19.4: Agent extension lifecycle risk | LPM Firewall
npm / @enterpriseai/cli / 3.19.4 EnterpriseAI CLI for app setup, validation, deployment readiness, and platform operations
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Oct 12, 2026, 20:59 UTC · by lpm-firewall-ai The package has a concrete first-party agent extension setup that writes recurring Claude hooks and local session data, so a warning is appropriate. Its trigger is the explicit CLI initializer, and the inspected sources do not establish a malicious install-time action or exfiltration.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Run eai init without --no-gofer; the hooks run later during Claude sessions.
Impact
Agent behavior and local project state are affected across later sessions. The inspected behavior supports a guarded first-party extension warning, but does not establish install-time execution or remote exfiltration.
Mechanism
The installer writes commands for prompt submission, post-tool use, and turn stop into .claude/settings.json. The scripts inject saved memory into prompt context and record observations, learnings, and session state locally.
Evidence
package.json dist/commands/init.js dist/lib/gofer-installer.js resources/gofer/hook-scripts/user-prompt-submit.mjs resources/gofer/hook-scripts/post-tool-use.mjs resources/gofer/hook-scripts/agent-stop.mjs resources/gofer/hook-scripts/session-lifecycle.mjs
.claude/settings.json
.specify/scripts/hooks/user-prompt-submit.mjs
.specify/scripts/hooks/post-tool-use.mjs
.specify/scripts/hooks/agent-stop.mjs
.specify/memory/local.json
.specify/hooks/context-bridge.json
Decision evidencepublic snapshot Evidence for warning
package.json runs a build from prepare and release checks from prepublishOnly; neither installs Gofer assets for registry consumers. Running eai init installs Gofer assets by default, with --no-gofer as an opt-out. The installer copies first-party Gofer resources and writes Claude prompt, tool-use, and stop hooks into .claude/settings.json. Those hooks add saved memory to prompt context and store tool observations, turn learnings, and session state in project-local files. The indicated runtime caller locations show CLI flows, validation, confirmation, API transport, and support redaction; no automatic publisher-selected account change was established. Evidence against
The configuration change is reached through the user-invoked eai init flow, not a consumer install hook. The inspected hook behavior uses project-local state; no remote transfer from these hooks was established. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 189 files · 2.96 MB of source
50 external domains referenced
abc.com admin-portal.ca.myenterprise.ai admin-portal.eu.myenterprise.ai admin-portal.example.com admin-portal.myenterprise.ai antigravity.google api.au.myenterprise.ai api.au.myenterprise.ai.attacker.example api.ca.myenterprise.ai api.eu.myenterprise.ai api.typesafe.ai attacker.example careful-8000.eai.devtunnels.ms changed-8000.aue.devtunnels.ms claude.ai claude.com code.claude.com code.visualstudio.com dev-admin-portal.myenterprise.ai dev-api.au.myenterprise.ai dev-api.au.myenterprise.ai.attacker.example docs.eai.software docs.github.com eai-support.github.io evil.dev-api.au.myenterprise.ai git-scm.com github.com json-schema.org learn.chatgpt.com my-app.example.com other-3010.aue.devtunnels.ms other-8000.aue.devtunnels.ms otherowner-8000.aue.devtunnels.ms owner-run-3000.use1.devtunnels.ms owner-run-3010.use1.devtunnels.ms owner-run-3010.use1.devtunnels.ms.attacker.example owner-run-8000.bad owner-run-8000.use1.devtunnels.ms owner-run-8000.use1.devtunnels.ms.attacker.example owner-run-8001.use1.devtunnels.ms owner-run-name-3010.aue.devtunnels.ms owner-run-name-8000.aue01.devtunnels.ms ownerrun-3000.aue.devtunnels.ms ownerrun-3010.aue.devtunnels.ms ownerrun-8000.aue01.devtunnels.ms ownerrun-8001.aue.devtunnels.ms Findings7 high · 6 medium · 7 low Source & flagged code11 flagged High Child process
Package source references child process execution.
dist/lib/eai-managed-source.js View on unpkg · L1 Code excerpt · 3 lines 1 import { createHash } from 'node:crypto' ;
2 import { execFile } from 'node:child_process' ;
3 import { constants } from 'node:fs' ;
Code excerpt · 3 lines 161 return {
162 command: "cmd.exe" ,
163 args: ["/d" , "/s" , "/c" , "eai.cmd" , ...args],
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/index.js View on unpkg · L11 Code excerpt · 3 lines 11 import chalk from 'chalk' ;
12 const require = createRequire (import .meta.url);
13 const pkg = require ('../package.json' );
resources/deploy/eai-app-template/tests/source-unknown-deployment-evidence.test.mjs View file Medium Unsafe vm context
Package source executes code through a VM context API.
resources/deploy/eai-app-template/tests/source-unknown-deployment-evidence.test.mjs View on unpkg · L1 Low Weak crypto
Package source references weak cryptographic algorithms.
resources/deploy/eai-app-template/tests/source-unknown-deployment-evidence.test.mjs View on unpkg · L1 Shared code excerpt · 2 findings · 12 lines 1 import assert from 'node:assert/strict' ;
2 import { execFileSync, spawnSync } from 'node:child_process' ;
3 import { createHash } from 'node:crypto' ;
⋯
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/lib/update-check.js View on unpkg · L6 Code excerpt · 9 lines 6 import { readFile, writeFile, mkdir } from 'node:fs/promises' ;
7 import { spawn } from 'node:child_process' ;
8 import { join } from 'node:path' ;
⋯
13 const CACHE_FILE = join (EAI_DIR, 'update-check.json' );
14 export const STATIC_REGISTRY_URL = 'https://eai-support.github.io/eai/registry/' ;
15 export const STATIC_PACKUMENT_URL = ;
resources/gofer/hook-scripts/session-lifecycle.mjs 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.
resources/gofer/hook-scripts/session-lifecycle.mjs View on unpkg Scanner record · 22 lines Runtime or CLI code links a write operation to an explicit external AI-agent control path:
#!/usr/bin/env node
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.
dist/lib/gofer-installer.js View on unpkg Scanner record · 20 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
eturn path;
}
async function writegoferversionmarker(workspacepath, version) {
const target = join(workspacepath, '.specify', '.gofer-version');
let exists = false;
try {
const status = await lstat(target);
if (!status.isfile() || status.nlink !== 1)
throw new error('gofer version marker must be a regular file.');
exists = true;
if (await readfile(target, 'utf-8') === `${version}\n`)
return 'unchanged';
}
catch (error) {
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/commands/init.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 29
High Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/commands/init.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @enterpriseai/cli@3.19.3
matchedIdentity = npm:QGVudGVycHJpc2VhaS9jbGk:3.19.3
similarity = 0.892
summary = stored previous version shares package body but lacks this dangerous source file
registry.npmjs.org
test-admin-portal.myenterprise.ai
test-api.au.myenterprise.ai
test-api.ca.myenterprise.ai Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
28 import { runInNewContext } from 'node:vm' ;
29 import { gunzipSync } from 'node:zlib' ;
47 'https://dev-api.au.myenterprise.ai/public' ,
48 'https://dev-admin-portal.myenterprise.ai' ,
369 process.platform !== 'win32' && typeof process.getuid === 'function' ,
370 'Controlled local routing requires POSIX owner protection.' ,
`${STATIC_REGISTRY_URL}@enterpriseai/cli`
21 function shouldSkip () {
22 if (process.env['NO_UPDATE_NOTIFIER' ] === '1' ) {
import { readfilesync, writefilesync, renamesync, mkdirsync } from 'fs';
import { join, dirname } from 'path';
const project_dir = process.env.claude_project_dir || process.cwd();
const bridge_path = join(project_dir, '.specify', 'hooks', 'context-bridge.
if (error.code !== 'enoent')
const staged = join(dirname(target), `.gofer-version.${randomuuid()}.tmp`);