Loading npm security reports…
Loading npm security reports…
very-happy-cli@0.2.173: 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 Oct 15, 2026, 04:19 UTC · by lpm-firewall-ai The package's postinstall performs tool unpacking and a PTY permission fix, while Claude hook registration requires a separate explicit command. Because that command creates persistent agent hooks, classify it as a guarded agent capability and warn without blocking publication.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
The user runs the terminal hook installer; the hooks run at Claude session start and end.
Impact
Claude hook data from tagged Very Happy terminals reaches the local daemon, and the registered hooks remain active until removed.
Mechanism
The installer writes Claude settings, and the forwarder sends the hook payload with a terminal ID to the local daemon.
Evidence
package.json dist/main-CJCss2TE.cjs dist/installTerminalHooks-BQZbvxsZ.cjs scripts/terminal_mirror_forwarder.cjs scripts/unpack-tools.cjs scripts/fix-pty-perms.cjs ~/.claude/settings.json
127.0.0.1
Decision evidencepublic snapshot Evidence for warning
The CLI has an explicit subcommand that invokes the terminal hook installer. The installer writes Claude settings and registers SessionStart and SessionEnd hooks. The forwarder requires a Very Happy terminal ID and posts Claude's hook payload to the local daemon. The npm postinstall unpacks platform tools and fixes a PTY helper's permissions; it does not install Claude hooks. Evidence against
The Claude settings change requires a user to invoke the dedicated installer command. The forwarder is gated to tagged Very Happy terminals and sends to 127.0.0.1; the inspected path shows no external recipient. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 276 files · 4.77 MB of source
19 external domains referenced
127.0.0.1 accounts.google.com api.cluster-fluster.com api.openai.com auth.openai.com claude.ai code.claude.com console.anthropic.com developers.google.com docs.openclaw.ai github.com goo.gle happy.mereith.com oauth2.googleapis.com opencode.ai registry.npmjs.org veryhappy.dev www.apple.com www.googleapis.com Findings10 high · 7 medium · 5 low Source & flagged code14 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/unpack-tools.cjs && node scripts/fix-pty-perms.cjs
High Child process
Package source references child process execution.
bin/very-happy.mjs View on unpkg · L5 Code excerpt · 2 lines 6 import { execFileSync } from 'child_process' ;
7 import { fileURLToPath } from 'url' ;
Code excerpt · 3 lines 24 try {
25 child_process.execSync (`powershell -NoProfile -Command "Get-Command ${name} -ErrorAction SilentlyContinue"` , { stdio: "ignore" , windowsHide: true });
26 return true ;
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/auth-3UXAs__6.cjs View on unpkg · L2 Code excerpt · 2 lines 3 var authRelay = require ('./authRelay-BdYkC1Po.cjs' );
4 var configuration = require ('./configuration-C_-2io9T.cjs' );
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/install-BFd6bwk2.mjs View on unpkg · L2 Code excerpt · 12 lines 2 import { existsSync, writeFileSync, chmodSync } from 'fs' ;
3 import { execSync } from 'child_process' ;
4 import { t as trimIdent } from './trimIdent-BAjmv_TG.mjs' ;
⋯
20 logger.info ("Daemon plist already exists. Uninstalling first..." );
21 execSync (`launchctl unload ${PLIST_FILE}` , { stdio: "inherit" });
22 }
⋯
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/piTerminal-yp98lIpx.mjs View on unpkg · L81 Code excerpt · 9 lines 81 return {
82 url: `http://127.0.0.1:${server.address().port}${path}` ,
83 stop: () => new Promise ((resolve, reject) => {
⋯
89 async function runPiTerminal (args) {
90 const terminalId = resolveMcpTerminalId ({ VH_TERMINAL_ID: process.env.VH_TERMINAL_ID });
91 if (!terminalId) throw new Error ("Run `very-happy pi --terminal` inside a Very Happy terminal (VH_TERMINAL_ID is required)." );
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/mirrorProtocol-hPlbcL2P.mjs View on unpkg · L1 Code excerpt · 12 lines 1 import { spawn, execFileSync, execFile } from 'node:child_process' ;
2 import { createHash, randomUUID } from 'node:crypto' ;
⋯
5 import { realpath, lstat, stat, mkdir, copyFile, symlink, readdir } from 'node:fs/promises' ;
6 import { f as ensurePrivateDirectorySync, w as writePrivateFileSync } from './configuration-2Eck1oZf.mjs' ;
7 import { p as AGENT_VERSION_SOURCES } from './index-B0HEEYGh.mjs' ;
High Copied package dependency bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
dist/selfCheck-B69om90v.cjs View on unpkg · L49 Code excerpt · 4 lines package = very-happy-cli; repositoryIdentity = very-happy; dependency = expo-server-sdk
49 // External packages imported on demand
50 ["expo-server-sdk" , () => import ('expo-server-sdk' )],
51 ["ink" , () => import ('ink' )],
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/codexCommand-3ZsmFNCE.mjs View on unpkg · L7 Code excerpt · 6 lines Cross-file remote execution chain: dist/codexCommand-3ZsmFNCE.mjs spawns dist/resources-BdFBQi8r.mjs; helper contains network access plus dynamic code execution.
7 import { C as CLAUDE_ATTACHMENT_KINDS, a as stageClaudeAttachments, b as appendStagedAttachmentsToPrompt } from './attachmentContent-DNsACM9b.mjs' ;
8 import { useStdout, useInput, Box, Text, render } from 'ink' ;
9 import { c as claimSessionOrExit, a as applyServerSnapshot, b as applyHibernationReplay, w as withoutServerSnapshot, m as mergeReconnectMetadata } from './sessionLock-ZtySCwjt.mjs' ...
⋯
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/install-D8XM9y0N.cjs View on unpkg · L4 Code excerpt · 12 lines Trigger-reachable persistence chain: manifest.main -> dist/index.cjs -> dist/index-I6GVU3_G.cjs -> dist/main-CJCss2TE.cjs -> dist/install-D8XM9y0N.cjs
4 var fs = require ('fs' );
5 var child_process = require ('child_process' );
6 var trimIdent = require ('./trimIdent-4gvk9Wk6.cjs' );
⋯
22 logger.logger.info ("Daemon plist already exists. Uninstalling first..." );
23 child_process.execSync (`launchctl unload ${PLIST_FILE}` , { stdio: "inherit" });
dist/connect-CJc2q7Zb.mjs#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/connect-CJc2q7Zb.mjs#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 9
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
scripts/ripgrep_launcher.cjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = ozaiya-cli@0.11.28
matchedPath = scripts/ripgrep_launcher.cjs
matchedIdentity = npm:b3phaXlhLWNsaQ:0.11.28
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Copied package dependency bridge
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
52
<key>StandardErrorPath</key>
53 <string>${os.homedir ()}/.happy/daemon.err</string>
75 async function install () {
76 if (process.platform !== "darwin" ) {
77 throw new Error ("Daemon installation is currently only supported on macOS" );
⋯
95 return await new Promise ((resolve, reject) => {
96 const child = spawn (runtime.PI_ACP_PI_COMMAND, args, {
107 raw = JSON.parse (text);
138 if (isShebangScript (script2)) {
139 return { kind: "unsupported" , script: script2, message: 'A "#!" setup script needs a POSIX shell; native Windows runs setup through cmd.exe. Add "setupWindows" with cmd syntax.' };
16 import { B as BaseReasoningProcessor } from './BaseReasoningProcessor-Cnmvd83F.mjs' ;
17 import { execSync } from 'node:child_process' ;
18 import { r as readSettings, l as latchKeepAwake, e as evaluateWrapperIdle, a as r
54 <key>StandardErrorPath</key>
55 <string>${os.homedir ()}/.happy/daemon.err</string>
77 async function install () {
78 if (process.platform !== "darwin" ) {
79 throw new Error ("Daemon installation is currently only supported on macOS" );