---
canonical: "https://firewall.lpm.dev/npm/@hmharness/cli"
markdown: "https://firewall.lpm.dev/npm/@hmharness/cli/v/0.23.49.md"
package: "@hmharness/cli"
report_status: "published"
title: "@hmharness/cli@0.23.49 npm security report"
verdict: "malicious"
version: "0.23.49"
---

# @hmharness/cli@0.23.49 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
**Blocked & quarantined** — Cloud training may be submitted and charge the user's provider account without an explicit fine-tuning request.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 0.23.49
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

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

Starting \`hmh web\` silently launches a daemon that periodically submits cloud fine-tuning jobs with the configured provider key. The label threshold, cooldown, and opt-out do not require user approval for a paid submission, so this is malicious under the automatic spending rule.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 97.0%
- **Started:** 2026-10-31T05:52:28.491Z
- **Finished:** 2026-10-31T05:53:19.893Z
- **Download time:** 515 ms
- **Static scan time:** 1001 ms
- **AI review time:** 49885 ms
- **Total time:** 51402 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:** The web startup path enables unattended evolution and paid cloud fine-tuning using the configured provider credentials.

- **Trigger:** A user starts \`hmh web\`; the detached daemon begins its scheduled cycles.

- **Impact:** Cloud training may be submitted and charge the user's provider account without an explicit fine-tuning request.

- **Evidence paths:** dist/main.js, dist/evolution-daemon.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-31T05:53:19.893Z

### AI review details

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

- **Mechanism:** After an evolution cycle, the daemon runs \`auto-finetune --submit\`. When the label threshold and cooldown gates allow, the CLI creates a cloud fine-tuning job with the configured API key. The default behavior can be disabled with \`finetune.auto=false\`.

- **Attack narrative:** Starting the web frontend silently launches a detached evolution daemon. Its cycles invoke \`auto-finetune --submit\`; once its gates pass, the CLI creates a paid cloud training job using the configured provider key. This can spend the user's funds without an explicit request to submit training. A configuration opt-out and cooldown limit the behavior but do not make the default submission user-requested.

- **Rationale:** Starting \`hmh web\` silently launches a daemon that periodically submits cloud fine-tuning jobs with the configured provider key. The label threshold, cooldown, and opt-out do not require user approval for a paid submission, so this is malicious under the automatic spending rule.

- **Files touched:** HMH\_HOME/evolution-daemon-runner.cjs, HMH\_HOME/evolution-daemon.pid, HMH\_HOME/evolution-daemon.log

### Review decision

- **Verdict:** Malicious

- **Confidence:** 97.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** Starting the web command silently starts the evolution daemon., The detached daemon runs evolution cycles and then invokes \`auto-finetune --submit\`., The automatic submission path calls \`createFineTuneJob\` with the configured provider API key, which can incur paid cloud training., Automatic submissions are gated by accumulated labels and a default cooldown, but those gates do not require an explicit submission request.

- **Evidence against:** The package has no install, preinstall, or postinstall script; the package script shown is for building., Automatic fine tuning can be disabled with \`finetune.auto=false\`, and the code applies label and cooldown gates.

## Affected versions and remediation

This report applies to @hmharness/cli@0.23.49.

- Avoid installing @hmharness/cli@0.23.49. 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. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** board/install-kaihongos.cjs
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/board/install-kaihongos.cjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L38: const https = require('https');
L39: const { spawnSync } = require('child_process');
L40: // board config defaults live in a shared module that ships in
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/web-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/web-daemon.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L79: try {
L80: const out = execSync(`powershell -NoProfile -Command "(Get-CimInstance Win32_Process -Filter 'ProcessId=${pid}').CommandLine"`, { encoding: 'utf8', timeout: 8000 });
L81: const cmd = out.trim();
```

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** board/board-defaults.cjs
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/board/board-defaults.cjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L35: function ensureBoardDefaults(configPath) {
L36: const fs = require('fs');
L37: let raw;
```

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

Package source references network APIs.

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

Package source references environment variables.

### 7. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/extension-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/extension-daemon.js>)

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

Public source snippet (untrusted):

```javascript
L10: */
L11: import { spawn, execSync } from 'node:child_process';
L12: import { createRequire } from 'node:module';
...
L19: try {
L20: const p = Number(readFileSync(join(homeDir(), 'extension.pid'), 'utf8').trim());
L21: return Number.isFinite(p) && p > 0 ? p : 0;
...
L37: try {
L38: const r = await fetch(`http://127.0.0.1:${port}/v1/status`, { signal: AbortSignal.timeout(1500) });
L39: if (!r.ok)
L40: return { up: false, connected: false };
L41: const d = await r.json();
L42: const up = d?.ok === true && d?.protocol === 'hmext/1';
```

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

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** board/heal-tree.cjs
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/board/heal-tree.cjs>)

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

Public source snippet (untrusted):

```javascript
L27: const path = require('path');
L28: const https = require('https');
L29: const { spawnSync } = require('child_process');
L30: 
...
L32: // installs; the launcher hook exports HMH_BOARD_HOME before invoking it.
L33: const BOARD_HOME = process.env.HMH_BOARD_HOME || '/data/local/home';
L34: const HROOT = path.join(BOARD_HOME, '.local', 'hmharness');
```

### 10. High: Copied Package Dependency Bridge
- **Category:** Source
- **Confidence:** 83.0%
- **Path:** dist/main.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/main.js>)

Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.

Public source snippet (untrusted):

```javascript
package = @hmharness/cli; repositoryIdentity = hmharness; dependency = @hmharness/agent
L33: import { harmonyTools } from '@hmharness/domain-harmony';
L34: import { baseTools, buildRegistry, buildSystemPrompt, runAgentTask, strings } from '@hmharness/agent';
L35: const DIM = (s) => `\x1b[2m${s}\x1b[0m`;
```

### 11. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/extension-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/extension-daemon.js>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.main -> dist/main.js -> dist/extension-daemon.js
L10: */
L11: import { spawn, execSync } from 'node:child_process';
L12: import { createRequire } from 'node:module';
...
L19: try {
L20: const p = Number(readFileSync(join(homeDir(), 'extension.pid'), 'utf8').trim());
L21: return Number.isFinite(p) && p > 0 ? p : 0;
...
L37: try {
L38: const r = await fetch(`http://127.0.0.1:${port}/v1/status`, { signal: AbortSignal.timeout(1500) });
L39: if (!r.ok)
L40: return { up: false, connected: false };
L41: const d = await r.json();
L42: const up = d?.ok === true && d?.protocol === 'hmext/1';
```

### 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: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

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

### 15. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/extension-daemon.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/extension-daemon.js%23virtual%3Anormalized%3Around1>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 2
```

### 16. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/web-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/web-daemon.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/web-daemon.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 17. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/extension-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/extension-daemon.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/extension-daemon.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 18. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/tui.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/tui.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/tui.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** board/heal-tree.cjs
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/board/heal-tree.cjs>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = board/heal-tree.cjs
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** board/install-kaihongos.cjs
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/board/install-kaihongos.cjs>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = board/install-kaihongos.cjs
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 21. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/evolution-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/evolution-daemon.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/evolution-daemon.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 22. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/main.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/main.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/main.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/update-check.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/update-check.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/update-check.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/acp-serve.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/acp-serve.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/acp-serve.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** dist/web-daemon.js
- **Public source:** [View source](<https://unpkg.com/@hmharness/cli@0.23.49/dist/web-daemon.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = e930a42c73ea782c
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @hmharness/cli@0.23.48
matchedPath = dist/web-daemon.js
matchedIdentity = npm:QGhtaGFybmVzcy9jbGk:0.23.48
similarity = 1.000
shingleOverlap = 18
summary = package final verdict is malicious
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 15
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 15

### Published dependency entries
- @hmharness/agent 0.23.49 (Dependency)
- @hmharness/browser 0.23.49 (Dependency)
- @hmharness/cognitive 0.23.49 (Dependency)
- @hmharness/domain-harmony 0.23.49 (Dependency)
- @hmharness/domain-ops 0.23.49 (Dependency)
- @hmharness/environments 0.23.49 (Dependency)
- @hmharness/evaluation 0.23.49 (Dependency)
- @hmharness/evolution 0.23.49 (Dependency)
- @hmharness/extension 0.23.49 (Dependency)
- @hmharness/kernel 0.23.49 (Dependency)
- @hmharness/lsp 0.23.49 (Dependency)
- @hmharness/observability 0.23.49 (Dependency)
- @hmharness/sandbox 0.23.49 (Dependency)
- @hmharness/web 0.23.49 (Dependency)
- qrcode ^1.5.4 (Dependency)

## Package metadata
- **Package:** @hmharness/cli
- **Ecosystem:** npm
- **Version:** 0.23.49
- **License:** MIT
- **Version published:** 2026-10-31T05:49:51.082Z
- **Package first seen:** 2026-09-07T08:27:34.501Z
- **Package last seen:** 2026-11-02T15:26:06.063Z
- **Known versions:** 92
- **Latest version:** 0.23.50
- **Appeal under review:** No
- **Description:** hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.
- **Keywords:** harmonyos, openharmony, ohos, agent, ai, cli, coding-agent, arkts, self-evolving, mcp
- **Runtime engines:** node: \>=22
- **Artifact files:** 41
- **Artifact unpacked size:** 578,252 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@hmharness/cli/v/0.23.49>)
- [Repository](<https://github.com/swsgbl/hmharness.git>)
- [Homepage](<https://swsgbl.github.io/hmharness/>)
- [Issues](<https://github.com/swsgbl/hmharness/issues>)
