---
canonical: "https://firewall.lpm.dev/npm/@metaphi-ai/hum/v/0.2.7"
markdown: "https://firewall.lpm.dev/npm/@metaphi-ai/hum/v/0.2.7.md"
package: "@metaphi-ai/hum"
report_status: "published"
title: "@metaphi-ai/hum@0.2.7 npm security report"
verdict: "malicious"
version: "0.2.7"
---

# @metaphi-ai/hum@0.2.7 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** — A remote party controlling the bootstrap or Python package supply chain can execute code and modify the user's home directory during npm installation.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Remote Code Execution
- **Selected version:** 0.2.7
- **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.

Installing the npm package runs an unpinned remote bootstrap script and then installs a separate Python package automatically. This executes third-party code before the user invokes the CLI.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 98.0%
- **Started:** 2026-09-14T10:17:29.689Z
- **Finished:** 2026-09-14T10:18:25.340Z
- **Download time:** 1029 ms
- **Static scan time:** 4918 ms
- **AI review time:** 49704 ms
- **Total time:** 55651 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 npm package runs an unpinned remote bootstrap script and then installs a separate Python package automatically. This executes third-party code before the user invokes the CLI.

- **Trigger:** npm installation, through the postinstall lifecycle hook

- **Impact:** A remote party controlling the bootstrap or Python package supply chain can execute code and modify the user's home directory during npm installation.

- **Evidence paths:** scripts/postinstall.js, dist/install.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-09-14T10:18:25.340Z

### AI review details

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

- **Mechanism:** Remote shell bootstrap followed by automatic Python package installation

- **Attack narrative:** The postinstall hook invokes installCore automatically. If uv is absent, installCore runs a script fetched from astral.sh through sh or PowerShell with execution-policy bypass. It then creates ~/.hum/core and uses uv pip to download and install hum-cli, importing the result to verify it. This is an automatic remote-code bootstrap at dependency-install time, with no hash or package lock for the fetched installer or Python payload.

- **Rationale:** This package performs unconsented install-time remote code execution through a curl-to-shell bootstrap and a second opaque package installation. That supply-chain execution path is sufficient to block publication.

- **Files touched:** scripts/postinstall.js, dist/install.mjs, ~/.hum/core, ~/.hum/core-install.json, ~/.local/bin/uv

- **Network endpoints:** https://astral.sh/uv/install.ps1, https://astral.sh/uv/install.sh

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The npm postinstall hook automatically imports and calls the installer., The installer downloads a remote script and pipes it directly to a shell or PowerShell with execution-policy bypass., The hook creates a home-directory virtual environment and installs the separate hum-cli Python package, whose code is then imported during installation.

- **Evidence against:** The inspected installer contains no direct credential harvesting or explicit data-exfiltration logic.

## Affected versions and remediation

This report applies to @metaphi-ai/hum@0.2.7.

- Avoid installing @metaphi-ai/hum@0.2.7. 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/@metaphi-ai/hum@0.2.7/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

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

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

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/install.mjs
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/dist/install.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: // src/install.js
L2: import { spawnSync } from "node:child_process";
L3: import fs from "node:fs";
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/install.mjs
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/dist/install.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L88: say("installing uv (it creates the Python environment for the part of hum that does the work) \u2026");
L89: const r = win ? runImpl("powershell", ["-ExecutionPolicy", "ByPass", "-c", "irm https://astral.sh/uv/install.ps1 | iex"], { stdio: "inherit" }) : runImpl("sh", ["-c", "curl -LsSf h...
L90: u = r && r.status === 0 ? uv() : null;
```

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/hum.js
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/bin/hum.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L17: // a URL, not a path: on Windows `C:\…` is not something the ESM loader will import
L18: await import(pathToFileURL(path.join(here, '..', 'dist', 'cli.mjs')).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: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.mjs
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/dist/cli.mjs>)

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

Public source snippet (untrusted):

```javascript
L88734: import fs5 from "node:fs";
L88735: import net from "node:net";
L88736: import os5 from "node:os";
...
L88738: import crypto from "node:crypto";
L88739: import { spawn as spawn2, spawnSync as spawnSync3 } from "node:child_process";
L88740: function uvToolDirs() {
L88741: const dirs = [];
L88742: if (process.env.UV_TOOL_DIR) dirs.push(process.env.UV_TOOL_DIR);
L88743: if (win3) {
```

### 10. Critical: Browser Credential Phishing
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** dist/cli.mjs
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/dist/cli.mjs>)

Source appears to collect browser login credentials for exfiltration.

Public source snippet (untrusted):

```javascript
L485: "use strict";
L486: "production" !== process.env.NODE_ENV && (function() {
L487: function defineDeprecationWarning(methodName, info) {
...
L624: specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
L625: "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a di...
L626: displayName
...
L1664: cwdFunction = isBrowser ? () => {
L1665: throw new Error("`process.cwd()` only works in Node.js, not the browser.");
L1666: } : process2.cwd;
...
L1768: }
L1769: const imageBuffer = Buffer.from(data);
L1770: return wrapOsc(returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL);
```

### 11. High: Remote Agent Bridge
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.mjs
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/dist/cli.mjs>)

Source exposes local file and command tools to a remote model endpoint.

Public source snippet (untrusted):

```javascript
L4648: import process3 from "node:process";
L4649: import { execFileSync } from "node:child_process";
L4650: import fs from "node:fs";
...
L4705: try {
L4706: const statContents = fs.readFileSync("/proc/self/stat", "utf8");
L4707: const closingParenthesisIndex = statContents.lastIndexOf(") ");
...
L71088: /* metaparameters */
L71089: "alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check e...
L71090: ),
```

### 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. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 16. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/install.mjs
- **Public source:** [View source](<https://unpkg.com/@metaphi-ai/hum@0.2.7/dist/install.mjs>)

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 = @metaphi-ai/hum@0.1.61
matchedPath = dist/install.mjs
matchedIdentity = npm:QG1ldGFwaGktYWkvaHVt:0.1.61
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

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

## Package metadata
- **Package:** @metaphi-ai/hum
- **Ecosystem:** npm
- **Version:** 0.2.7
- **License:** UNLICENSED
- **Version published:** 2026-09-14T08:56:48.064Z
- **Package first seen:** 2026-08-25T02:05:34.392Z
- **Package last seen:** 2026-10-04T21:45:20.035Z
- **Known versions:** 79
- **Latest version:** 0.2.57
- **Appeal under review:** No
- **Description:** Hum: a self-improving coding agent for your terminal.
- **Runtime engines:** node: \>=22
- **Artifact files:** 6
- **Artifact unpacked size:** 4,137,849 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@metaphi-ai/hum/v/0.2.7>)
- [Repository](<https://github.com/metaphi-labs/humboldt.git>)
- [Homepage](<https://github.com/metaphi-labs/humboldt#readme>)
- [Issues](<https://github.com/metaphi-labs/humboldt/issues>)
