---
canonical: "https://firewall.lpm.dev/npm/codexskin-hub/v/0.2.0"
markdown: "https://firewall.lpm.dev/npm/codexskin-hub/v/0.2.0.md"
package: "codexskin-hub"
report_status: "published"
title: "codexskin-hub@0.2.0 npm security report"
verdict: "policy_finding"
version: "0.2.0"
---

# codexskin-hub@0.2.0 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Soft block: AI-agent control surface** — Warn by default; block when configured. The package gains persistent code execution through the global CodexHost control surface.

- **Verdict:** AI-agent control-surface policy finding
- **Product-default install policy:** Warn by default; block when configured
- **Firewall policy:** Warn by default
- **Public report status:** Published
- **Threat category:** Soft block: AI-agent control surface
- **Selected version:** 0.2.0
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

LPM flags this version as an AI-agent control-surface risk. Installing the package automatically modifies the globally installed CodexHost launcher and renderer. The modified launcher loads package-controlled code and can start a detached supervisor on future CodexHost launches.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 97.0%
- **Started:** 2026-09-07T12:02:51.963Z
- **Finished:** 2026-09-07T12:04:00.703Z
- **Download time:** 255 ms
- **Static scan time:** 241 ms
- **AI review time:** 68243 ms
- **Total time:** 68740 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** Installing the package automatically modifies the globally installed CodexHost launcher and renderer. The modified launcher loads package-controlled code and can start a detached supervisor on future CodexHost launches.

- **Trigger:** npm postinstall when the Dream Skin engine is present.

- **Impact:** The package gains persistent code execution through the global CodexHost control surface.

- **Evidence paths:** package.json, install.mjs, src/patch.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-09-07T12:04:00.703Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** Automatic patching of a foreign AI-agent launcher and renderer.

- **Attack narrative:** The postinstall hook runs install.mjs without a separate user setup action. When its engine check passes, it invokes the patcher, which locates the global @codexhost/cli installation and rewrites its launcher and renderer. The injected launcher dynamically imports a hook from this package's runtime directory and can start a detached supervisor whenever CodexHost launches. This is unconsented install-time mutation of a foreign AI-agent control surface.

- **Rationale:** The automatic lifecycle hook modifies a foreign global CodexHost launcher and renderer, then arranges later execution of package-controlled code. Explicit setup download behavior does not remove this independent install-time control-surface mutation.

- **Files touched:** %LOCALAPPDATA%\\CodexSkinHub\\src, %APPDATA%\\npm\\node\_modules\\@codexhost\\cli\\bin\\codexhost.js, %APPDATA%\\npm\\node\_modules\\@codexhost\\cli\\node\_modules\\@codexhost\\cli-win32-x64\\app\\renderer-extension.js

### Review decision

- **Verdict:** Malicious

- **Confidence:** 97.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for policy risk:** The package runs its installer automatically after installation., The installer automatically invokes the patcher when the related engine is present., The patcher finds a global CodexHost package and overwrites its launcher and renderer files., The injected launcher dynamically loads this package's hook and starts a detached supervisor.

- **Evidence against:** The downloader and external installer execution are only reachable through the explicit setup command., The observed HTTP CDP requests target localhost, not a remote service., The Windows startup entry is conditional on a command-line option.

## Affected versions and remediation

This report applies to codexskin-hub@0.2.0.

- Avoid installing codexskin-hub@0.2.0. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node install.mjs
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node install.mjs
```

### 3. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

### 4. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 5. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** uninstall.mjs
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/uninstall.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L17: import { fileURLToPath } from "node:url";
L18: import { spawnSync } from "node:child_process";
L19: import { homedir } from "node:os";
```

### 6. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** install.mjs
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/install.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L101: 
L102: // 5. PATH shim (pure ASCII - see GBK/PowerShell 5.1 encoding lessons).
L103: mkdirSync(dirname(SHIM), { recursive: true });
```

### 7. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** src/patch.mjs
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/src/patch.mjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L115: try {
L116: dreamSkinHook = await import(pathToFileURL(dreamSkinHookPath).href);
L117: } catch {
```

### 8. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 9. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 10. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 11. Critical: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/cli.mjs
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/src/cli.mjs>)

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

Public source snippet (untrusted):

```javascript
L16: 
L17: import { spawn, execFile, spawnSync } from "node:child_process";
L18: import fs from "node:fs";
L19: import fsp from "node:fs/promises";
L20: import http from "node:http";
L21: import path from "node:path";
...
L27: // only referenced. Override the engine root via config.json if needed.
L28: const HUB_ROOT = path.join(process.env.LOCALAPPDATA ?? "", "CodexSkinHub");
L29: function loadConfig() {
```

### 12. Critical: Download Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/cli.mjs
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/src/cli.mjs>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L16: 
L17: import { spawn, execFile, spawnSync } from "node:child_process";
L18: import fs from "node:fs";
L19: import fsp from "node:fs/promises";
L20: import http from "node:http";
L21: import path from "node:path";
...
L27: // only referenced. Override the engine root via config.json if needed.
L28: const HUB_ROOT = path.join(process.env.LOCALAPPDATA ?? "", "CodexSkinHub");
L29: function loadConfig() {
L30: try {
L31: return JSON.parse(fs.readFileSync(path.join(HUB_ROOT, "config.json"), "utf8"));
L32: } catch {
```

### 13. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** src/cli.mjs
- **Public source:** [View source](<https://unpkg.com/codexskin-hub@0.2.0/src/cli.mjs>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.bin -> src/cli.mjs
L16: 
L17: import { spawn, execFile, spawnSync } from "node:child_process";
L18: import fs from "node:fs";
L19: import fsp from "node:fs/promises";
L20: import http from "node:http";
L21: import path from "node:path";
...
L27: // only referenced. Override the engine root via config.json if needed.
L28: const HUB_ROOT = path.join(process.env.LOCALAPPDATA ?? "", "CodexSkinHub");
L29: function loadConfig() {
L30: try {
L31: return JSON.parse(fs.readFileSync(path.join(HUB_ROOT, "config.json"), "utf8"));
L32: } catch {
```

### 14. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 15. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 16. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, uninstall
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** codexskin-hub
- **Ecosystem:** npm
- **Version:** 0.2.0
- **License:** MIT
- **Version published:** 2026-09-07T11:02:22.815Z
- **Package first seen:** 2026-09-07T12:04:00.703Z
- **Package last seen:** 2026-09-09T08:44:47.334Z
- **Known versions:** 7
- **Latest version:** 0.4.8
- **Appeal under review:** No
- **Description:** Standalone Dream Skin theme management for codexhost-launched Codex: theme hot-switch, ZIP import, gallery, in-app settings page - non-invasive to Codex Dream Skin and codex-host
- **Author:** alleyf
- **Keywords:** codex, codexhost, theme, dream-skin, windows
- **Runtime engines:** node: \>=20.11
- **Supported OS:** win32
- **Artifact files:** 10
- **Artifact unpacked size:** 93,239 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/codexskin-hub/v/0.2.0>)
