Loading npm security reports…
Loading npm security reports…
@enterpriseai/cli@3.12.0: Agent extension lifecycle risk | LPM Firewall
npm / @enterpriseai/cli / 3.12.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 Aug 15, 2026, 22:30 UTC · by lpm-firewall-ai The package creates a real, behavior-bearing AI-agent extension lifecycle in a user-selected project, so warning is appropriate. It is not malicious under the stated boundary because activation is explicit and reviewed hook behavior is local-only.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
User runs `eai init` without `--no-gofer`.
Impact
Future Claude Code events execute bundled project-local hook scripts and persist workflow context.
Mechanism
project-local AI-agent hook registration and transcript-derived local state
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 .claude/settings.json .specify/scripts/hooks/user-prompt-submit.mjs .specify/scripts/hooks/post-tool-use.mjs .specify/scripts/hooks/agent-stop.mjs
.specify/hooks/context-bridge.json
.specify/hooks/observations/*.json
.specify/memory/local.json
Decision evidencepublic snapshot Evidence for warning
`eai init` enables Gofer assets by default and invokes the installer. Installer overwrites project `.claude/settings.json` hook commands for prompt, tool-use, and stop events. Installed hooks read prompt/transcript/tool data and persist project-local observations and memories. Evidence against
Manifest has no preinstall/install/postinstall hook; `prepare` only runs TypeScript compilation. Reviewed hook sources use local filesystem operations; no network or exfiltration call was found. 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
18 external domains referenced
abc.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 Findings8 high · 5 medium · 5 low Source & flagged code10 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
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.11.3
matchedIdentity = npm:QGVudGVycHJpc2VhaS9jbGk:3.11.3
similarity = 0.964
summary = stored previous version shares package body but lacks this dangerous source file
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