---
canonical: "https://firewall.lpm.dev/npm/@ashx-j/lunr"
markdown: "https://firewall.lpm.dev/npm/@ashx-j/lunr/v/0.2.3.md"
package: "@ashx-j/lunr"
report_status: "published"
title: "@ashx-j/lunr@0.2.3 npm security report"
verdict: "suspicious"
version: "0.2.3"
---

# @ashx-j/lunr@0.2.3 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 AI-agent capability risk** — Allowed by default with warning: agent-facing configuration or capability changes need review before use.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only AI-agent capability risk
- **Public report status:** Published
- **Threat category:** AI-agent capability abuse
- **Selected version:** 0.2.3
- **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: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

Review flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-10-01T08:00:57.956Z
- **Finished:** 2026-10-01T08:03:05.917Z
- **Download time:** 1806 ms
- **Static scan time:** 7590 ms
- **AI review time:** 118563 ms
- **Total time:** 127961 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:** Interactive MCP setup can change shared agent configuration by adding a local RepoPrompt server. This is a user-confirmed configuration capability; no active attack was established.

- **Trigger:** Run /mcp setup and confirm the action to add RepoPrompt.

- **Impact:** Other clients using the shared MCP configuration may discover and execute the added server. This supports a capability warning, not a malware block.

- **Evidence paths:** dist/builtin-extensions/pi-mcp-adapter/config.js, dist/builtin-extensions/pi-mcp-adapter/commands.js, dist/builtin-extensions/pi-mcp-adapter/index.js, dist/builtin-extensions/pi-mcp-adapter/mcp-setup-panel.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-01T08:03:05.917Z

### AI review details

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

- **Mechanism:** The setup callback inserts the detected executable as an MCP server in project configuration or the shared global configuration.

- **Rationale:** Source establishes user-confirmed mutation of shared AI-agent configuration, which the supplied policy classifies as a warning. No concrete malicious install behavior was established.

- **Files touched:** .mcp.json, .config/mcp/mcp.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 91.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** MCP setup can add RepoPrompt to shared project or global MCP configuration., The configuration writer inserts a server entry and saves the configuration., The setup command opens an interactive panel; a confirmed action invokes the RepoPrompt write callback.

- **Evidence against:** package.json contains no preinstall, install, or postinstall hook and no runtime self-dependency., The configuration change requires an interactive user action; inspected source does not establish covert mutation or credential theft.

## Affected versions and remediation

This report applies to @ashx-j/lunr@0.2.3.

- Review the evidence and your use of @ashx-j/lunr@0.2.3 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## 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:** dist/core/exec.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/core/exec.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3: */
L4: import { spawn } from "node:child_process";
L5: import { waitForChildProcess } from "../utils/child-process.js";
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L946: env: { ...process.env, ...(command.env ?? {}) },
L947: shell: true,
L948: stdio: ["ignore", "pipe", "pipe"],
```

### 4. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** examples/extensions/doom-overlay/doom-engine.ts
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/examples/extensions/doom-overlay/doom-engine.ts>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```typescript
L64: const nativeRequire = createRequire(doomJsPath);
L65: const moduleFunc = new Function("module", "exports", "__dirname", "__filename", "require", doomJsCode);
L66: moduleFunc(moduleExports, moduleExports.exports, buildDir, doomJsPath, nativeRequire);
```

### 5. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/utils/photon.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/utils/photon.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L17: import { fileURLToPath } from "url";
L18: const require = createRequire(import.meta.url);
L19: const fs = require("fs");
```

