Loading npm security reports…
Loading npm security reports…
autohand-cli@0.9.7: Install hook abuse – npm package flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 23 findings warrant review before installing.
AI security reviewscanned on Sep 11, 2026, 22:20 UTC · by lpm-firewall-ai No concrete covert exfiltration or destructive payload was confirmed, but the automatic postinstall mutation of other installed packages is a material install-time risk. The credential flow is explicit but adds persistence and third-party network exposure.
Static reason
One or more suspicious static signals were detected.
Trigger
npm installation; separately, selecting the LLM Gateway provider in the CLI setup flow.
Impact
The dependency tree is modified during installation, and a user-provided gateway credential is retained for later network use.
Mechanism
Install-time dependency patching and API-key configuration persistence.
Evidence
package.json scripts/ensure-ink-cursor-intent.mjs scripts/ensure-node-pty-helper-permissions.mjs dist/chunk-GFIH2MLJ.js node_modules/ink/build/log-update.js node_modules/node-pty/**/spawn-helper ~/.autohand/config.json
Decision evidencepublic snapshot Evidence for warning
The install lifecycle automatically runs two scripts that modify installed dependencies. One lifecycle script rewrites Ink's renderer file after checking its version. The other lifecycle script adds execute permission to node-pty's helper binary. An interactive provider wizard accepts an API key, fixes its endpoint to LLM Gateway, and saves the configuration. Evidence against
The Ink rewrite is narrowly version-checked and aborts when the expected source is not present. The gateway key is requested in a user-facing wizard and can be cancelled. Workspace hooks and MCP servers are protected by a content-fingerprint trust check. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 701 files · 13.2 MB of source
50 external domains referenced
127.0.0.1 169.254.169.254 ai.azure.com ai.azure.com-on aiplatform.googleapis.com api.anthropic.com api.autohand.ai api.cerebras.ai api.deepseek.com api.exa.ai api.example.com api.github.com api.llmgateway.io api.openai.com api.parallel.ai api.sakana.ai api.search.brave.com api.x.ai api.z.ai auth.openai.com auth.x.ai autohand.ai autohand.dev autohand.link brave.com build.nvidia.com buildmyagent.autohand.ai bun.sh chatgpt.com cli-chat-proxy.grok.com cli.github.com cloud.cerebras.ai cloud.google.com code.autohand.ai cognitiveservices.azure.com console.anthropic.com console.autohand.ai console.x.ai crates.io dev.autohand.ai developers.figma.com docs.autohand.ai docs.aws.amazon.com docs.github.com docs.netlify.com docs.newrelic.com docs.sentry.io exa.ai git-scm.com github.com Findings13 high · 6 medium · 4 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/ensure-node-pty-helper-permissions.mjs && node scripts/ensure-ink-cursor-intent.mjs
High Child process
Package source references child process execution.
dist/chunk-RRSX3MG6.cjs View on unpkg · L24 Code excerpt · 3 lines 24 // src/utils/runtimeVersion.ts
25 var _child_process = require ('child_process' );
26 var STABLE_VERSION_TAG = /^v (\d+)\.(\d+)\.(\d+)$/;
Code excerpt · 3 lines 65 linux: "curl -fsSL https://bun.sh/install | bash" ,
66 win32: 'powershell -c "irm bun.sh/install.ps1 | iex"'
67 }
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/chunk-M73M5VAJ.cjs View on unpkg · L1 Code excerpt · 3 lines 1 "use strict" ;Object.defineProperty (exports, "__esModule" , {value: true }); function _interopRequireDefault (obj) { return obj && obj.__esModule ? obj : { default : obj }; } function _...
2 var _chalk = require ('chalk' ); var _chalk2 = _interopRequireDefault (_chalk);
3 async function toggleYolo (ctx) {
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/chunk-A5FIBMJW.js View on unpkg · L162 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/chunk-A5FIBMJW.js View on unpkg · L162 Shared code excerpt · 2 findings · 11 lines Trigger-reachable persistence chain: scripts.start -> dist/index.js -> dist/acp-HRYPD6SD.js -> dist/chunk-A5FIBMJW.js
162 const fileFlags = fileValueFlags (config).join ("|" ) || "--path|--config" ;
163 return `#!/bin/bash
164 # Autohand CLI Bash Completion
165 # Add to ~/.bashrc or ~/.bash_completion:
166 # source <(autohand completion bash)
⋯
427 function () {
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/index.js View on unpkg · L1299 High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.js View on unpkg · L1299 High Trigger reachable command output exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/index.js View on unpkg · L1299 Shared code excerpt · 3 findings · 6 lines 1299 // src/discovery/cli.ts
1300 import { spawn as spawn2 } from "child_process" ;
1301 import { mkdtemp as mkdtemp2, rm as rm2, writeFile as writeFile2 } ;
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/chunk-VH6JZVYV.js View on unpkg · L9 Code excerpt · 12 lines 9 import fs from "fs-extra" ;
10 import { spawn, spawnSync } from "child_process" ;
11 import open from "open" ;
⋯
14 var CHROME_NATIVE_HOST_NAME = "ai.autohand.rpc" ;
15 var DEFAULT_CHROME_INSTALL_URL = "https://autohand.ai/chrome/installed" ;
16 var DEFAULT_HANDOFF_TTL_MS = 10 * 60 * 1e3;
⋯
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/chunk-AOTPTRLE.cjs View on unpkg · L58 Code excerpt · 12 lines 58 constructor (config, networkSettings) {;_class.prototype.__init.call (this );
59 this .baseUrl = config.baseUrl || "http://localhost:11434" ;
60 this .model = config.model || DEFAULT_OLLAMA_MODEL;
⋯
86 }
87 const data = await response.json ();
88 return _chunkIIG4RDK2cjs.mergeModelIds.call (void 0 ,
⋯
173 },
174 body: JSON.stringify (body),
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/chunk-GFIH2MLJ.js View on unpkg · L458 Code excerpt · 12 lines 458 // [redacted].ts
459 import { execFile } from "child_process" ;
460 import fs from "fs/promises" ;
⋯
1391 "" ,
1392 "### Available Tools" ,
1393 "Exact tool schemas are selected per request based on the user intent and recent tool results." ,
⋯
5431 var DEFAULT_CONFIG = {
5432 baseUrl: "https://api.autohand.ai" ,
5433 timeout: 5e3,
High Trigger reachable external AI agent control surface mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/chunk-HOSA62TD.js View on unpkg Scanner record · 29 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
import {
default_max_concurrent_threads_per_session,
max_concurrent_threads_per_session,
isvalidsessionthreadlimit
} from "./chunk-nfesj7i2.js";
import {
getcustomproviderconfig,
isautohandinferenceenabled,
iscustomprovidername
} from "./chunk-q2tlhekq.js";
import {
isawsbedrockproviderenabled
} from "./chunk-fhco5yuv.js";
import {
getproviderdefaultmodel,
getprovidermodeloptions,
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/chunk-4252CEN3.cjs View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 18
Trigger reachable command output exfiltration
Code↓
Package metadata 7 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
detectShell
428 const shell = process.env.SHELL || "" ;
429 if (shell.includes ("bash" )) return "bash" ;
434 function getCompletionInstallPath (shell) {
435 const home = os.homedir ();
from
"fs/promises"
1306 // src/discovery/workerSource.ts
1307 var discoveryWorkerSource = 'import{createRequire as X$}from"node:module";var G$=Object.defineProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Y$=(e)=>e;f...
1308 var workerSource_default = discoveryWorkerSource;
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/index.js View on unpkg Scanner record · 6 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/index.jsfs.writeFileSync(AUTOHAND_FILES.deviceId, id);
await fs2.writeFile(path2.join(lock, owner), JSON.stringify({ version: 1, ownerId: owner.slice(0, -6), pid: process.pid, createdAt: Date.now() }), { mode: 384, flag: "wx" });
await fs2.writeFile(path2.join(temporary, "metadata.json"), JSON.stringify(metadata, null, 2), { mode: 384 });
await fs2.writeFile(path2.join(temporary, "conversation.jsonl"), value.messages.map((message) => JSON.stringify({
await fs2.writeFile(indexTemporary, JSON.stringify(index, null, 2), { mode: 384, flag: "wx" });
import { mkdtemp as mkdtemp2, rm as rm2, writeFile as writeFile2 } from "fs/promises"
43 function getBrowserLaunchTargets (browser, platform = process.platform) {
44 if (platform === "darwin" ) {
47 { probe: "/Applications/Google Chrome.app" , appName: "Google Chrome" , command: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" },
48 { probe: path.join (os.homedir (), "Applications" , "Google Chrome.app" ), appName: "Google Chrome" , command: path.join (os.homedir (), "Applications" , "Google Chrome.app" , "Contents" , "...
175 signal: combinedSignal
2723 var EXPIRY_BUFFER_MS = 5 * 60 * 1e3;
2724 var IMDS_ENDPOINT = "http://169.254.169.[redacted]" ;
2725 var COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.default" ;
6030 if (fs8.existsSync (deviceIdPath)) {
6031 return fs8.readFileSync (deviceIdPath, "utf-8" ).trim ();
getproviderruntimedefaultmodel,
normalizeopenroutermodelid
} from "./chunk-taskbrpi.js";
} from "./chunk-47uozs2b.js";
} from "./chunk-xovz5l2q.js";