---
canonical: "https://firewall.lpm.dev/npm/@spuentesp/lain-mcp/v/0.8.0"
markdown: "https://firewall.lpm.dev/npm/@spuentesp/lain-mcp/v/0.8.0.md"
package: "@spuentesp/lain-mcp"
report_status: "published"
title: "@spuentesp/lain-mcp@0.8.0 npm security report"
verdict: "suspicious"
version: "0.8.0"
---

# @spuentesp/lain-mcp@0.8.0 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 — allowed with a warning** — Allowed by default policy, but 12 finding(s) warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Staged Payload Carrier
- **Selected version:** 0.8.0
- **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.

The postinstall installs the package’s native component from its upstream release host, but the checksum is fetched from that same host and does not independently authenticate the binary. This is a real supply-chain risk without inspected evidence of malicious behavior, so warn rather than block.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 84.0%
- **Started:** 2026-10-07T23:52:22.550Z
- **Finished:** 2026-10-07T23:52:45.704Z
- **Download time:** 780 ms
- **Static scan time:** 62 ms
- **AI review time:** 22311 ms
- **Total time:** 23154 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 postinstall downloads and unpacks a native executable from the package’s upstream GitHub releases. This creates a supply-chain exposure because the archive and its checksum are fetched from the same host.

- **Trigger:** The npm postinstall runs, except when CI is set without the force flag or npm scripts are disabled.

- **Impact:** A compromised or malicious release could place executable code in the user cache for later use by the package command; no concrete malicious payload behavior was identified in the inspected source.

- **Evidence paths:** package.json, scripts/install.js, scripts/runtime.js

- **Review source:** ai\_review

- **Reviewed:** 2026-10-07T23:52:45.704Z

### AI review details

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

- **Mechanism:** The installer fetches the release checksum and archive, verifies the archive against that checksum, extracts the executable, and runs it for a version check.

- **Rationale:** The postinstall installs the package’s native component from its upstream release host, but the checksum is fetched from that same host and does not independently authenticate the binary. This is a real supply-chain risk without inspected evidence of malicious behavior, so warn rather than block.

- **Files touched:** scripts/install.js, scripts/runtime.js

- **Network endpoints:** https://github.com/spuentesp/lain/releases

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 84.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** The package’s postinstall calls an installer that downloads a native release archive and checksum from GitHub., The archive is checked against the downloaded checksum, but the checksum and archive come from the same release host., The installer extracts and runs the binary for a version check, then stores it in a versioned cache.

- **Evidence against:** The download targets the package’s declared upstream repository and a release matching the package version by default., The postinstall skips the download in CI unless explicitly forced, and when npm scripts are disabled., The source shows no credential collection, unrelated network destination, or mutation of an AI-agent control surface.

## Affected versions and remediation

This report applies to @spuentesp/lain-mcp@0.8.0.

- Review the evidence and your use of @spuentesp/lain-mcp@0.8.0 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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@spuentesp/lain-mcp@0.8.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

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

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

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

Public source snippet (untrusted):

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

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

Package declares npm scripts.

### 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. High: Unverified Remote Native Payload Install
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@spuentesp/lain-mcp@0.8.0/package.json>)

Install-time source downloads a native archive from a fixed external host without transport verification, extracts it, and installs an executable payload.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/install.js
Install-time code downloads an unverified remote native executable, stages it locally, activates an executable path, and exposes it to process execution.
L4: const fs = require('fs');
L5: const https = require('https');
L6: const os = require('os');
L7: const path = require('path');
L8: const { execFileSync, spawnSync } = require('child_process');
L9: 
...
L11: 
L12: function targetFor(platform = process.platform, arch = process.arch) {
L13: const targets = { 'darwin-arm64': 'aarch64-apple-darwin', 'linux-x64': 'x86_64-unknown-linux-gnu', 'win32-x64': 'x86_64-pc-windows-msvc' };
L14: const target = targets[`${platform}-${arch}`];
L15: if (!target) throw new Error(`Unsupported platform: ${platform}-${arch}`);
L16: return target;
L2: 
L3: const {
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 10. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 70.0%

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

### 11. Medium: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 84.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@spuentesp/lain-mcp@0.8.0/package.json>)

The package’s postinstall calls an installer that downloads a native release archive and checksum from GitHub.

Public source snippet (untrusted):

```json
"scripts": {
    "postinstall": "node scripts/install.js",
    "test": "node scripts/install.test.js && node bin/lain.test.js"
```

### 12. Medium: Suspicious Lifecycle Evidence
- **Category:** Manifest
- **Confidence:** 84.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@spuentesp/lain-mcp@0.8.0/scripts/install.js>)

The package’s postinstall calls an installer that downloads a native release archive and checksum from GitHub.

Public source snippet (untrusted):

```javascript
} else {
  ensureBinary().catch((error) => {
    process.stderr.write(`Lain installation failed: ${error.message}\n`);
    process.exitCode = 1;
  });
}
```

## 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:** @spuentesp/lain-mcp
- **Ecosystem:** npm
- **Version:** 0.8.0
- **License:** MIT
- **Version published:** 2026-09-28T18:56:56.210Z
- **Package first seen:** 2026-08-07T21:13:03.474Z
- **Package last seen:** 2026-10-21T18:44:46.198Z
- **Known versions:** 9
- **Latest version:** 0.11.0
- **Appeal under review:** No
- **Description:** High-performance knowledge graph MCP server for AI coding agents with semantic search.
- **Maintainers:** spuentesp
- **Keywords:** mcp, model-context-protocol, ai, coding, knowledge-graph, rust, semantic-search, code-analysis
- **Runtime engines:** node: \>=18.0.0
- **Supported OS:** darwin, linux, win32
- **Supported CPU:** x64, arm64
- **Artifact files:** 7
- **Artifact unpacked size:** 23,463 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@spuentesp/lain-mcp/v/0.8.0>)
- [Repository](<https://github.com/spuentesp/lain>)
- [Issues](<https://github.com/spuentesp/lain/issues>)