### 6. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/core/rollback.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/core/rollback.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L27: */
L28: import { spawnSync } from "node:child_process";
L29: import { createHash } from "node:crypto";
...
L33: import { CONFIG_DIR_NAME, getAgentDir } from "../config.js";
L34: const ROLLBACK_BASE = join(homedir(), ".lunr", "rollback");
L35: const contexts = new Map();
...
L217: });
L218: if (!headSrc.error && headSrc.status === 0 && headSrc.stdout) {
L219: turn.files.set(sourceAbs, {
...
L322: try {
L323: const parsed = JSON.parse(readFileSync(path, "utf-8"));
L324: if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 10. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** examples/extensions/doom-overlay/doom/build/doom.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/examples/extensions/doom-overlay/doom/build/doom.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L7: 
L8: var Module=moduleArg;var readyPromiseResolve,readyPromiseReject;var readyPromise=new Promise((resolve,reject)=>{readyPromiseResolve=resolve;readyPromiseReject=reject});var ENVIRONM...
L9:
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 13. Medium: Ships Wasm Module
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** examples/extensions/doom-overlay/doom/build/doom.wasm
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/examples/extensions/doom-overlay/doom/build/doom.wasm>)

Package ships WebAssembly modules.

Public source snippet (untrusted):

```text
path = examples/extensions/doom-overlay/doom/build/doom.wasm
kind = wasm_module
sizeBytes = 380169
magicHex = [redacted]
```

### 14. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** examples/extensions/doom-overlay/doom/build.sh
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/examples/extensions/doom-overlay/doom/build.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = examples/extensions/doom-overlay/doom/build.sh
kind = build_helper
sizeBytes = 3366
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.

### 16. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/builtin-extensions/pi-lsp-extension/src/index.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/builtin-extensions/pi-lsp-extension/src/index.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 = 5
```

### 17. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/utils/shell.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/utils/shell.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 = @ashx-j/lunr@0.2.21
matchedPath = dist/utils/shell.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 18. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/modes/interactive/components/extension-editor.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/modes/interactive/components/extension-editor.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 = @ashx-j/lunr@0.2.21
matchedPath = [redacted]-editor.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/core/resolve-config-value.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/core/resolve-config-value.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 = @phi-code-admin/phi-code@0.99.0
matchedPath = dist/core/resolve-config-value.js
matchedIdentity = npm:[redacted]:0.99.0
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/utils/tools-manager.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/utils/tools-manager.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 = @ashx-j/lunr@0.2.21
matchedPath = dist/utils/tools-manager.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 21. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** dist/modes/rpc/rpc-client.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/modes/rpc/rpc-client.js>)

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

Public source snippet (untrusted):

```javascript
matchType = token_shingles
matchedPackage = @phi-code-admin/phi-code@0.99.0
matchedPath = dist/modes/rpc/rpc-client.js
matchedIdentity = npm:[redacted]:0.99.0
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
```

### 22. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/modes/rpc/rpc-mode.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/modes/rpc/rpc-mode.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 = @ashx-j/lunr@0.2.21
matchedPath = dist/modes/rpc/rpc-mode.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/utils/clipboard.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/utils/clipboard.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 = @ashx-j/lunr@0.2.21
matchedPath = dist/utils/clipboard.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/builtin-extensions/pi-mcp-adapter/utils.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/builtin-extensions/pi-mcp-adapter/utils.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 = @ashx-j/lunr@0.2.21
matchedPath = dist/builtin-extensions/pi-mcp-adapter/utils.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/cli/args.js
- **Public source:** [View source](<https://unpkg.com/@ashx-j/lunr@0.2.3/dist/cli/args.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 = @ashx-j/lunr@0.2.21
matchedPath = dist/cli/args.js
matchedIdentity = npm:QGFzaHgtai9sdW5y:0.2.21
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

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

- **Dependencies:** 35
- **Optional dependencies:** 1
- **Peer dependencies:** 0
- **Development dependencies:** 10
- **Published dependency-graph edges:** 36

### Published dependency entries
- @ashx-j/lunr-agent ^0.2.3 (Dependency)
- @ashx-j/lunr-ai ^0.2.3 (Dependency)
- @ashx-j/lunr-tui ^0.2.3 (Dependency)
- @modelcontextprotocol/ext-apps ^1.7.4 (Dependency)
- @modelcontextprotocol/sdk 1.30.0 (Dependency)
- @mozilla/readability ^0.6.0 (Dependency)
- @silvia-odwyer/photon-node 0.3.4 (Dependency)
- @sinclair/typebox npm:typebox@1.1.38 (Dependency)
- chalk 5.6.2 (Dependency)
- croner 10.0.1 (Dependency)
- cross-spawn 7.0.6 (Dependency)
- diff 8.0.4 (Dependency)
- discord.js 14.27.0 (Dependency)
- glob 13.0.6 (Dependency)
- highlight.js 10.7.3 (Dependency)
- hosted-git-info 9.0.3 (Dependency)
- ignore 7.0.5 (Dependency)
- jiti 2.7.0 (Dependency)
- linkedom ^0.16.11 (Dependency)
- minimatch 10.2.5 (Dependency)
- open ^10.2.0 (Dependency)
- p-limit ^6.2.0 (Dependency)
- proper-lockfile 4.1.2 (Dependency)
- recheck ^4.5.0 (Dependency)
- semver 7.8.0 (Dependency)
- tree-sitter-wasms ^0.1.13 (Dependency)
- turndown ^7.2.4 (Dependency)
- typebox 1.1.38 (Dependency)
- undici 8.5.0 (Dependency)
- unicode-animations 1.0.3 (Dependency)
- unpdf ^1.6.2 (Dependency)
- vscode-languageserver-protocol ^3.18.2 (Dependency)
- web-tree-sitter ^0.24.7 (Dependency)
- yaml 2.9.0 (Dependency)
- zod ^4.4.3 (Dependency)
- @mariozechner/clipboard 0.3.9 (OptionalDependency)

## Package metadata
- **Package:** @ashx-j/lunr
- **Ecosystem:** npm
- **Version:** 0.2.3
- **License:** MIT
- **Version published:** 2026-08-20T12:44:30.771Z
- **Package first seen:** 2026-08-16T12:38:09.855Z
- **Package last seen:** 2026-10-04T22:39:47.464Z
- **Known versions:** 31
- **Latest version:** 0.2.28
- **Appeal under review:** No
- **Description:** Coding agent CLI with read, bash, edit, write tools and session management
- **Author:** Mario Zechner
- **Maintainers:** ashx-j
- **Keywords:** coding-agent, ai, llm, cli, tui, agent
- **Runtime engines:** node: \>=22.19.0
- **Artifact files:** 2293
- **Artifact unpacked size:** 32,871,786 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@ashx-j/lunr/v/0.2.3>)
- [Repository](<https://github.com/ashx-j/lunR>)
- [Homepage](<https://github.com/ashx-j/lunR#readme>)
- [Issues](<https://github.com/ashx-j/lunR/issues>)
