Static Scan Results
scanned 2h ago · by rust-scannerStatic analysis flagged 7 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.
Static reason
One or more suspicious static signals were detected.
Decision evidence
public snapshotBehavioral surface
ChildProcessDynamicRequireEnvironmentVarsFilesystemShell
HighEntropyStringsUrlStrings
Source & flagged code
2 flagged · loading sourcebin/okf.mjsView file
18L19: import { spawnSync } from "node:child_process";
L20: import { existsSync } from "node:fs";
...
L24: const entry = fileURLToPath(new URL("../okf.ts", import.meta.url));
L25: process.env.OKF_PROG ??= basename(process.argv[1] ?? "", ".mjs") || "okf";
L26:
...
L29: } else {
L30: const isWin = process.platform === "win32";
L31: const local = ["../node_modules/.bin/bun", "../../.bin/bun"] // nested (global installs) and flat layouts
...
L44: " Installing the okflight package normally brings bun along as an optional dependency; it seems to be\n" +
L45: " missing here (--no-optional install, or an unsupported platform). Install bun from https://bun.sh\n" +
L46: " — e.g. `npm install -g bun` or `curl -fsSL https://bun.sh/install | bash` — then re-run.",
High
Sandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
bin/okf.mjsView on unpkg · L1827if (typeof Bun !== "undefined") {
L28: await import(entry);
L29: } else {
Medium
Dynamic Require
Package source references dynamic require/import behavior.
bin/okf.mjsView on unpkg · L27Findings
1 High3 Medium3 Low
HighSandbox Evasion Gated Capabilitybin/okf.mjs
MediumDynamic Requirebin/okf.mjs
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings