Loading npm security reports…
Loading npm security reports…
very-happy-cli@0.2.161: 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 Sep 30, 2026, 12:31 UTC · by lpm-firewall-ai Source proves explicit user-command mutation of Claude's agent configuration, which the supplied policy classifies as a warning. The inspected activation path does not establish unconsented npm lifecycle mutation or credential theft.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
The user runs very-happy install-terminal-hooks; subsequent Claude session events invoke the installed hooks.
Impact
Claude configuration is modified to execute package code on future session events; eligible terminal sessions can be mirrored.
Mechanism
The installer merges SessionStart and SessionEnd hooks that execute the package forwarder, which conditionally posts event data to the local daemon.
Evidence
dist/main-BktM4A1K.mjs dist/installTerminalHooks-By7gBMEF.mjs scripts/terminal_mirror_forwarder.cjs settings.json
public snapshot
Evidence for warning
The explicit install-terminal-hooks CLI command activates the Claude hook installer. The installer writes settings.json under CLAUDE_CONFIG_DIR or ~/.claude. The installer merges wildcard command hooks that execute the package's terminal mirror forwarder. The forwarder exits outside eligible Very Happy terminals and sends hook events to the local daemon. The npm postinstall invokes tool unpacking and PTY permission repair, separately from the hook installer. Evidence against
The hook installation requires an explicit CLI command and checks tmux readiness. Existing foreign hook commands are preserved, and malformed settings cause installation to stop. The inspected forwarder uses loopback networking; no covert external recipient was established. 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 263 files · 4.28 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 Findings1 critical · 11 high · 7 medium · 5 low Source & flagged code16 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 ;
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-CagmEoez.cjs View on unpkg · L83 Code excerpt · 9 lines 83 return {
84 url: `http://127.0.0.1:${server.address().port}${path}` ,
85 stop: () => new Promise ((resolve, reject) => {
⋯
91 async function runPiTerminal (args) {
92 const terminalId = terminalToolContext.resolveMcpTerminalId ({ VH_TERMINAL_ID: process.env.VH_TERMINAL_ID });
93 if (!terminalId) throw new Error ("Run `very-happy pi --terminal` inside a Very Happy terminal (VH_TERMINAL_ID is required)." );
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/install-ClUUl3yp.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 Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/run-D5xAEWSB.cjs View on unpkg Scanner record · 8 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/run-D5xAEWSB.cjsreturn serverMetadata.claudeSessionId ?? void 0;
return persistedMetadata?.claudeSessionId ?? void 0;
if (!metadata.codexThreadId) return { ok: false, reason: "no-backend-id", detail: "session has no Codex thread id" };
if (!mirrorProtocol.isClaudeSessionId(metadata.claudeSessionId)) {
if (!fs.conversationExists(metadata.path, metadata.claudeSessionId)) {
return { ok: false, reason: "conversation-missing", detail: `conversation ${metadata.claudeSessionId} is not on disk` };
function [redacted](authorization, controlToken) {
const candidate = authorization?.startsWith(prefix) ? authorization.slice(prefix.length) :
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/run-2l5vSt2h.mjs View on unpkg · L1 Code excerpt · 10 lines 1 import { execFile, spawn as spawn$1, spawnSync } from 'node:child_process' ;
2 import { p as AGENT_VERSION_SOURCES, q as AUTOMATION_SUMMARY_MAX_CHARS, r as AUTOMATION_CLAIM_MAX_RUNS, t as AUTOMATION_DEFAULT_LEASE_MS, i as isAutomationRunTerminal } from './ind...
⋯
6 import * as tmp from 'tmp' ;
7 import axios from 'axios' ;
8 import { T TurnActivityTracker, A ApiClient } ;
High Copied package dependency bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
dist/selfCheck-CU8xSDsl.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-C7H0NpBe.cjs View on unpkg · L16 Code excerpt · 11 lines Cross-file remote execution chain: dist/codexCommand-C7H0NpBe.cjs spawns dist/resources-JDPugcDq.cjs; helper contains network access plus dynamic code execution.
16 var BaseReasoningProcessor = require ('./BaseReasoningProcessor-fsVNmCEF.cjs' );
17 var node_child_process = require ('node:child_process' );
18 var persistence = require ('./persistence-CBNMzSa8.cjs' );
⋯
36 require ('tweetnacl' );
37 require ('axios' );
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/install-Bu85vlHD.cjs View on unpkg · L4 Code excerpt · 12 lines Trigger-reachable persistence chain: manifest.main -> dist/index.cjs -> dist/index-gNTWtSKN.cjs -> dist/main-CLaX-t-b.cjs -> dist/install-Bu85vlHD.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-hgcNjyAB.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-hgcNjyAB.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.21
matchedPath = scripts/ripgrep_launcher.cjs
matchedIdentity = npm:b3phaXlhLWNsaQ:0.11.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
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/spawn-CXTH7qg1.cjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = very-happy-cli@0.2.160
matchedIdentity = npm:dmVyeS1oYXBweS1jbGk:0.2.160
similarity = 0.942
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
⋯
97 return await new Promise ((resolve, reject) => {
98 const child = node_child_process.spawn (runtime.PI_ACP_PI_COMMAND, args, {
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/piTerminal-CagmEoez.cjs View on unpkg · L2 Code excerpt · 2 lines 3 var node_child_process = require ('node:child_process' );
4 var node_crypto = require ('node:crypto' );
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" );
as
as
from
'./api-SffjRQ1b.mjs'
14 import { a as authAndSetupMachineIfNeeded } from './auth-CYHjQ8oQ.mjs' ;
15 import { c as configuration, f as ensurePrivateDirectorySync, w as writePrivateFileSync } from './configuration-DoWFJUPm.mjs' ;
16 import { spawn, execSync } from 'child_process' ;
25 import { validatorCompiler, serializerCompiler } from 'fastify-type-provider-zod' ;
38
require ('./time-CNRE4ChD.cjs' );
807 const confirmationTimeoutRef = React.useRef (null );
808 const { stdout } = ink.useStdout ();
809 const terminalWidth = stdout.columns || 80 ;
913 /* @__PURE__ */ React.createElement (ink.Box, { flexDirection: "column" , alignItems: "center" }, actionInProgress ? /* @__PURE__ */ React.createElement (ink.Text, { color
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" );