registry  /  oh-my-codex-pennix  /  0.18.74

oh-my-codex-pennix@0.18.74

Multi-agent orchestration layer for OpenAI Codex CLI — Pennix fork

AI Security Review

scanned 17h ago · by lpm-firewall-ai

LPM treats this as warn-only first-party agent extension lifecycle risk. No confirmed malicious install-time attack surface was established. The package is an AI-agent orchestration tool that can install first-party Codex hooks, AGENTS.md, skills/prompts, plugin cache, and optional MCP compatibility when the user runs setup.

Static reason
High-risk behavior combination matched malicious policy.
Trigger
npm global install for stamp write; explicit omx setup/update/runtime commands for agent features
Impact
Can alter Codex/OMX agent behavior after user-invoked setup; no unconsented lifecycle control hijack or exfiltration confirmed.
Mechanism
guarded first-party agent extension setup and local CLI/MCP execution
Policy narrative
The high-risk behavior is real but mostly part of an explicit agent platform: setup can register Codex hooks and plugin/MCP surfaces, and MCP tools can run local developer commands. The npm postinstall path did not perform that registration; it only records a package install stamp on global installs and prints a setup reminder.
Rationale
Static inspection supports a warn-level agent extension lifecycle risk rather than malware: powerful Codex/MCP behavior exists, but the broad control-surface writes are setup-driven and package-aligned, while postinstall is limited to an install-state stamp. No concrete credential theft, exfiltration, destructive action, or unconsented lifecycle control hijack was found.
Evidence
package.jsondist/scripts/postinstall.jssrc/scripts/postinstall.tsdist/cli/update.jsdist/cli/setup.jsdist/config/codex-hooks.jsdist/config/omx-first-party-mcp.jsdist/mcp/code-intel-server.jsdist/utils/paths.js$CODEX_HOME/.omx/install-state.json$CODEX_HOME/config.toml$CODEX_HOME/hooks.json$CODEX_HOME/AGENTS.md.codex/agentsAGENTS.md.omx/setup-scope.json
Network endpoints2
registry.npmjs.org/oh-my-codex-pennix/latestgithub.com/PennixRv/oh-my-codex

Decision evidence

public snapshot
AI called this Suspicious at 88.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • package.json defines postinstall, but dist/scripts/postinstall.js only runs on global npm lifecycle and writes an install stamp/reminder.
  • dist/cli/setup.js user-invoked setup writes Codex config/hooks/AGENTS/plugin cache and optional MCP/Claude compatibility settings.
  • dist/config/codex-hooks.js builds Codex lifecycle hooks invoking dist/scripts/codex-native-hook.js for multiple hook events.
  • dist/mcp/code-intel-server.js exposes MCP tools that run local npx/tsc/ast-grep on requested workspaces.
Evidence against
  • No install-time mutation of AGENTS.md, .mcp.json, Claude settings, or Codex hooks found in dist/scripts/postinstall.js.
  • Postinstall is guarded to npm global installs and only touches $CODEX_HOME/.omx/install-state.json via dist/cli/update.js.
  • Agent/control-surface writes are tied to explicit omx setup/plugin modes, with dry-run/force/merge guards and backups.
  • Network observed is package-aligned update/install logic to registry.npmjs.org and github.com/PennixRv/oh-my-codex, not credential exfiltration.
  • No credential harvesting or hardcoded exfiltration endpoint identified in inspected hot paths.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 407 file(s), 5.14 MB of source, external domains: api.github.com, api.telegram.org, discord.com, github.com, registry.npmjs.org

Source & flagged code

8 flagged · loading source
package.jsonView file
scripts.postinstall = node -e "const fs=require('fs');const p='./dist/scripts/postinstall.js';if(fs.existsSync(p))import(p).then(m=>m.main?.()).catch(e=>console.warn('[omx] Postinstall skipped after a n...
Critical
Red Install Lifecycle Script

Install-time lifecycle script matches a deterministic static-gate block pattern.

package.jsonView on unpkg
scripts.postinstall = node -e "const fs=require('fs');const p='./dist/scripts/postinstall.js';if(fs.existsSync(p))import(p).then(m=>m.main?.()).catch(e=>console.warn('[omx] Postinstall skipped after a n...
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
dist/autoresearch/runtime.jsView file
1import { execFileSync, spawnSync } from 'child_process'; L2: import { existsSync } from 'fs';
High
Child Process

Package source references child process execution.

dist/autoresearch/runtime.jsView on unpkg · L1
283encoding: 'utf-8', L284: shell: true, L285: maxBuffer: 1024 * 1024,
High
Shell

Package source references shell execution.

dist/autoresearch/runtime.jsView on unpkg · L283
dist/cli/hooks.jsView file
40const moduleUrl = `${pathToFileURL(filePath).href}?t=${Date.now()}`; L41: const mod = await import(moduleUrl); L42: if (typeof mod.onHookEvent !== 'function') {
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/cli/hooks.jsView on unpkg · L40
dist/cli/index.jsView file
4*/ L5: import { execFileSync, spawn } from "child_process"; L6: import { basename, dirname, join, posix, resolve, win32 } from "path"; ... L62: export { parseTmuxPaneSnapshot, isHudWatchPane, findHudWatchPaneIds } from "../hud/tmux.js"; L63: rememberOmxLaunchContext({ argv1: process.argv[1], cwd: process.cwd(), env: process.env }); L64: import { classifySpawnError, resolveTmuxBinaryForPlatform, spawnPlatformCommandSync, } from "../utils/platform-command.js"; ... L223: const ALLOWED_SHELLS = new Set([ L224: "/bin/sh", L225: "/bin/bash", ... L522: } L523: export function resolveCodexLaunchPolicy(env = process.env, _platform = process.platform, tmuxAvailable = isTmuxAvailable(), nativeWindows = isNativeWindows(), stdinIsTTY = Boolean... L524: if (explicitPolicy === "direct")
Medium
Install Persistence

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

dist/cli/index.jsView on unpkg · L4
dist/mcp/code-intel-server.jsView file
546try { L547: const { stdout } = await exec('npx', ['tsc', '--version'], { timeout: 10000 }); L548: checks['typescript'] = { available: true, version: stdout.trim() }; ... L551: process.stderr.write(`[code-intel-server] operation failed: ${err}\n`); L552: checks['typescript'] = { available: false, note: 'Install: npm i -D typescript' }; L553: }
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

dist/mcp/code-intel-server.jsView on unpkg · L546
src/scripts/run-autoresearch-showcase.shView file
path = src/scripts/run-autoresearch-showcase.sh kind = build_helper sizeBytes = 1989 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

src/scripts/run-autoresearch-showcase.shView on unpkg

Findings

1 Critical4 High6 Medium5 Low
CriticalRed Install Lifecycle Scriptpackage.json
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processdist/autoresearch/runtime.js
HighShelldist/autoresearch/runtime.js
HighRuntime Package Installdist/mcp/code-intel-server.js
MediumDynamic Requiredist/cli/hooks.js
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist/cli/index.js
MediumShips Build Helpersrc/scripts/run-autoresearch-showcase.sh
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings