Loading npm security reports…
Loading npm security reports…
autohand-cli@0.9.8: Credential exfiltration – npm package flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 25 findings warrant review before installing.
AI security reviewscanned on Sep 22, 2026, 03:27 UTC · by lpm-firewall-ai The package forwards an existing service token to a configurable endpoint without binding it to the intended Autohand host. The behavior is user-triggered and conditional, so it warrants a warning rather than a block.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
The user runs a user-scoped MCP add, remove, connect, disconnect, or install action while authenticated and sync is enabled.
Impact
An operator-controlled endpoint can receive the existing Autohand account token and may return managed connector configuration.
Mechanism
The MCP command passes config.auth.token to the control-plane client. That client accepts an unrestricted configured HTTPS base URL and attaches the token as a Bearer header.
Evidence
dist/index.js dist/chunk-K2GTCDIY.js dist/chunk-Z4U3SITM.js
public snapshot
Evidence for warning
A user-scoped MCP action synchronizes the stored account token when sync is enabled. The control-plane base URL accepts AUTOHAND_API_URL or a saved configuration value without a host allowlist. Control-plane requests send that account token as a Bearer authorization header to the configured base URL. Evidence against
The sync path requires a user-scoped MCP action, an existing account token, and enabled sync. The configured endpoint must use HTTPS, except for loopback HTTP. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell
Supply chain High entropy strings · Possible obfuscation · URL strings
Manifest No manifest risk signals triggered.
Scanned 757 files · 14.3 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 Findings1 critical · 13 high · 6 medium · 5 low Source & flagged code17 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-6IMLNJ6I.cjs View on unpkg · L5 Code excerpt · 3 lines 5 // src/session/peers/PeerScope.ts
6 var _child_process = require ('child_process' );
7 var _crypto = require ('crypto' );
Code excerpt · 3 lines 11333 import { promisify } from "util" ;
11334 var execAsync = promisify (exec);
11335 async function executeBootstrapCommand (command, options) {
High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/chunk-UGLND7R7.js View on unpkg · L386 Code excerpt · 12 lines 386 import {
387 ensurePrivatePeerDirectory,
388 peerFilesystemErrorCode,
⋯
Medium Dynamic require
Package source references dynamic require/import behavior.
dist/clear-D4JTGUZC.cjs View on unpkg · L4 Code excerpt · 2 lines 5 var _chunk7TMPNNTYcjs = require ('./chunk-7TMPNNTY.cjs' );
6 require ('./chunk-46TJMNQV.cjs' );
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/chunk-N6XQRJ4K.cjs View on unpkg · L162 Code excerpt · 11 lines 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 detectShell () {
428 const shell = process.env.SHELL || "" ;
429 if (shell.includes ("bash" )) ;
Critical Hardcoded runtime data exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/chunk-BSXTRWGC.js View on unpkg · L32 Code excerpt · 12 lines Source sends the broad process environment to a literal external destination.
32 const url = new URL (value.actionUrl);
33 if (url.origin !== "https://console.autohand.ai" || url.pathname !== "/billing" ) return void 0 ;
34 } catch {
⋯
247 },
248 body: JSON.stringify ({
249 clientId: "autohand-cli" ,
⋯
256 response,
257
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"
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 · L1500 Code excerpt · 6 lines High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/chunk-AUUANMTH.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" ;
⋯
13 var CHROME_NATIVE_HOST_NAME = "ai.autohand.rpc" ;
14 var DEFAULT_CHROME_INSTALL_URL = "https://autohand.ai/chrome/installed" ;
15 var DEFAULT_HANDOFF_TTL_MS = 10 * 60 * 1e3;
⋯
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/chunk-XLKMHA4C.js View on unpkg · L60 Code excerpt · 12 lines 60 constructor (config, networkSettings) {
61 this .baseUrl = config.baseUrl || "http://localhost:11434" ;
62 this .model = config.model || DEFAULT_OLLAMA_MODEL;
⋯
88 }
89 const data = await response.json ();
90 return mergeModelIds (
⋯
175 },
176 body: JSON.stringify (body),
177 signal: combinedSignal
⋯
2754 EXPIRY_BUFFER_MS = * * 1e3;
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-K2GTCDIY.js View on unpkg Scanner record · 16 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
{
if (!active) return { config };
const layered = structuredclone(config);
const entries = [];
const apply = (path3, value) => {
const base = readpath(layered, path3);
const applied = structuredclone(value);
writepath(layered, path3, applied);
entries.push({ path: path3, applied: structuredclone(applied), hadbase: base.present, base: base.present ? structuredclone(base.value) : void 0 });
};
if (active.profile) {
const profiles = isrecord(config.profiles) ? config.profiles : {};
const profile = profiles[active.profile];
if (!isrecord(profile)) {
High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/chunk-W55HKAGL.js View on unpkg · L162 Code excerpt · 11 lines Trigger-reachable persistence chain: scripts.start -> dist/index.js -> dist/acp-6MQNYYLN.js -> dist/chunk-W55HKAGL.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 detectShell () {
428 const shell = process.env.SHELL || "" ;
429 if (shell. ( )) ;
dist/chunk-2Q6EWUIV.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/chunk-2Q6EWUIV.cjs#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 18
High Remote agent bridge Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
752 this .lastWritten = title2;
753 this .write (terminalTitleSequence (title2));
812 const more = start >= 0 && start + page.length < peers.length;
813 return { peers: structuredClone (page), ...more ? { nextCursor: Buffer.from (JSON.stringify ([scope, search, page.at (-1 ).peerId])).toString ("base64url" ) } : {} };
1000 import { chmod, lstat, realpath, rmdir, unlink } from "fs/promises" ;
1001 import { createServer, createConnection } from "net" ;
1002 import path2 from "path" ;
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/chunk-UGLND7R7.js View on unpkg · L2054 Code excerpt · 12 lines 2054 // [redacted].ts
2055 import { execFile } from "child_process" ;
2056 import fs from "fs/promises" ;
⋯
3038 "" ,
3039 "### Available Tools" ,
3040 "Exact tool schemas are selected per request based on the user intent and recent tool results." ,
⋯
7095 var DEFAULT_CONFIG = {
7096 baseUrl: "https://api.autohand.ai" ,
7097 timeout: 5e3,
⋯
7691 if (fs8.existsSync (deviceIdPath)) {
7692 return fs8.readFileSync (deviceIdPath, "utf-8" ).trim ();
7693 }
return
"bash"
434 function getCompletionInstallPath (shell) {
435 const home = _os2.default .homedir ();
data: await response.json ()
534 // src/auth/ensureAuth.ts
535 import { spawn, spawnSync } from "child_process" ;
536 import { platform } from "os" ;
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/chunk-BSXTRWGC.js View on unpkg · L561 Code excerpt · 9 lines 561 command = "sh" ;
562 args = ["-c" , "brew install autohandai/code/autohand-code || curl -fsSL https://autohand.ai/install.sh | sh" ];
563 } else {
⋯
570 return new Promise ((resolve, reject) => {
571 const child = spawn (command, args, {
572 stdio: "inherit" ,
⋯
575 // session inside the one being upgraded must never start.
576 env: { ...process.env, AUTOHAND_INSTALL_FIRST_RUN: "no" }
577 });
Trigger-reachable command-output exfiltration chain: scripts.start -> dist/index.js
1500 // src/discovery/cli.ts
1501 import { spawn as spawn2 } from "child_process" ;
1502 import { mkdtemp as mkdtemp2, rm as rm2, writeFile as writeFile2 } from "fs/promises" ;
⋯
1507 // src/discovery/workerSource.ts
1508 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...
1509 var workerSource_default = discoveryWorkerSource;
42 function getBrowserLaunchTargets (browser, platform = process.platform) {
43 if (platform === "darwin" ) {
46 { probe: "/Applications/Google Chrome.app" , appName: "Google Chrome" , command: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" },
47 { probe: path.join (os.homedir (), "Applications" , "Google Chrome.app" ), appName: "Google Chrome" , command: path.join (os.homedir (), "Applications" , "Google Chrome.app" , "Contents" , "...
var
5
60
2755 var IMDS_ENDPOINT = "http://169.254.169.[redacted]" ;
2756 var COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.default" ;
const names = object.keys(profiles);
throw new error(`profile "${active.profile}" i
includes
"bash"
return
"bash"
434 function getCompletionInstallPath (shell) {
435 const home = os.homedir ();