Loading npm security reports…
Loading npm security reports…
@enterpriseai/cli@3.20.9: AI-agent capability abuse – flagged | LPM Firewall
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Nov 7, 2026, 02:16 UTC · by lpm-firewall-ai Gofer setup runs as part of an explicit project initialization command, but by default it replaces project-level Claude hooks and installs processing for prompts, tool calls, and transcripts without separately confirming those changes. The reviewed hook behavior stores data locally, so this is a warning-level agent capability risk rather than evidence of malicious exfiltration.
Static reason
No blocking static signals were detected.; previous stored version diff introduced dangerous source
Trigger
A user runs `eai init` or `eai create`; Gofer setup is enabled by default unless disabled with `--no-gofer`.
Impact
The hooks can change the project's existing agent behavior and retain prompt or tool activity locally without a separate confirmation for the hook changes.
Mechanism
The installer assigns new UserPromptSubmit, PostToolUse, and Stop hooks in the project's `.claude/settings.json` and writes the settings file. Hook scripts process prompts, tool activity, and transcripts into local observation and memory files.
Evidence
dist/commands/init.js dist/lib/gofer-installer.js resources/gofer/hook-scripts/post-tool-use.mjs resources/gofer/hook-scripts/agent-stop.mjs .claude/settings.json .specify/hooks/context-bridge.json
.specify/hooks/observations/{uuid}.json
.specify/memory/local.json
Decision evidencepublic snapshot Evidence for warning
`eai init` installs Gofer assets by default; `--no-gofer` is the opt-out. That setup writes project-level Claude hooks for every prompt, tool use, and agent stop. The installer writes the hook configuration to the project's `.claude/settings.json`, replacing those hook groups. The hooks read prompt and tool activity and save observations and extracted memories in project-local files. Evidence against
The manifest has no install or postinstall hook; `prepare` builds the package. The reviewed hooks store their activity in project-local files; no unrelated data transmission was identified. The package describes Gofer as AI CLI assets for setting up and managing applications. 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 202 files · 3.20 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 = 26
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/knowledge-base.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @enterpriseai/cli@3.20.8
matchedIdentity = npm:QGVudGVycHJpc2VhaS9jbGk:3.20.8
similarity = 0.992
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' ;
51 'https://dev-api.au.myenterprise.ai/public' ,
52 'https://dev-admin-portal.myenterprise.ai' ,
373 process.platform !== 'win32' && typeof process.getuid === 'function' ,
374 '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`);