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

# novahiz@0.2.5 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. Installing this package can alter a broad AI-agent control surface and activate third-party tools without an explicit user setup action.

- **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.5
- **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. An automatic post-install installer changes the user's OpenCode environment and installs additional global packages. It enables local MCP commands and plugins through a generated OpenCode configuration.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 98.0%
- **Started:** 2026-09-27T08:10:42.881Z
- **Finished:** 2026-09-27T08:11:32.458Z
- **Download time:** 508 ms
- **Static scan time:** 500 ms
- **AI review time:** 48568 ms
- **Total time:** 49577 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:** An automatic post-install installer changes the user's OpenCode environment and installs additional global packages. It enables local MCP commands and plugins through a generated OpenCode configuration.

- **Trigger:** npm installation runs the postinstall hook.

- **Impact:** Installing this package can alter a broad AI-agent control surface and activate third-party tools without an explicit user setup action.

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

- **Review source:** ai\_review

- **Reviewed:** 2026-09-27T08:11:32.458Z

### AI review details

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

- **Mechanism:** The installer runs with the affirmative flag, invokes global npm installs, and writes OpenCode configuration and plugin settings.

- **Attack narrative:** During npm installation, the postinstall hook invokes the installer with automatic confirmation. The installer may globally install OpenCode, MCP servers, and OpenCode plugins, then creates configuration enabling local MCP commands and plugins. These changes occur without an explicit user-command setup step and affect the user's AI-agent environment.

- **Rationale:** The automatic postinstall hook performs unconsented mutation of a broad AI-agent control surface, including global package installation and enabled agent configuration. This meets the install-control-surface blocking rule.

- **Files touched:** package.json, install/install.mjs

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for policy risk:** The package automatically runs its installer with the affirmative flag after installation., The installer automatically installs missing OpenCode globally., The installer installs several MCP servers globally when absent., The installer installs OpenCode plugins globally., The installer creates an OpenCode configuration that enables local MCP commands and plugins.

## Affected versions and remediation

This report applies to novahiz@0.2.5.

- Avoid installing novahiz@0.2.5. 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/novahiz@0.2.5/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node install/install.mjs --yes
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node install/install.mjs --yes
```

### 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:** install/lib.mjs
- **Public source:** [View source](<https://unpkg.com/novahiz@0.2.5/install/lib.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3: import { dirname, join, resolve } from "node:path";
L4: import { spawnSync } from "node:child_process";
L5: import { fileURLToPath } from "node:url";
```

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/novahiz.mjs
- **Public source:** [View source](<https://unpkg.com/novahiz@0.2.5/bin/novahiz.mjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L6: const cli = join(here, "..", "src", "cli.ts");
L7: await import(pathToFileURL(cli).href);
```

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 9. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** install/install.mjs
- **Public source:** [View source](<https://unpkg.com/novahiz@0.2.5/install/install.mjs>)

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

Public source snippet (untrusted):

```javascript
L3: import { join, resolve } from "node:path";
L4: import { spawnSync } from "node:child_process";
L5: import {
...
L32: "docs",
L33: "package.json",
L34: "tsconfig.json",
...
L76: 
L77: const note = (message) => process.stdout.write(`${dryRun ? "[dry-run] " : ""}${message}\n`);
L78: 
...
L168: if (existsSync(skillsSource)) {
L169: const externalRoots = [join(homedir(), ".agents", "skills")];
L170: const alreadyInstalled = skillNamesIn(externalRoots);
```

### 10. Critical: Ai Agent Control Hijack
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** install/install.mjs
- **Public source:** [View source](<https://unpkg.com/novahiz@0.2.5/install/install.mjs>)

Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.

Public source snippet (untrusted):

```javascript
L1: import { cpSync, existsSync, mkdirSync, readdirSync, statSync, writeFileSync } from "node:fs";
L2: import { homedir } from "node:os";
...
L72: const home = NovahizHome(flags);
L73: const configDir = flags.scope === "project" ? resolve(".opencode") : opencodeConfigDir();
L74: const skillsDir = join(configDir, "skills");
...
L143: note(`Copying core to ${home}`);
L144: if (!dryRun) mkdirSync(home, { recursive: true });
L145: for (const item of CORE_ITEMS) {
...
L168: if (existsSync(skillsSource)) {
L169: const externalRoots = [join(homedir(), ".agents", "skills")];
L170: const alreadyInstalled = skillNamesIn(externalRoots);
...
L248: const backup = `${configPath}.novahiz-bak`;
```

### 11. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** install/install.mjs
- **Public source:** [View source](<https://unpkg.com/novahiz@0.2.5/install/install.mjs>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L89: if (dryRun) {
L90: note("opencode not detected. Would install globally (npm install -g opencode-ai).");
L91: } else {
L92: note("opencode not detected. Global installation...");
L93: const installResult = spawnSync("npm", ["install", "-g", "opencode-ai"], {
L94: encoding: "utf8",
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 14. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** install/install.sh
- **Public source:** [View source](<https://unpkg.com/novahiz@0.2.5/install/install.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = install/install.sh
kind = build_helper
sizeBytes = 124
magicHex = [redacted]
```

### 15. 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, prepare
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 3
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** novahiz
- **Ecosystem:** npm
- **Version:** 0.2.5
- **License:** Apache-2.0
- **Version published:** 2026-09-24T11:33:24.345Z
- **Package first seen:** 2026-09-17T21:20:36.303Z
- **Package last seen:** 2026-10-06T10:14:02.331Z
- **Known versions:** 13
- **Latest version:** 0.5.2
- **Appeal under review:** No
- **Description:** Enforce AI agent skills before every file edit: prompt classifier, skill catalog, and pre-edit gate.
- **Author:** novahiz
- **Keywords:** ai-agents, agentic, deterministic, opencode, skills, mcp, enforcement, gate
- **Runtime engines:** node: \>=22.18.0
- **Artifact files:** 147
- **Artifact unpacked size:** 741,292 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes

## References
- [HTML security report](<https://firewall.lpm.dev/npm/novahiz/v/0.2.5>)
- [Repository](<https://github.com/novahiz/novahiz.git>)
- [Homepage](<https://github.com/novahiz/novahiz#readme>)
- [Issues](<https://github.com/novahiz/novahiz/issues>)
