registry  /  @codeuxai/codeux  /  0.9.6

@codeuxai/codeux@0.9.6

Containerized environment for running and managing AI sub-agents

AI Security Review

scanned 4d ago · by lpm-firewall-ai

Review flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.

Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User starts Code UX and invokes the dashboard's local MCP provider setup or terminal-login actions.
Impact
Can alter selected local AI-agent configuration and enable Code UX MCP access; no covert install-time mutation or confirmed exfiltration found.
Mechanism
User-invoked AI CLI MCP configuration and Docker provider orchestration.
Rationale
Source inspection contradicts the scanner's malicious conclusion: the executable setup asset is inert and no install hook exists. However, explicit dashboard-driven mutation of foreign AI-agent config files is a warn-level capability under the stated policy.
Evidence
package.json.code-ux/container/setup.shdist/services/local-mcp-cli-config-service.jsdist/app/lifecycle/dashboard-lifecycle-service.jsdist/server/terminal-routes.jsdist/services/provider-tool-manager.js~/.claude.json~/.codex/config.toml~/.gemini/settings.json~/.qwen/settings.json~/.config/opencode/opencode.json~/.gemini/antigravity-cli/mcp_config.json~/.code-ux/credentials

Decision evidence

public snapshot
AI called this Suspicious at 86.0% confidence as Dangerous Capability with low false-positive risk.
Evidence for warning
  • `dist/services/local-mcp-cli-config-service.js` writes Code UX MCP entries into `~/.claude.json`, `~/.codex/config.toml`, and other provider configs.
  • The config mutation is exposed as `installLocalMcpProvider` by `dist/app/lifecycle/dashboard-lifecycle-service.js`.
  • `dist/server/terminal-routes.js` starts Docker-backed provider login sessions and handles credential directories.
  • `dist/services/provider-tool-manager.js` installs provider CLIs into managed Docker volumes.
Evidence against
  • `package.json` has no `preinstall`, `install`, `postinstall`, or `prepare` lifecycle hook.
  • `.code-ux/container/setup.sh` only prints setup guidance; it installs nothing.
  • CLI execution begins only through the declared `codeux`/`codeux-worker` bin entrypoints.
  • Terminal route validates provider IDs, credential path segments, and local login redirect ports.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShellWebSocket
Supply chain
HighEntropyStringsMinifiedObfuscatedTelemetryUrlStrings
ManifestNo manifest risk signals triggered.
scanned 784 file(s), 12.5 MB of source, external domains: 127.0.0.1, antigravity-cli-auto-updater-974169037036.us-central1.run.app, api.example.com, api.figma.com, api.github.com, api.linear.app, api.lucid.co, api.miro.com, api.notion.com, api.openai.com, app.asana.com, app.mural.co, belcour.github.io, blog.selfshadow.com, bugzilla.mozilla.org, byteblacksmith.com, casual-effects.com, cdn.jsdelivr.net, cdn2.unrealengine.com, code.google.com, codeux.local, coding-intl.dashscope.aliyuncs.com, coding.dashscope.aliyuncs.com, company.atlassian.net, dashscope.aliyuncs.com, developer.mozilla.org, developers.google.com, docs.docker.com, drafts.csswg.org, en.wikipedia.org, filmicworlds.com, git-scm.com, github.com, gitlab.com, google.github.io, googlechrome.github.io, graphicrants.blogspot.com, graphics.stanford.edu, gsap.com, hacks.mozilla.org, help.yahoo.com, html.spec.whatwg.org, huggingface.co, iolite-engine.com, jcgt.org, jules.googleapis.com, linear.app, lucid.app, miro.com, mmikk.github.io
Oversized source lightweight scan
dashboard/dist/assets/editor.api2-KGjWAjnM.js3.46 MB file, sampled 256 KB
ChildProcessObfuscatedHighEntropyStringsMinified
dashboard/dist/assets/ts.worker-B0J26iPs.js6.58 MB file, sampled 256 KB
FilesystemNetworkChildProcess

Source & flagged code

10 flagged · loading source
dist/server/terminal-routes.jsView file
1import { spawn } from "child_process"; L2: import * as fs from "fs/promises";
High
Child Process

Package source references child process execution.

