Loading npm security reports…
Loading npm security reports…
@buzzni/happy-cli@1.1.10-aplus.357: Credential exfiltration | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 47 findings warrant review before installing.
AI security reviewscanned on Oct 25, 2026, 02:19 UTC · by lpm-firewall-ai The account token is sent to an unrestricted configured endpoint on both inspected startup paths. Because the destination must be configured and the built-in preset is service-aligned, this supports a warning for conditional credential exposure rather than a publish block.
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
Starting an account-backed daemon session while HAPPY_APLUS_MCP_CONFIG_URL is configured.
Impact
A configured third-party endpoint can receive the Happy account token and machine identifier.
Mechanism
The MCP configuration request uses the configured URL and places the saved account token in its Authorization header without restricting the destination host.
Network endpoints1
saycode.ai /api/me/mcp-config
public snapshot
Evidence for warning
Account-backed sessions use the saved account credential as the token passed to MCP configuration lookup. The lookup runs only when HAPPY_APLUS_MCP_CONFIG_URL is set, but accepts any HTTP or HTTPS destination without a host restriction. The request sends that token as a bearer credential together with the machine ID. Both inspected session startup paths call the lookup when an account token is available. The package also provides a saycode.ai preset selected through an explicit daemon-start command. Evidence against
The configured URL is absent by default, and the built-in preset points to saycode.ai. The manifest postinstall hook runs dependency verification, tool unpacking, a platform permission fix, and companion-tool setup. 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 122 files · 9.31 MB of source
39 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 www.iana.org x.example Findings6 critical · 25 high · 11 medium · 5 low Source & flagged code39 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-Ckjrb0oX.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-Ckjrb0oX.cjs View on unpkg · L5 High Trigger reachable credential exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/main-Ckjrb0oX.cjs View on unpkg · L5 High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/main-Ckjrb0oX.cjs View on unpkg · L5 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/main-Ckjrb0oX.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' );
scripts/agent-browser/native/macEgressFence.live.check.ts View file High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
scripts/agent-browser/native/macEgressFence.live.check.ts View on unpkg · L13 Code excerpt · 8 lines 13 import assert from 'node:assert/strict'
14 import { spawn, spawnSync } from 'node:child_process'
15 import { chown, mkdtemp, rm, writeFile } from 'node:fs/promises'
16 import { createServer } from 'node:http'
17 import type { Server } from 'node:net'
⋯
23
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-Bci78Z0D.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-Bci78Z0D.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-Ckjrb0oX.cjs; helper contains network access plus dynamic code execution.
3 var browserTaskEnv = require ('./browserTaskEnv-CUmfE6jV.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-CRNfE9H-.mjs View on unpkg · L1 Code excerpt · 6 lines Detached bundled service listener: dist/main-CRNfE9H-.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 { a as launchBootstrapSchema, e as equalLaunchProof, b as launchAuthProof, d a...
2 import { Q as [redacted], S as [redacted], U as initializeSandbox, V as SandboxConfigSchema, W 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 = 12
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
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/config-BdGBEJ2C.cjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = dist/config-CLHijNM1.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped 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/runOpenClaw-CNoYUgcp.cjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.260
matchedPath = dist/runOpenClaw-bYwYwY1n.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped 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.260
matchedPath = dist/lib.cjs
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.260
similarity = 0.813
shingleOverlap = 39
summary = source token shingles overlapped 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.mjs View on unpkg Scanner record · 7 lines matchType = token_shingles
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.113
matchedPath = dist/lib.mjs
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' );
⋯
113 persistence.SandboxConfigSchema.parse ({}),
114 process.cwd (),
115 "mandatory"
⋯
217 }
218 const env = persistence.sanitizeChildEnv (process.env, { boundary: "in-session" });
219 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-Ckjrb0oX.cjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @buzzni/happy-cli@1.1.10-aplus.351
matchedIdentity = npm:QGJ1enpuaS9oYXBweS1jbGk:1.1.10-aplus.351
similarity = 0.767
summary = stored previous version shares package body but lacks this dangerous source file
Code excerpt · 3 lines 344 if (!capability.ok) throw new Error ("SCOPE_CLAUDE_SANDBOX_UNAVAILABLE" );
345 const wrapped = await persistence.wrapCommand ('exec /bin/sh -c "$HAPPY_SCOPE_CLAUDE_COMMAND"' );
346 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-Ckjrb0oX.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-Ckjrb0oX.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()
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/main-Ckjrb0oX.cjs View on unpkg · L5 Code excerpt · 9 lines 5 var chalk = require ('chalk' );
6 var node_child_process = require ('node:child_process' );
7 var fs = require ('node:fs/promises' );
⋯
239 if (emptyPluginServers.length === 0 && (!opts?.settingsPath || !opts.sandbox && denyRules.length === 0 )) return opts?.settingsPath;
240 const rawSettings = opts?.settingsPath ? node_fs.readFileSync (opts.settingsPath, "utf8" ) : "{}" ;
241 let parsedSettings;
⋯
2142 const gateway = requireManagedGateway (envelope);
2143 const base = managedGatewayClientBaseUrl (envelope);
2144 if (envelope.agent === "claude" ) {
// Optional real-account mode: SAYCODE_FENCE_ACCOUNT=<name> SAYCODE_FENCE_UID=<uid> (set by macEgressFence.account.sh).
24 const FENCED_ACCOUNT = process.env.SAYCODE_FENCE_ACCOUNT
25 const FENCED_UID = Number (process.env.SAYCODE_FENCE_UID ?? 471 )
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' );
194 "@slopus/happy-wire" : "file:../happy-wire" ,
195 "@stablelib/base64" : "^2.0.1" ,
196 "@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));
22 const saycodeBin = manifest.bin
4
import { spawn, execFileSync, execSync, execFile, exec as exec$2 } from 'node:child_process' ;
5 import { mkdir, readFile, mkdtemp, writeFile, rm, open, rename, unlink, readdir, link, lstat, realpath, stat, copyFile, constants as constants$1, chmod, opendir, access as access$1...