1827try {
L1828: return (await fetch(`http://127.0.0.1:${port}/v1/models`, { signal: AbortSignal.timeout(3e3) })).ok;
L1829: } catch {
...
L1838: const [cmd, ...args] = plan.argv;
L1839: const child = spawn(cmd, args, {
L1840: env: {
L1841: ...process.env,
L1842: ...plan.env
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/cli/index.mjsView on unpkg · L1827 •Trigger-reachable chain: manifest.bin -> dist/cli/index.mjs
Reachable file contains a blocking source-risk pattern.
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli/index.mjsView on unpkg •Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli/index.mjs:
import { appendFileSync, chmodSync, closeSync, copyFileSync, cpSync, createReadStream, existsSync, fstatSync, lstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, r...
import { createInterface } from "node:readline";
for (const p of pages) writeFileSync(join(dir, p.name), p.markdown);
writeFileSync(file, md + "\n");
if (!existsSync(envFile)) writeFileSync(envFile, "arm load thermal\n");
writeFileSync(file, `# A/B results\n\nGenerated by \`pai worker bench\`; void rows excluded from pass/total.\n\n${aggregate(rows)}\n`);
const SETTINGS_FILE = join(join(homedir(), ".claude"), "settings.json");
* ~/.cla
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli/index.mjsView on unpkg •Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
dir(), "pai-sk[redacted]");
if (!existssync(templatepath)) {
console.log(c.warn("skill template not found: " + templatepath));
console.log(c.dim(" skipping pai skill installation."));
return false;
}
const skilldir = join(homedir(), ".claude", "skills", "pai");
const skillfile = join(skilldir, "skill.md");
if (existssync(skillfile)) {
const content = readfilesync(skillfile, "utf-8");
const isgenerated = content.includes("generated by pai setup");
if (isgenerated) console.log(c.dim(" found existing pai-generated skill.md."));
else {
console.log(c.yellow(" found existing skill.md (not pai-generated)."));
console.log(c.dim(" a backup will be created bef
HighTrigger 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/cli/index.mjsView on unpkg 35Cross-file remote execution chain: dist/cli/index.mjs spawns dist/daemon-mcp/index.mjs; helper contains network access plus dynamic code execution.
L35: import { a as resolveSessionByNameOrId, o as scanCacheFilePath, r as migrateSessionScanCache, s as scanSessions, t as fmtAge } from "../session-scan-PeDLEeXW.mjs";
L36: import { $ as renderSchedule, A as findLocal, At as spawnRouter, B as runMessenger, Ct as QueueReporter, Dt as routerPidFile, Et as routerLogFile, F as writePolicy, I as clickrCont...
L37: import "../kill-tree-Dp90dC1-.mjs";
...
L48: import chalk from "chalk";
L49: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L50: import { parseDocument } from "yaml";
L51: import { createHash, randomBytes, randomUUID } from "node:crypto";
L52: imp
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/cli/index.mjsView on unpkg · L35 35Trigger-reachable persistence chain: manifest.bin -> dist/cli/index.mjs
L35: import { a as resolveSessionByNameOrId, o as scanCacheFilePath, r as migrateSessionScanCache, s as scanSessions, t as fmtAge } from "../session-scan-PeDLEeXW.mjs";
L36: import { $ as renderSchedule, A as findLocal, At as spawnRouter, B as runMessenger, Ct as QueueReporter, Dt as routerPidFile, Et as routerLogFile, F as writePolicy, I as clickrCont...
L37: import "../kill-tree-Dp90dC1-.mjs";
...
L48: import chalk from "chalk";
L49: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L50: import { parseDocument } from "yaml";
L51: import { createHash, randomBytes, randomUUID } from "node:crypto";
L52: import http from "node:http";
L53: import pg from "pg";
...
L88: stream.once("c
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/cli/index.mjsView on unpkg · L35 35import { a as resolveSessionByNameOrId, o as scanCacheFilePath, r as migrateSessionScanCache, s as scanSessions, t as fmtAge } from "../session-scan-PeDLEeXW.mjs";
L36: import { $ as renderSchedule, A as findLocal, At as spawnRouter, B as runMessenger, Ct as QueueReporter, Dt as routerPidFile, Et as routerLogFile, F as writePolicy, I as clickrCont...
L37: import "../kill-tree-Dp90dC1-.mjs";
...
L48: import chalk from "chalk";
L49: import { execFile, execFileSync, execSync, spawn, spawnSync } from "node:child_process";
L50: import { parseDocument } from "yaml";
L51: import { createHash, randomBytes, randomUUID } from "node:crypto";
L52: import http from "node:http";
L53: import pg from "pg";
...
L88: stream.once("close", () => resolve());
L89: stream.write("", () => resolve());
L90: })
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/cli/index.mjsView on unpkg · L35