registry  /  @codeuxai/codeux  /  0.9.4

@codeuxai/codeux@0.9.4

Containerized environment for running and managing AI sub-agents

AI Security Review

scanned 5d 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 runs codeux server/management UI and chooses local MCP/provider login setup.
Impact
Adds Code UX MCP server entries to local AI CLIs and stores provider login credentials under Code UX credential directories.
Mechanism
explicit user-command AI CLI config mutation and containerized provider login bootstrap
Rationale
Static source inspection supports a warning for explicit user-command agent configuration mutation and credential-handling capability, not a malicious publish block. The scanner’s execution/network/env findings are explained by the package’s advertised containerized AI-agent orchestration features and guarded runtime routes.
Evidence
package.jsondist/index.jsdist/server/terminal-routes.jsdist/services/local-mcp-cli-config-service.jsdist/services/cli-docker-utils.js.code-ux/container/setup.sh~/.claude.json~/.gemini/settings.json~/.codex/config.toml~/.qwen/settings.json~/.config/opencode/opencode.json~/.gemini/antigravity-cli/mcp_config.json~/.code-ux/credentials/<providerConfigId>
Network endpoints3
claude.ai/install.shopencode.ai/installantigravity.google/cli/install.sh

Decision evidence

public snapshot
AI called this Suspicious at 86.0% confidence as Dangerous Capability with medium false-positive risk.
Evidence for warning
  • dist/services/local-mcp-cli-config-service.js writes MCP entries into ~/.claude.json, ~/.gemini/settings.json, ~/.codex/config.toml, and other AI CLI configs.
  • dist/server/terminal-routes.js starts Docker login containers and copies generated credentials into ~/.code-ux/credentials/<providerConfigId>.
  • dist/server/terminal-routes.js can install provider CLIs in containers via npm or curl-piped installers.
  • .code-ux/container/setup.sh bootstraps provider CLIs and Playwright inside Code UX containers.
Evidence against
  • package.json has no preinstall/install/postinstall lifecycle hooks.
  • dist/index.js only runs when the CLI/bin is invoked and starts the Code UX server or management CLI.
  • terminal-routes validates provider IDs and path segments before credential directory rm/mkdir/cp operations.
  • No source evidence of credential exfiltration, hidden remote payload execution, destructive host persistence, or install-time AI-agent config hijack.
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShellWebSocket
Supply chain
HighEntropyStringsMinifiedObfuscatedTelemetryUrlStrings
ManifestNo manifest risk signals triggered.
scanned 670 file(s), 12.2 MB of source, external domains: 127.0.0.1, antigravity.google, 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, claude.ai, 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
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

9 flagged · loading source
dist/server/terminal-routes.jsView file
562"mkdir -p /tmp/.npm-global", L563: "export NPM_CONFIG_PREFIX=/tmp/.npm-global", L564: "export PATH=/tmp/.npm-global/bin:$PATH", ... L569: "const fs = require('fs');", L570: "const { spawn } = require('child_process');", L571: "const args = process.argv.slice(2);", L572: "console.log('[DEBUG] xdg-open called with args:', args);", L573: "let url = args.find(arg => arg.startsWith('http://') || arg.startsWith('https://'));", L574: "if (url) {",
Critical
Same File Env Network Execution

A single source file combines environment access, network access, and code or shell execution with blocking evidence.

dist/server/terminal-routes.jsView on unpkg · L562
Trigger-reachable chain: manifest.main -> dist/index.js -> dist/server/code-ux-server.js -> dist/app/lifecycle/dashboard-lifecycle-service.js -> dist/server/dashboard-server.js -> dist/server/terminal-routes.js Reachable file contains a blocking source-risk pattern.
Critical
Trigger Reachable Dangerous Capability

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

dist/server/terminal-routes.jsView on unpkg
matchType = previous_version_dangerous_delta matchedPackage = @codeuxai/codeux@0.9.1 matchedIdentity = npm:QGNvZGV1eGFpL2NvZGV1eA:0.9.1 similarity = 0.350 summary = stored previous version shares package body but lacks this dangerous source file
Critical
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
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
300try { L301: const cp = await import("child_process"); L302: if (!cp || typeof cp.exec !== "function") {
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/server/terminal-routes.jsView on unpkg · L300
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"; ... L83: function encodeFrame(payload) { L84: const message = Buffer.from(payload, "utf8"); L85: const length = message.length; ... L103: try { L104: socket.write(encodeFrame(JSON.stringify(payload))); L105: } ... L305: await new Promise((resolve) => {
Low
Weak Crypto

Package source references weak cryptographic algorithms.

dist/server/terminal-routes.jsView on unpkg · L1
.code-ux/container/setup.shView file
path = .code-ux/container/setup.sh kind = payload_in_excluded_dir sizeBytes = 6821 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 = 6821 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

3 Critical4 High5 Medium7 Low
CriticalSame File Env Network Executiondist/server/terminal-routes.js
CriticalTrigger Reachable Dangerous Capabilitydist/server/terminal-routes.js
CriticalPrevious Version Dangerous Deltadist/server/terminal-routes.js
HighChild Processdist/server/terminal-routes.js
HighShell
HighPayload In Excluded Dir.code-ux/container/setup.sh
HighOversized Source Filedashboard/dist/assets/editor.api2-KGjWAjnM.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