dist/server/terminal-routes.jsView on unpkg · L1
442"mkdir -p /tmp/.npm-global", L443: "export NPM_CONFIG_PREFIX=/tmp/.npm-global", L444: "export PATH=/tmp/.npm-global/bin:$PATH", ... L449: "const fs = require('fs');", L450: "const { spawn } = require('child_process');", L451: "const args = process.argv.slice(2);", L452: "console.log('[DEBUG] xdg-open called with args:', args);", L453: "let url = args.find(arg => arg.startsWith('http://') || arg.startsWith('https://'));", L454: "if (url) {",
High
Same File Env Network Execution

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

dist/server/terminal-routes.jsView on unpkg · L442
matchType = previous_version_dangerous_delta matchedPackage = @codeuxai/codeux@0.9.4 matchedIdentity = npm:QGNvZGV1eGFpL2NvZGV1eA:0.9.4 similarity = 0.758 summary = stored previous version shares package body but lacks this dangerous source file
High
Previous Version Dangerous Delta

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

dist/server/terminal-routes.jsView on unpkg
279try { L280: const cp = await import("child_process"); L281: if (!cp || typeof cp.exec !== "function") {
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/server/terminal-routes.jsView on unpkg · L279
1import { spawn } from "child_process"; L2: import * as fs from "fs/promises"; ... L6: import { isHostileBrowserOrigin } from "./dashboard-security.js"; L7: import * as net from "net"; L8: import { asyncRoute, syncRoute, toErrorResponse } from "./route-utils.js"; ... L72: function encodeFrame(payload) { L73: const message = Buffer.from(payload, "utf8"); L74: const length = message.length; ... L92: try { L93: socket.write(encodeFrame(JSON.stringify(payload))); L94: } ... L284: await new Promise((resolve) => {
Low
Weak Crypto

Package source references weak cryptographic algorithms.

dist/server/terminal-routes.jsView on unpkg · L1
dist/shared/docker-env-helper.jsView file
2import { promisify } from "util"; L3: const execAsync = promisify(exec); L4: /**
High
Shell

Package source references shell execution.

dist/shared/docker-env-helper.jsView on unpkg · L2
dashboard/dist/assets/html.worker-BO6WuOEO.jsView file
29contains invisible/control Unicode U+2060 (word joiner) `,"nexist;":`∄`,"nexists;":`∄`,"Nfr;":`𝔑`,"nfr;":`𝔫`,"ngE;":`≧̸`,"nge;":`≱`,"ngeq;":`≱`,"ngeqq;":`≧̸`,"ngeqslant;":`⩾̸`,"nges;":`⩾̸`,"nGg;":`⋙̸`,"ngsim;":`≵`,"nGt;":`≫⃒`,"ngt;":`≯`,"ngtr;":`≯`,"nGtv;":`≫̸`,"nhArr;":`⇎`,"nharr;":`↮`,"nhpar;"
Critical
Trojan Source Unicode

Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.

dashboard/dist/assets/html.worker-BO6WuOEO.jsView on unpkg · L29
.code-ux/container/setup.shView file
path = .code-ux/container/setup.sh kind = payload_in_excluded_dir sizeBytes = 432 magicHex = [redacted]
High
Payload In Excluded Dir

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

.code-ux/container/setup.shView on unpkg
path = .code-ux/container/setup.sh kind = build_helper sizeBytes = 432 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

.code-ux/container/setup.shView on unpkg
dashboard/dist/assets/editor.api2-KGjWAjnM.jsView file
path = dashboard/dist/assets/editor.api2-KGjWAjnM.js kind = oversized_source_file sizeBytes = 3626875 magicHex = [redacted]
High
Oversized Source File

Package contains source files above the static scanner size ceiling.

dashboard/dist/assets/editor.api2-KGjWAjnM.jsView on unpkg

Findings

1 Critical6 High5 Medium7 Low
CriticalTrojan Source Unicodedashboard/dist/assets/html.worker-BO6WuOEO.js
HighChild Processdist/server/terminal-routes.js
HighShelldist/shared/docker-env-helper.js
HighSame File Env Network Executiondist/server/terminal-routes.js
HighPayload In Excluded Dir.code-ux/container/setup.sh
HighOversized Source Filedashboard/dist/assets/editor.api2-KGjWAjnM.js
HighPrevious Version Dangerous Deltadist/server/terminal-routes.js
MediumDynamic Requiredist/server/terminal-routes.js
MediumNetwork
MediumEnvironment Vars
MediumShips Build Helper.code-ux/container/setup.sh
MediumStructural Risk Force Deep Review
LowScripts Present
LowWeak Cryptodist/server/terminal-routes.js
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowTelemetry
LowUrl Strings