registry  /  @bitkyc08/opencodex  /  2.6.14

@bitkyc08/opencodex@2.6.14

Universal provider proxy for OpenAI Codex — use any LLM with Codex CLI/App/SDK

Static Scan Results

scanned 4d ago · by rust-scanner

Static analysis flagged 14 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 snapshot
Behavioral surface
Source
ChildProcessCryptoEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsMinifiedUrlStrings
ManifestNo manifest risk signals triggered.
scanned 118 file(s), 1.18 MB of source, external domains: 127.0.0.1, accounts.google.com, ai-gateway.vercel.sh, aiplatform.googleapis.com, aistudio.google.com, antigravity.google, api.anthropic.com, api.cerebras.ai, api.code.umans.ai, api.deepseek.com, api.fireworks.ai, api.githubcopilot.com, api.groq.com, api.kilo.ai, api.kimi.com, api.minimax.io, api.minimaxi.com, api.mistral.ai, api.moonshot.ai, api.neuralwatt.com, api.openai.com, api.synthetic.new, api.together.xyz, api.venice.ai, api.x.ai, api.xiaomimimo.com, api.z.ai, app.umans.ai, auth.kimi.com, auth.openai.com, auth.x.ai, build.nvidia.com, chatgpt.com, claude.ai, cloud.cerebras.ai, cloud.gitlab.com, cloudcode-pa.googleapis.com, coding-intl.dashscope.aliyuncs.com, console.bce.baidu.com, console.cloud.google.com, console.groq.com, console.mistral.ai, daily-cloudcode-pa.googleapis.com, dash.cloudflare.com, dashscope.console.aliyun.com, docs.litellm.ai, fireworks.ai, gateway.ai.cloudflare.com, generativelanguage.googleapis.com, github.com

Source & flagged code

6 flagged · loading source
bin/ocx.mjsView file
10*/ L11: import { spawn, spawnSync } from "node:child_process"; L12: import { createRequire } from "node:module";
High
Child Process

Package source references child process execution.

bin/ocx.mjsView on unpkg · L10
src/config.tsView file
433if (process.platform === "win32") { L434: const output = execFileSync("powershell.exe", [ L435: "-NoProfile",
High
Shell

Package source references shell execution.

src/config.tsView on unpkg · L433
src/service.tsView file
7*/ L8: import { execFileSync, execSync } from "node:child_process"; L9: import { chmodSync, existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs"; ... L23: // Bake the bundled Bun (npm global prefix, survives `ocx update`) rather than L24: // a transient system Bun, so launchd/systemd/schtasks keep resolving even if a L25: // standalone Bun is later removed. cli.ts sits next to this module. ... L29: function plistPath(): string { L30: return join(homedir(), "Library", "LaunchAgents", `${LABEL}.plist`); L31: } ... L64: function currentCodexHome(): string { L65: return resolve(process.env.CODEX_HOME?.trim() || join(homedir(), ".codex")); L66: }
Medium
Install Persistence

Source writes installer persistence such as shell profile or service configuration.

src/service.tsView on unpkg · L7
src/cli.tsView file
433console.log("Proxy not running. Starting..."); L434: const child = spawn(process.execPath, [process.argv[1], "start"], { L435: detached: true, ... L437: windowsHide: true, L438: env: process.env, L439: }); ... L445: const guiPort = runtimePort?.port ?? config.port; L446: const guiUrl = `http://localhost:${guiPort}`; L447: console.log(`Opening ${guiUrl}`);
High
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

src/cli.tsView on unpkg · L433
src/oauth/local-token-detect.tsView file
5*/ L6: import { execSync } from "node:child_process"; L7: import { existsSync, readFileSync } from "node:fs"; ... L11: L12: const XAI_AUTH_KEY_PREFIX = "https://auth.x.ai::"; L13: const CLAUDE_KEYCHAIN_SERVICE = "Claude Code-credentials"; ... L15: export function detectGrokCliToken(): OAuthCredentials | null { L16: const authPath = join(homedir(), ".grok", "auth.json"); L17: if (!existsSync(authPath)) return null; ... L19: try { L20: const raw = JSON.parse(readFileSync(authPath, "utf8")) as Record<string, Record<string, unknown>>; L21:
High
Sandbox Evasion Gated Capability

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

src/oauth/local-token-detect.tsView on unpkg · L5
src/lib/gcp-adc.tsView file
12* L13: * Security: never logs the access token, private key, or refresh token. L14: */ ... L23: L24: const OAUTH_TOKEN_URL = "https://oauth2.googleapis.com/token"; L25: const METADATA_TOKEN_URL = "http://metadata.google.[redacted]-accounts/default/token"; L26: const CLOUD_PLATFORM_SCOPE = "https://www.googleapis.com/auth/cloud-platform"; ... L40: client_email: string; L41: private_key: string; L42: private_key_id?: string; ... L63: function getRefreshSkewMs(): number { L64: const raw = Number(process.env.GOOGLE_VERTEX_REFRESH_SKEW_MS);
High
Cloud Metadata Access

Source reaches cloud instance metadata or link-local credential endpoints.

src/lib/gcp-adc.tsView on unpkg · L12

Findings

5 High4 Medium5 Low
HighChild Processbin/ocx.mjs
HighShellsrc/config.ts
HighSame File Env Network Executionsrc/cli.ts
HighSandbox Evasion Gated Capabilitysrc/oauth/local-token-detect.ts
HighCloud Metadata Accesssrc/lib/gcp-adc.ts
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencesrc/service.ts
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings