---
canonical: "https://firewall.lpm.dev/npm/pi-harness-runtime/v/0.9.5"
markdown: "https://firewall.lpm.dev/npm/pi-harness-runtime/v/0.9.5.md"
package: "pi-harness-runtime"
report_status: "published"
title: "pi-harness-runtime@0.9.5 npm security report"
verdict: "suspicious"
version: "0.9.5"
---

# pi-harness-runtime@0.9.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
**Flagged as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 0.9.5
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM treats this as warn-only first-party agent extension lifecycle risk. Loading the declared Pi extension creates package-owned state and tracks assistant usage. For MiniMax turns with configured or existing authentication, it can automatically retrieve quota data from the MiniMax service. No unconsented install-time execution or foreign AI-agent control-surface mutation was found.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Suspicious
- **Confidence:** 87.0%
- **Started:** 2026-07-15T09:22:50.475Z
- **Finished:** 2026-07-15T09:25:36.442Z
- **Download time:** 507 ms
- **Static scan time:** 1263 ms
- **AI review time:** 164196 ms
- **Total time:** 165967 ms

## Security analysis

### Published attack-surface review

- **Summary:** Loading the declared Pi extension creates package-owned state and tracks assistant usage. For MiniMax turns with configured or existing authentication, it can automatically retrieve quota data from the MiniMax service. No unconsented install-time execution or foreign AI-agent control-surface mutation was found.

- **Trigger:** Pi loads the extension; later a MiniMax-model turn occurs with a usable cookie file or browser profile.

- **Impact:** Local usage/profile state is created and MiniMax session cookies are used to query account quota data.

- **Evidence paths:** package.json, index.ts, harness/e2e/minimax-quota-scraper.ts, packages/auth/src/minimax-browser-auth.ts, packages/auth/src/run-minimax-auth.ts

- **Review source:** ai\_review

- **Reviewed:** 2026-07-15T09:25:36.442Z

### AI review details

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

- **Mechanism:** Pi extension lifecycle hooks with authenticated MiniMax quota requests.

- **Rationale:** No install hook, foreign control-surface mutation, stealth persistence, remote payload execution, or non-package-aligned exfiltration was found. The package nevertheless has a real first-party agent-extension lifecycle and credential-bearing quota-fetch capability that merits a warning under the stated policy.

- **Files touched:** index.ts, harness/e2e/minimax-quota-scraper.ts, packages/auth/src/minimax-browser-auth.ts, ~/.pi/harness, ~/.pi-harness-runtime

- **Network endpoints:** https://platform.minimax.io/backend/account/token\_plan/remains\_percent, https://platform.minimax.io/backend/account/token\_plan/usage\_summary, https://platform.minimax.io/backend/account/token\_plan\_credit

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 87.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for:** \`package.json\` registers \`./index.ts\` as a Pi extension., \`index.ts\` creates \`~/.pi/harness\` on extension activation and observes agent events., \`index.ts\` auto-fetches MiniMax quota after matching model turns when auth state exists., \`harness/e2e/minimax-quota-scraper.ts\` reads a cookie file and sends it to MiniMax API endpoints.

- **Evidence against:** \`package.json\` has no preinstall, install, or postinstall hook., Cookie-authenticated requests target only \`platform.minimax.io\` quota endpoints., Scraper explicitly avoids reading or persisting the API-key field., Reviewed code writes local status, usage, and harness state; no foreign agent-config mutation or exfiltration endpoint was found.

## Public findings

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

Package declares npm scripts.

### 2. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** harness/e2e/playwright-runner.ts
- **Public source:** [View source](<https://unpkg.com/pi-harness-runtime@0.9.5/harness/e2e/playwright-runner.ts>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```typescript
L169: // eslint-disable-next-line no-eval
L170: return eval(String(cond)) as boolean; // eslint-disable-line
L171: }, condition);
```

### 3. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** packages/mcp-adapter/dist/server.js
- **Public source:** [View source](<https://unpkg.com/pi-harness-runtime@0.9.5/packages/mcp-adapter/dist/server.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L144: const { path } = (args ?? {});
L145: const fs = require("fs");
L146: if (!fs.existsSync(path)) {
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 9. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** packages/generic-web-plugin/dist/analyzer.js
- **Public source:** [View source](<https://unpkg.com/pi-harness-runtime@0.9.5/packages/generic-web-plugin/dist/analyzer.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = pi-harness-runtime@0.9.1
matchedIdentity = npm:cGktaGFybmVzcy1ydW50aW1l:0.9.1
similarity = 0.725
summary = stored previous version shares package body but lacks this dangerous source file
```

### 10. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** packages/prompt-compiler/test/prompt-compiler.test.ts
- **Public source:** [View source](<https://unpkg.com/pi-harness-runtime@0.9.5/packages/prompt-compiler/test/prompt-compiler.test.ts>)

Hardcoded password in packages/prompt-compiler/test/prompt-compiler.test.ts

Public source snippet (untrusted):

```typescript
patternName = generic_password
severity = medium
line = 311
matchedText = .replace..."'),
```

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

- **Dependencies:** 2
- **Optional dependencies:** 0
- **Peer dependencies:** 4
- **Development dependencies:** 8
- **Published dependency-graph edges:** 6

### Published dependency entries
- deepagents ^1.10.5 (Dependency)
- pi-harness-runtime ^0.3.2-beta.1 (Dependency)
- @earendil-works/pi-ai \* (PeerDependency)
- @earendil-works/pi-coding-agent \* (PeerDependency)
- @earendil-works/pi-tui \* (PeerDependency)
- typebox \* (PeerDependency)

## Package metadata
- **Package:** pi-harness-runtime
- **Ecosystem:** npm
- **Version:** 0.9.5
- **License:** MIT
- **Version published:** 2026-07-15T09:15:48.652Z
- **Package first seen:** 2026-07-04T07:55:24.416Z
- **Package last seen:** 2026-08-16T14:12:36.597Z
- **Known versions:** 26
- **Latest version:** 1.1.9
- **Appeal under review:** No
- **Description:** \[BETA\] Codex-style /usage status + autonomous coding harness for pi. Not production ready — expect breaking changes.
- **Author:** MooCoding
- **Maintainers:** manotluijiu
- **Keywords:** pi-package, pi, pi-coding-agent, extension, usage, tokens, cost, codex
- **Artifact files:** 1590
- **Artifact unpacked size:** 5,562,189 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/pi-harness-runtime/v/0.9.5>)
- [Repository](<https://github.com/ManotLuijiu/pi-harness-runtime>)
- [Homepage](<https://github.com/ManotLuijiu/pi-harness-runtime#readme>)
- [Issues](<https://github.com/ManotLuijiu/pi-harness-runtime/issues>)
