Loading npm security reports…
Loading npm security reports…
@enterpriseai/cli@3.20.0: Agent extension lifecycle risk | LPM Firewall
npm / @enterpriseai/cli / 3.20.0 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 16, 2026, 23:55 UTC · by lpm-firewall-ai The source does not establish malicious behavior, but initialization installs a first-party agent integration by default. Because its hooks retain tool activity and alter later prompt context without a separate affirmative hook opt-in, the remaining agent lifecycle risk warrants a warning.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
A user runs project initialization without the --no-gofer option; the hooks then run on Claude prompt, tool-use, and stop events.
Impact
Project-local tool and conversation data is retained and later supplied as agent context; the installer also replaces hook entries for the affected event types.
Mechanism
The installer writes hook commands into the project's Claude settings. The hooks save tool inputs and responses, extract learnings from conversation transcripts, and add Gofer context to later prompts.
Evidence
dist/commands/init.js dist/lib/gofer-installer.js resources/gofer/hook-scripts/post-tool-use.mjs resources/gofer/hook-scripts/user-prompt-submit.mjs resources/gofer/hook-scripts/agent-stop.mjs .claude/settings.json .specify/hooks/observations/{uuid}.json
.specify/memory/local.json
.specify/hooks/context-bridge.json
Decision evidencepublic snapshot Evidence for warning
A user-run init command installs Gofer assets unless --no-gofer is supplied; installation writes Claude prompt, tool-use, and stop hooks to project settings. The installed tool-use hook saves tool inputs and responses locally, and the stop hook extracts conversation learnings into local memory. The prompt hook adds saved memories and Gofer context to later Claude prompts. The other flagged runtime locations show API transport guards and command-scoped validation or error handling; no autonomous account action was established. The package prepare script runs a build; the reviewed agent setup is invoked through CLI project setup or maintenance. Evidence against
The hooks operate on project files, and inspection did not establish an external recipient for their observations. The Gofer setup is tied to a user-invoked project initialization command, rather than an npm install hook. 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 195 files · 3.09 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
resources/gofer/node-scripts/package-agent-plugin.mjs View file High Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
resources/gofer/node-scripts/package-agent-plugin.mjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @enterpriseai/cli@3.19.4
matchedIdentity = npm:QGVudGVycHJpc2VhaS9jbGk:3.19.4
similarity = 0.858
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`);