137for (const host of ["registry.npmjs.org", "github.com"]) {
L138: const dns = spawnSync("host", ["-W", "5", host], { encoding: "utf-8", stdio: "pipe", timeout: 10_000 });
L139: logFile(`DNS ${host}: ${dns.status === 0 ? "OK" : "FAIL"} — ${(dns.stdout || dns.stderr || "").trim().split("\n")[0]}`);
...
L144: "--connect-timeout", "10",
L145: "https://registry.npmjs.org/",
L146: ], { encoding: "utf-8", stdio: "pipe", timeout: 15_000 });
...
L151: function captureNpmDebugLog() {
L152: const logsDir = resolve(process.env.HOME ?? "/root", ".npm/_logs");
L153: 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 · L137 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, accessSync, consta...
...
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";
...
L47: }
L48: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L49: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L103: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L104: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L105: "=".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, accessSync, consta...
...
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";
...
L47: }
L48: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L49: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L103: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L104: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L105: "=".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, accessSync, consta...
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L1 532// Fetch + dearmor the signing key, write to /etc/apt/trusted.gpg.d/. Pipe
L533: // composition runs through bash -c so the curl|gpg pipeline is one
L534: // 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, accessSync, consta...
...
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";
...
L47: }
L48: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L49: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L103: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L104: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L105: "=".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, accessSync, consta...
...
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";
...
L47: }
L48: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L49: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L103: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L104: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L105: "=".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 280function canSudo() {
L281: const result = spawnSync("sudo", ["-n", "true"], { stdio: "pipe", timeout: 5_000 });
L282: return result.status === 0;
...
L284: /** True when the npm global prefix's node_modules dir is writable by the current
L285: * user (nvm/Homebrew installs) — meaning `npm install -g` needs no sudo. */
L286: function npm[redacted]() {
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
dist/index.jsView on unpkg · L280 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, accessSync, consta...
...
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";
...
L47: }
L48: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L49: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L103: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L104: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L105: "=".repeat(64),
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/index.jsView on unpkg · L1