Loading npm security reports…
Loading npm security reports…
@enterpriseai/cli@3.12.1: Agent extension lifecycle risk | LPM Firewall
npm / @enterpriseai/cli / 3.12.1 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 Aug 15, 2026, 22:35 UTC · by lpm-firewall-ai This is a first-party, user-invoked agent-extension setup, not concrete malicious behavior. It warrants warning because it modifies project AI-agent control surfaces and can import refreshed assets.
Static reason
One or more suspicious static signals were detected.
Trigger
User runs `eai init` without `--no-gofer`, or `eai gofer refresh`.
Impact
Project AI-agent behavior can be extended by package-managed assets.
Mechanism
Copies and refreshes project-local AI-agent instructions and command hooks.
Evidence
package.json dist/commands/init.js dist/lib/gofer-installer.js dist/lib/gofer-refresh.js resources/gofer/hook-scripts/agent-stop.mjs .claude/settings.json .specify/scripts/hooks/user-prompt-submit.mjs .specify/scripts/hooks/post-tool-use.mjs .specify/scripts/hooks/agent-stop.mjs .eai/gofer-cache
github.com /eai-support/eai-gofer.git
eai-support.github.io /eai-gofer/releases/plugins/eai-gofer/gemini-extension.json
registry.npmjs.org /@enterpriseai%2fcli
Decision evidencepublic snapshot Evidence for warning
`eai init` installs Gofer assets unless `--no-gofer` is supplied. Gofer writes command hooks into project `.claude/settings.json`. Refresh defaults to fetching a version manifest and cloning Gofer assets. Evidence against
No preinstall, install, or postinstall lifecycle hook exists. Hook code stores transcript-derived state locally; no hook network call was found. Update checks only query package-version endpoints and cache locally. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 93 files · 1.21 MB of source
19 external domains referenced
abc.com admin-portal.example.com api.au.myenterprise.ai api.ca.myenterprise.ai api.eu.myenterprise.ai claude.ai code.claude.com code.visualstudio.com developers.openai.com docs.eai.software docs.github.com eai-support.github.io git-scm.com github.com my-app.example.com openai.com registry.npmjs.org www.enterpriseaigroup.com x.ai Findings7 high · 5 medium · 5 low Source & flagged code9 flagged High Child process
Package source references child process execution.
dist/lib/update-maintenance.js View on unpkg · L1 Code excerpt · 2 lines 1 import { spawn } from "node:child_process" ;
2 import process from "node:process" ;
Code excerpt · 3 lines 16 }
17 async function execAzureCli (args) {
18 const invocation = getAzureCliInvocation (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' );
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 = ;
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/lib/ai-surfaces.js View on unpkg · L4 Code excerpt · 12 lines 4 import { basename, dirname, join, resolve } from 'node:path' ;
5 import { spawn, spawnSync } from 'node:child_process' ;
6 export const EAI_FIRST_PROMPT = [
⋯
18 kind: 'editor' ,
19 installUrl: 'https://code.visualstudio.com/docs/copilot/setup' ,
20 launchSupport: 'project-and-prompt' ,
⋯
97 ];
98 function preferencesPath (home = ()) {
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 · 19 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
},
];
export async function installgoferresources(workspacepath, options = {}) {
const targetpath = resolve(workspacepath);
const resourcespath = resolvegoferresourcespath();
const workflowprofile = options.workflowprofile ?? 'enterpriseai';
const summary = {
copied: 0,
updated: 0,
unchanged: 0,
commands: 0,
agents: 0,
skills: 0,
copilotskills: 0,
};
resources/gofer/node-scripts/generate-commands.mjs View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
resources/gofer/node-scripts/generate-commands.mjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 6
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
`${STATIC_REGISTRY_URL}@enterpriseai/cli`
21 function shouldSkip () {
22 if (process.env['NO_UPDATE_NOTIFIER' ] === '1' ) {
homedir
99 return join (home, '.eai' , 'preferences.json' );
103 const parsed = JSON.parse (await readFile (preferencesPath (home), 'utf8' ));
104 const validSurface = AI_SURFACES.some ((surface) => surface.id === parsed.lastAiSurface);
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.
await assertdirectory(resourcespath);
await creategoferdirectories(targetpath);
for (const mapping of gofer_resource_mappings) {
await copyresourcedirectory(resourcespath, mapping.sourcesubdirectory, join(targetpath, ...mapping.targetsegm