Loading npm security reports…
Loading npm security reports…
very-happy-cli@0.2.163: 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 5, 2026, 15:11 UTC · by lpm-firewall-ai Source supports a warning for explicit user-command mutation of an agent control surface under the supplied policy. The inspected activation and local forwarding guards do not support a malicious publish block.
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
Running very-happy install-terminal-hooks.
Impact
Claude subsequently executes the installed command on session events, with forwarding restricted by terminal environment checks.
Mechanism
The installer merges session hooks into Claude settings; those hooks invoke a package script that conditionally forwards hook data to the local daemon.
Evidence
dist/main-BJlGidfv.mjs dist/installTerminalHooks-By7gBMEF.mjs scripts/terminal_mirror_forwarder.cjs .claude/settings.json
public snapshot
Evidence for warning
An explicit install-terminal-hooks CLI command activates the Claude hook installer. The installer writes settings.json in CLAUDE_CONFIG_DIR or the user's .claude directory. It adds wildcard command hooks for SessionStart and SessionEnd while preserving other hooks. The forwarder exits outside Very Happy terminals and sends hook data to a local daemon. The npm postinstall invokes tool extraction and permission repair rather than the agent hook installer. Evidence against
No inspected source established covert credential export or unconsented install-time agent configuration mutation. The hook setup requires an explicit CLI command and supports removal. 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 267 files · 4.31 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 ;
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/spawnHappyCLI-Dz2ZHrsN.cjs View on unpkg · L2 Code excerpt · 2 lines 3 var spawn = require ('cross-spawn' );
4 var path = require ('node:path' );
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/install-Dixfzmb_.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-DVOAWiZx.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 Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/run-CptLbkQ4.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-CptLbkQ4.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-FZRugy70.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-BTltA-ZZ.mjs View on unpkg · L47 Code excerpt · 4 lines package = very-happy-cli; repositoryIdentity = very-happy; dependency = expo-server-sdk
47 // External packages imported on demand
48 ["expo-server-sdk" , () => import ('expo-server-sdk' )],
49 ["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-BHfrAyds.mjs View on unpkg · L7 Code excerpt · 7 lines Cross-file remote execution chain: dist/codexCommand-BHfrAyds.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-CCE0Y3gR.mjs' ;
8 import { useStdout, useInput, Box, Text, render } from 'ink' ;
9 import { c as claimSessionOrExit, a as applyServerSnapshot, w as withoutServerSnapshot, m as mergeReconnectMetadata } from './sessionLock-Dab6_dCd.mjs' ;
⋯
15 { B BaseReasoningProcessor } ;
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/install-BnTP73AE.cjs View on unpkg · L4 Code excerpt · 12 lines Trigger-reachable persistence chain: manifest.main -> dist/index.cjs -> dist/index-B6MVw_Xb.cjs -> dist/main-BfA1Vtqq.cjs -> dist/install-BnTP73AE.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-BPMzMoiQ.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/connect-BPMzMoiQ.cjs#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/apiMachine-BxCy5_No.cjs View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = very-happy-cli@0.2.161
matchedIdentity = npm:dmVyeS1oYXBweS1jbGk:0.2.161
similarity = 0.867
summary = stored previous version shares package body but lacks this dangerous source file
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, {
as
as
from
'./api-D5kfP3JF.mjs'
14 import { a as authAndSetupMachineIfNeeded } from './auth-CRm8yNv6.mjs' ;
15 import { c as configuration, f as ensurePrivateDirectorySync, w as writePrivateFileSync } from './configuration-B0c-OP_h.mjs' ;
16 import { spawn, execSync } from 'child_process' ;
25 import { validatorCompiler, serializerCompiler } from 'fastify-type-provider-zod' ;
import
as
from
'./BaseReasoningProcessor-CM-ijU4F.mjs'
16 import { execSync } from 'node:child_process' ;
17 import { readSettings } from './persistence-DgBhXxu7.mjs' ;
26 import { n as notifyDaemonSessionStarted, g
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" );