Loading npm security reports…
Loading npm security reports…
@buzzni/happy-cli@1.1.10-aplus.351: Install hook abuse – flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 43 findings warrant review before installing.
AI security reviewscanned on Oct 22, 2026, 09:38 UTC · by lpm-firewall-ai Source inspection confirms a postinstall hook that conditionally installs additional global tools, so this warrants a warning about automatic installation scope. The global and non-CI gates and explicit skip option reduce exposure, and no concrete exfiltration or destructive behavior was established.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
A global, non-CI npm installation, unless the companion-tool skip variable is set.
Impact
The consumer's global tool environment is changed and third-party package installation code may run.
Mechanism
The postinstall script invokes global npm installation for a missing Codex companion and invokes uv to install a pinned Claude account-switching tool.
Evidence
package.json scripts/install-companion-tools.cjs
public snapshot
Evidence for warning
package.json runs install-companion-tools.cjs during postinstall. The postinstall helper automatically runs a global npm install for codex-multi-auth when its supported version is absent. The helper can also install a pinned Claude account-switching tool through uv. Evidence against
The companion installs are limited to global, non-CI installs and can be skipped with HAPPY_SKIP_COMPANION_TOOLS. The installer reports companion-tool failures as warnings and does not fail the Happy installation. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 118 files · 8.92 MB of source
38 external domains referenced
127.0.0.1 a.poc-one.test accounts.google.com api.anthropic.com api.cluster-fluster.com api.deepseek.com api.openai.com api.z.ai auth.openai.com b.poc-two.test bridge.invalid c.poc-three.test claude.ai console.anthropic.com dev-studio.example developers.google.com dl.google.com example.com example.invalid feed.test github.com goo.gle happy.engineering huggingface.co oauth2.googleapis.com openbox.org other.com platform.claude.com private.allowed.test prod-studio.example registry.npmjs.org saycode.ai shop.example studio.example tunnel.example www.apple.com www.googleapis.com x.example Findings6 critical · 20 high · 11 medium · 6 low Source & flagged code35 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node scripts/verify-bundled-deps.cjs && node scripts/unpack-tools.cjs && node scripts/fix-node-pty-perms.cjs && node scripts/install-companion-tools.cjs
High Child process
Package source references child process execution.
bin/happy.mjs View on unpkg · L2 Code excerpt · 2 lines 3 import { execFileSync } from 'child_process' ;
4 import { readFileSync } from 'fs' ;
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/main-DA626KbN.cjs View on unpkg · L5 Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/main-DA626KbN.cjs View on unpkg · L5 High Trigger reachable credential exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/main-DA626KbN.cjs View on unpkg · L5 High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/main-DA626KbN.cjs View on unpkg · L5 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/main-DA626KbN.cjs View on unpkg · L5 High Eval
Package source references dynamic code evaluation.
scripts/browser-poc/fixture.test.ts View on unpkg · L34 Code excerpt · 3 lines 34 for (const match of body.matchAll (/<script>([\s\S]*?)<\/script>/g)) {
35 expect (() => new Function (match[1 ]), `${path} script` ).not.toThrow ()
36 }
dist/browserBridgeConfig-CaTlK-SZ.cjs View file Medium Dynamic require
Package source references dynamic require/import behavior.
dist/browserBridgeConfig-CaTlK-SZ.cjs View on unpkg · L2 Code excerpt · 2 lines 3 var crypto = require ('node:crypto' );
4 var fs = require ('node:fs/promises' );
dist/managedRuntimeBoot-BIsSog5M.cjs View file Low Weak crypto
Package source references weak cryptographic algorithms.
dist/managedRuntimeBoot-BIsSog5M.cjs View on unpkg · L7 Code excerpt · 12 lines 7 var crypto = require ('node:crypto' );
8 var http = require ('node:http' );
9 var node_child_process = require ('node:child_process' );
10 var fs = require ('node:fs/promises' );
⋯
57 require ('./egressProxy-B5ejDLBy.cjs' );
58 require ('node:dns/promises' );
Critical Hardcoded runtime data exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
scripts/sandbox-linux-smoke.ts View on unpkg · L2 Code excerpt · 10 lines Source sends the broad process environment to a literal external destination.
2 import assert from 'node:assert/strict' ;
3 import { createServer } from 'node:http' ;
4 import { spawn, execFileSync } from 'node:child_process' ;
5 import { chmodSync, chownSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs' ;
⋯
13
14 assert.equal (process.platform, 'linux' );
Critical Command output exfiltration
Source executes local commands and sends command output to an external endpoint.
scripts/browser-poc/rollback.mjs View on unpkg Scanner record · 1 line bounded command output exfiltration = ilesync } from 'node:fs';\nimport { dirname, join } from 'node:path';\nimport { fileurltopath } from 'node:url';\nconst root = dirname(fileurltopath(import.meta.url));\nconst at = process.argv.indexof('--run'); const run = at >= 0 ? process.argv[at+1] : '';\nif (!/^[a-z0-9][a-z0-9-]{0,39}$/.test(run)) throw error('--run is required');\nconst path = join(root,'.abp',run,'env.json');\nconst reportpath = join(root,'.abp',run,'rollback-report.json');\nif (!existssync(path)) { const old = existssync(reportpath) ? json.parse(readfilesync(reportpath)) : { run, alreadydown:true }; console.log(json.stringify(old)); process.exit(0); }\nconst listed = execfilesync('docker', ['ps','-aq','--filter',`label=ai.saycode.abp-run=${run}`], {encoding:'utf8'}).trim();\nif
Critical Encrypted payload temp execution
Source decrypts an embedded payload, writes it to disk, and executes it through a child process.
dist/types-CXTtLHdj.cjs View on unpkg Scanner record · 1 line context = E = 384;\nconst PRIVATE_DIR_MODE = 448;\nasync function writePrivateFile(path, content) {\n await fs.writeFile(path, content, { encoding: "utf-8", mode: PRIVATE_FILE_MODE });\n await fs.chmod(path, PRIVATE_FILE_MODE);\n}\nasync function replacePrivateFile(path, content) {\n const tmp = `${path}.tmp`;\n await fs.rm(tmp, { force: true });\n await fs.writeFile(tmp, content, { encoding: "utf-8", mode: PRIVATE_FILE_MODE, flag: "wx" });\n await fs.rename(tmp, path);\n}\nfunction writePrivateFileSync(path, content) {\n node_fs.writeFileSync(path, content, { encoding: "utf-8", mode: PRIVATE_FILE_MODE });\n node_fs.chmodSync(path, PRIVATE_FILE_MODE);\n}\nfunction hardenHappyHomePermissions() {\n if (process.platform === "win32") return;\n const targets = [\n [configuration.ha
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/types-CXTtLHdj.cjs View on unpkg · L3 Code excerpt · 12 lines 3 var happyWire = require ('@slopus/happy-wire' );
scripts/script-egress-proxy.test.mjs View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
scripts/script-egress-proxy.test.mjs View on unpkg · L5 Code excerpt · 8 lines 5 test ('resolves and pins only registered public destinations' , async () => {
6 assert.equal (await authorizeDestination ('https://example.com' , ['https://example.com' ], [], async () => ['93.184.216.34' ]), '93.184.216.34' );
7 await assert.rejects (authorizeDestination ('https://other.com' , ['https://example.com' ], [], async () => ['93.184.216.34' ]), /ORIGIN_DENIED/);
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/index.cjs View on unpkg · L3 Code excerpt · 10 lines Cross-file remote execution chain: dist/index.cjs spawns dist/main-DA626KbN.cjs; helper contains network access plus dynamic code execution.
3 var standaloneLaunchProtocol = require ('./standaloneLaunchProtocol-T_hiaZQt.cjs' );
4 var node_child_process = require ('node:child_process' );
5 var node_fs = require ('node:fs' );
⋯
13 execPath: process.execPath,
14 env: process.env,
15 resolveSaycodeManifest: () => node_module.createRequire ((typeof document === 'undefined' ? require ( + ). (__filename).href : (_documentCurrentScript && _document...
High Spawned bundled service listener
Source launches a detached bundled service that exposes a broad-bound HTTP listener.
dist/main-C9JAQcRk.mjs View on unpkg · L1 Code excerpt · 6 lines Detached bundled service listener: dist/main-C9JAQcRk.mjs launches a Node helper and exposes a broad-bound HTTP listener.
1 import {createRequire as _pkgrollCR}from "node:module" ;const require=_pkgrollCR (import .meta.url);import { l as launchBootstrapSchema, e as equalLaunchProof, a as launchAuthProof, b a...
2 import { N as [redacted], O as [redacted], P as initializeSandbox, S as SandboxConfigSchema, Q as resolveSessionSandboxPolicyMode, f as ...
3 import chalk from 'chalk' ;
node_modules/@buzzni/saycode-cli/windows-host/saycode-windows-host.exe View file Medium Ships native binary
Package ships native binary artifacts.
node_modules/@buzzni/saycode-cli/windows-host/saycode-windows-host.exe View on unpkg Scanner record · 4 lines path = node_modules/@buzzni/saycode-cli/windows-host/saycode-windows-host.exe
kind = native_binary
sizeBytes = 18432
magicHex = [redacted]
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
scripts/verify-published-package.sh View on unpkg Scanner record · 4 lines path = scripts/verify-published-package.sh
kind = build_helper
sizeBytes = 1716
magicHex = [redacted]
node_modules/@buzzni/saycode-cli/index.mjs View file Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
node_modules/@buzzni/saycode-cli/index.mjs View on unpkg Scanner record · 4 lines path = node_modules/@buzzni/saycode-cli/index.mjs
kind = oversized_source_file
sizeBytes = 5488338
magicHex = [redacted]
Medium Oversized CLI entrypoint
Package contains an oversized executable-looking CLI entrypoint.
node_modules/@buzzni/saycode-cli/index.mjs View on unpkg Scanner record · 4 lines path = node_modules/@buzzni/saycode-cli/index.mjs
kind = oversized_cli_entrypoint
sizeBytes = 5488338
magicHex = [redacted]
dist/electronGuiPreload.cjs#virtual:normalized:round1 View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/electronGuiPreload.cjs#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 13
dist/browserSessionBrokerContract-CC5vYaGy.cjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/browserSessionBrokerContract-CC5vYaGy.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = [redacted]-CC5vYaGy.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/browserSessionBrokerContract-rWpazLfs.mjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/browserSessionBrokerContract-rWpazLfs.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = [redacted]-rWpazLfs.mjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/browserSessionBrokerMain.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = dist/browserSessionBrokerMain.mjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/difficultyRoutingArtifacts-Dd5ZRcr2.cjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/difficultyRoutingArtifacts-Dd5ZRcr2.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = dist/difficultyRoutingArtifacts-Dd5ZRcr2.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/egressProxy-B5ejDLBy.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = dist/egressProxy-B5ejDLBy.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/egressProxy-Bpt-0mt5.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = dist/egressProxy-Bpt-0mt5.mjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib.cjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.113
matchedPath = dist/lib.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.113
similarity = 0.708
shingleOverlap = 34
summary = source token shingles overlapped finalized malicious source
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
Shared code excerpt · 5 findings · 12 lines 5 var chalk = require ('chalk' );
6 var node_child_process = require ('node:child_process' );
7 var fs = require ('node:fs/promises' );
⋯
17 var ink = require ('ink' );
18 var axios = require ('axios' );
19 var net = require ('node:net' );
⋯
111 persistence.SandboxConfigSchema.parse ({}),
112 process.cwd (),
113 "mandatory"
⋯
214 }
215 const env = persistence.sanitizeChildEnv (process.env, { boundary: "in-session" });
216 env.CLAUDE_CODE_ENTRYPOINT = resolveHappyEntrypoint (process.env.CLAUDE_CODE_ENTRYPOINT);
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/main-DA626KbN.cjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.300
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.300
similarity = 0.717
summary = stored previous version shares package body but lacks this dangerous source file
Code excerpt · 3 lines 341 if (!capability.ok) throw new Error ("SCOPE_CLAUDE_SANDBOX_UNAVAILABLE" );
342 const wrapped = await persistence.wrapCommand ('exec /bin/sh -c "$HAPPY_SCOPE_CLAUDE_COMMAND"' );
343 const launch = (options) => {
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/main-DA626KbN.cjs View on unpkg Scanner record · 7 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/main-DA626KbN.cjsvar node_readline = require('node:readline');
var promises$1 = require('node:readline/promises');
env.CLAUDE_CODE_ENTRYPOINT = resolveHappyEntrypoint(process.env.CLAUDE_CODE_ENTRYPOINT);
if (opts?.emitSessionStateEvents) env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS = "1";
const root = path.join(process.env.CLAUDE_CONFIG_DIR || path.join(os.homedir(), ".claude"), "plugins", "synced");
const manifest = JSON.parse(node_fs.readFileSync(path.join(plugin, ".claude-plugin", "plugin.json"), "utf8"));
const claudeState = (process.env.CLAUDE_CONFIG_DIR || path.join(os.homedir(), ".claude")).replace(/^~(?=\/|$)/, os.homedir()
116 return { quiesced: true , exitCode: 0 , signal: null , providerState };
324 parsed = JSON.parse (raw.toString ("utf8" ));
15 assert.equal (process.env.HAPPY_SANDBOX_LINUX_SMOKE, '1' );
16 const uid = (name: string) => Number (execFileSync ('/usr/bin/id' , ['-u' , name], { encoding: 'utf8' }).trim ());
23 writeFileSync ('/etc/aplus/sandbox-policy.json' , '{"mode":"mandatory"}' );
24 writeFileSync ('/etc/aplus/claude-sandbox.json' , JSON.stringify ({ allowedDomains: ['api.anthropic.com' , 'platform.claude.com' , 'private.allowed.t
4 var axios = require ('axios' );
5 var chalk = require ('chalk' );
16 var fs = require ('node:fs/promises' );
17 var node_child_process = require ('node:child_process' );
18 var path$1 = require ('path' );
193 "@slopus/happy-wire" : "file:../happy-wire" ,
194 "@stablelib/base64" : "^2.0.1" ,
195 "@stablelib/hex" : "^2.0.1" ,
9 test ('blocks metadata, loopback, RFC1918, carrier NAT and mixed public/private DNS answers' , async () => {
10 for (const address of ['127.0.0.1' , '169.254.169.254' , '10.0.0.1' , '172.16.0.1' , '192.168.0.1' , '100.64.0.1' , '0.0.0.0' , '224.0.0.1' , '::1' ]) {
16 await assert.rejects (authorizeDestination ('http://db:8090' , [], ['http://db:8090' ], async () => ['172.18.0.2' ]), /ORIGIN_DENIED/);
'u'
'rl'
pathToFileURL
16 readManifest: (path) => node_fs.readFileSync (path, "utf8" ),
20 const manifestPath = dependencies.resolveSaycodeManifest ();
21 const manifest = JSON.parse (dependencies.readManifest (manifestPath));
4
import { spawn, execFileSync, execSync, execFile, exec as exec$1 } from 'node:child_process' ;
5 import { mkdir, readFile, mkdtemp, writeFile, rm, open, rename, unlink, readdir, link, lstat, realpath, stat, copyFile, constants as constants$1, opendir, access as access$1, chmod...