134for (const host of ["registry.npmjs.org", "github.com"]) {
L135: const dns = spawnSync("host", ["-W", "5", host], { encoding: "utf-8", stdio: "pipe", timeout: 10_000 });
L136: logFile(`DNS ${host}: ${dns.status === 0 ? "OK" : "FAIL"} — ${(dns.stdout || dns.stderr || "").trim().split("\n")[0]}`);
...
L141: "--connect-timeout", "10",
L142: "https://registry.npmjs.org/",
L143: ], { encoding: "utf-8", stdio: "pipe", timeout: 15_000 });
...
L148: function captureNpmDebugLog() {
L149: const logsDir = resolve(process.env.HOME ?? "/root", ".npm/_logs");
L150: if (!existsSync(logsDir))
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/index.jsView on unpkg · L134 1#!/usr/bin/env node
L2: import { execFileSync, spawn, spawnSync } from "node:child_process";
L3: import { existsSync, mkdirSync, writeFileSync, cpSync, readFileSync, rmSync, readdirSync, appendFileSync, openSync, closeSync, chmodSync, statSync, realpathSync } from "node:fs";
...
L9: import { buildHeartbeatCronBlock, mergeHeartbeatBlock } from "./cron-registration.js";
L10: import { validateTierFlag, validateEntitlementBase64, applyTierToAccountConfig, entitlementPath } from "./tier-flag.js";
L11: import { parseOsRelease, isUbuntuLike as isUbuntuLikePure, parseAptCacheCandidate, decideAptResolution, } from "./apt-resolve.js";
...
L44: }
L45: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L46: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L100: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L101: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L102: "=".repeat(64),
CriticalDownload Execute
Source downloads or fetches remote code and executes it.
dist/index.jsView on unpkg · L1 1Trigger-reachable chain: manifest.bin -> dist/index.js
L1: #!/usr/bin/env node
L2: import { execFileSync, spawn, spawnSync } from "node:child_process";
L3: import { existsSync, mkdirSync, writeFileSync, cpSync, readFileSync, rmSync, readdirSync, appendFileSync, openSync, closeSync, chmodSync, statSync, realpathSync } from "node:fs";
...
L9: import { buildHeartbeatCronBlock, mergeHeartbeatBlock } from "./cron-registration.js";
L10: import { validateTierFlag, validateEntitlementBase64, applyTierToAccountConfig, entitlementPath } from "./tier-flag.js";
L11: import { parseOsRelease, isUbuntuLike as isUbuntuLikePure, parseAptCacheCandidate, decideAptResolution, } from "./apt-resolve.js";
...
L44: }
L45: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L46: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L100: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L101: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L102: "=".repeat(64),
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/index.jsView on unpkg · L1 1#!/usr/bin/env node
L2: import { execFileSync, spawn, spawnSync } from "node:child_process";
L3: import { existsSync, mkdirSync, writeFileSync, cpSync, readFileSync, rmSync, readdirSync, appendFileSync, openSync, closeSync, chmodSync, statSync, realpathSync } from "node:fs";
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L1 506// Fetch + dearmor the signing key, write to /etc/apt/trusted.gpg.d/. Pipe
L507: // composition runs through bash -c so the curl|gpg pipeline is one
L508: // privileged command rather than two separate sudo escalations.
1#!/usr/bin/env node
L2: import { execFileSync, spawn, spawnSync } from "node:child_process";
L3: import { existsSync, mkdirSync, writeFileSync, cpSync, readFileSync, rmSync, readdirSync, appendFileSync, openSync, closeSync, chmodSync, statSync, realpathSync } from "node:fs";
...
L9: import { buildHeartbeatCronBlock, mergeHeartbeatBlock } from "./cron-registration.js";
L10: import { validateTierFlag, validateEntitlementBase64, applyTierToAccountConfig, entitlementPath } from "./tier-flag.js";
L11: import { parseOsRelease, isUbuntuLike as isUbuntuLikePure, parseAptCacheCandidate, decideAptResolution, } from "./apt-resolve.js";
...
L44: }
L45: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L46: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L100: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L101: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L102: "=".repeat(64),
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index.jsView on unpkg · L1 1Cross-file remote execution chain: dist/index.js spawns payload/platform/scripts/wifi-provision-server/server.js; helper contains network access plus dynamic code execution.
L1: #!/usr/bin/env node
L2: import { execFileSync, spawn, spawnSync } from "node:child_process";
L3: import { existsSync, mkdirSync, writeFileSync, cpSync, readFileSync, rmSync, readdirSync, appendFileSync, openSync, closeSync, chmodSync, statSync, realpathSync } from "node:fs";
...
L9: import { buildHeartbeatCronBlock, mergeHeartbeatBlock } from "./cron-registration.js";
L10: import { validateTierFlag, validateEntitlementBase64, applyTierToAccountConfig, entitlementPath } from "./tier-flag.js";
L11: import { parseOsRelease, isUbuntuLike as isUbuntuLikePure, parseAptCacheCandidate, decideAptResolution, } from "./apt-resolve.js";
...
L44: }
L45: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L46: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L100: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L101: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L102: "=".repeat(64),
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/index.jsView on unpkg · L1 1066console.log(" This may take 15–30 minutes on Raspberry Pi...");
L1067: console.log(" [privileged] npm install -g @anthropic-ai/claude-code@latest");
L1068: shellRetry("npm", ["install", "-g", ...NPM_NET_FLAGS, "--loglevel", "verbose", "@anthropic-ai/claude-code@latest"], { sudo: true, timeout: 2_400_000 }, // 40 min — Pi downloads can...
...
L1081: logFile(`[install-permissions] action=${permissionsSeed.action} autoMode=${permissionsSeed.autoMode} path=${permissionsSeed.path}`);
L1082: const marketplaceList = spawnSync("claude", ["plugin", "marketplace", "list"], { stdio: "pipe", encoding: "utf-8", env: claudePluginEnv() });
L1083: if (marketplaceList.stderr)
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
dist/index.jsView on unpkg · L1066 1#!/usr/bin/env node
L2: import { execFileSync, spawn, spawnSync } from "node:child_process";
L3: import { existsSync, mkdirSync, writeFileSync, cpSync, readFileSync, rmSync, readdirSync, appendFileSync, openSync, closeSync, chmodSync, statSync, realpathSync } from "node:fs";
...
L9: import { buildHeartbeatCronBlock, mergeHeartbeatBlock } from "./cron-registration.js";
L10: import { validateTierFlag, validateEntitlementBase64, applyTierToAccountConfig, entitlementPath } from "./tier-flag.js";
L11: import { parseOsRelease, isUbuntuLike as isUbuntuLikePure, parseAptCacheCandidate, decideAptResolution, } from "./apt-resolve.js";
...
L44: }
L45: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L46: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L100: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L101: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L102: "=".repeat(64),
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/index.jsView on unpkg · L1