140for (const host of ["registry.npmjs.org", "github.com"]) {
L141: const dns = spawnSync("host", ["-W", "5", host], { encoding: "utf-8", stdio: "pipe", timeout: 10_000 });
L142: logFile(`DNS ${host}: ${dns.status === 0 ? "OK" : "FAIL"} — ${(dns.stdout || dns.stderr || "").trim().split("\n")[0]}`);
...
L147: "--connect-timeout", "10",
L148: "https://registry.npmjs.org/",
L149: ], { encoding: "utf-8", stdio: "pipe", timeout: 15_000 });
...
L154: function captureNpmDebugLog() {
L155: const logsDir = resolve(process.env.HOME ?? "/root", ".npm/_logs");
L156: 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 · L140 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";
...
L50: }
L51: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L52: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L106: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L107: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L108: "=".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";
...
L50: }
L51: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L52: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L106: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L107: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L108: "=".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 535// Fetch + dearmor the signing key, write to /etc/apt/trusted.gpg.d/. Pipe
L536: // composition runs through bash -c so the curl|gpg pipeline is one
L537: // 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";
...
L50: }
L51: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L52: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L106: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L107: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L108: "=".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";
...
L50: }
L51: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L52: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L106: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L107: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L108: "=".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 283function canSudo() {
L284: const result = spawnSync("sudo", ["-n", "true"], { stdio: "pipe", timeout: 5_000 });
L285: return result.status === 0;
...
L287: /** True when the npm global prefix's node_modules dir is writable by the current
L288: * user (nvm/Homebrew installs) — meaning `npm install -g` needs no sudo. */
L289: function npm[redacted]() {
HighRuntime Package Install
Package source invokes a package manager install command at runtime.
dist/index.jsView on unpkg · L283 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";
...
L50: }
L51: const INSTALL_DIR = resolve(process.env.HOME ?? "/root", BRAND.installDir);
L52: const PERSIST_DIR = resolve(process.env.HOME ?? "/root", BRAND.configDir);
...
L106: ` ${BRAND.productName} Install Log — ${new Date().toISOString()}`,
L107: ` Node ${process.version} | ${process.platform} ${process.arch}`,
L108: "=".repeat(64),
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/index.jsView on unpkg · L1