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

# diwen@6.10.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 13 findings warrant review before installing.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Matched warn-list
- **Public report status:** Published
- **Threat category:** Credential exfiltration
- **Selected version:** 6.10.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 cloud-selection path forwards a file-sourced API key to an undocumented default relay, creating a credential exposure risk. Because this path requires an explicit feature call and the key's intended service is unclear, the source does not establish a definite credential theft attack.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 82.0%
- **Started:** 2026-11-19T19:49:48.485Z
- **Finished:** 2026-11-19T19:50:56.529Z
- **Download time:** 503 ms
- **Static scan time:** 694 ms
- **AI review time:** 66846 ms
- **Total time:** 68044 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:** A cloud-selection export can send a key read from a user-specified key file to a hard-coded default relay whose relationship to the credential's service is not established.

- **Trigger:** An application explicitly calls ensembleSelect or cascadeSelect; the request path reads DIWEN\_KEYS\_FILE and uses the default relay unless overridden.

- **Impact:** The default relay receives the supplied credential and request content; source evidence does not establish whether the key is intended for that relay or belongs to another service.

- **Evidence paths:** index.mjs, dist/core.mjs, README.md

- **Review source:** ai\_review

- **Reviewed:** 2026-11-19T19:50:56.529Z

### AI review details

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

- **Mechanism:** The code parses sk- values from the key file, assigns a selected value as the API key, and sends it as a Bearer token to the configured endpoint.

- **Rationale:** The cloud-selection path forwards a file-sourced API key to an undocumented default relay, creating a credential exposure risk. Because this path requires an explicit feature call and the key's intended service is unclear, the source does not establish a definite credential theft attack.

- **Files touched:** DIWEN\_KEYS\_FILE (or the hard-coded fallback path C:/Users/p/.openclaw/workspace/大龙虾互动区/12-D.txt)

- **Network endpoints:** https://8888ok.cc/v1/chat/completions

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 82.0%

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

- **Intent class:** Critical Vulnerability

- **False-positive risk:** Medium

- **Evidence for warning:** The package entry point imports the environment setup and re-exports dist/core.mjs, making its exports reachable to importers., ensembleSelect reads keys from DIWEN\_KEYS\_FILE and defaults to https://8888ok.cc/v1 unless a base URL override is supplied., The cloud selection path assigns the file-loaded key to the request's API key and uses it for its default model specs., The shared request helper sends that key as a Bearer Authorization header to the configured base URL's /chat/completions endpoint., The README describes ensembleSelect as a cloud integration, but does not identify the default host.

- **Evidence against:** The network and key use occur when callers invoke the cloud-selection feature; no install hook is declared., The package describes ensembleSelect as a cloud integration, and the endpoint and key file can be overridden by the user.

## Affected versions and remediation

This report applies to diwen@6.10.0.

- Review the evidence and your use of diwen@6.10.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: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/core.mjs
- **Public source:** [View source](<https://unpkg.com/diwen@6.10.0/dist/core.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L43: `;for(let s of e){let r=t[s];r&&(n+="\u300C"+s+"\u300D: "+Object.entries(r.contrastive||{}).map(([o,i])=>o+"="+i).join("; ")+"\u3002",r.notes&&(n+=" \u6CE8:"+r.notes),r.fewshot?.le...
L44: `)}return n}function Yo(e,t,n,s=Ho()){let r=s[t],o="";r?.fewshot?.length&&(o+="\u53C2\u8003:"+r.fewshot.map(a=>`\u300C${a.sentence}\u300D\u2192${a.sense_key}`).join(";")+"\u3002"),...
L45: `,"utf8"),{path:s,enabled:r.enabled}}function Lm(e={},t="zh"){let n=e.lang;if(n===void 0)return t;if(n==="zh")return"zh";if(n==="legacy")return"legacy";if(Xn(n))return n;throw new ...
```

### 2. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 6. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/core.mjs
- **Public source:** [View source](<https://unpkg.com/diwen@6.10.0/dist/core.mjs>)

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

Public source snippet (untrusted):

```javascript
L28: `;break;case"r":t+="\r";break;case"t":t+="	";break;case'"':t+='"';break;case"\\":t+="\\";break;default:throw new Error(`GCF_PARSE_ERROR: \u975E\u6CD5\u8F6C\u4E49 \\${r}`)}}return t...
L29: `)}function tp(e,t){let n=Ct(e,t),s=n.words||{},r=(s.mod||[]).length,o=(s.ins||[]).length,i=(s.del||[]).length,a=Object.keys(n).filter(l=>l!=="v"&&l!=="words"),c=[];if(a.length)for...
L30: `)}var ho=.5;function po(e){let t={},n=/([A-Za-z_:][-A-Za-z0-9_:.]*)\s*=\s*"([^"]*)"/g,s;for(;(s=n.exec(e))!==null;)t[s[1]]=s[2];return t}function Gs(e){let t=String(e),n=/<svg\b[^...
...
L37: `)}import{readFileSync as Rm}from"node:fs";import{fileURLToPath as Cm}from"node:url";import{dirname as Mm,join as Dm}from"node:path";import{createRequire as Hp}from"node:module";va...
L38: `)}function dn(e){let t=kh(e);if(!t
```

### 7. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/core.mjs
- **Public source:** [View source](<https://unpkg.com/diwen@6.10.0/dist/core.mjs>)

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

Public source snippet (untrusted):

```javascript
L28: `;break;case"r":t+="\r";break;case"t":t+="	";break;case'"':t+='"';break;case"\\":t+="\\";break;default:throw new Error(`GCF_PARSE_ERROR: \u975E\u6CD5\u8F6C\u4E49 \\${r}`)}}return t...
L29: `)}function tp(e,t){let n=Ct(e,t),s=n.words||{},r=(s.mod||[]).length,o=(s.ins||[]).length,i=(s.del||[]).length,a=Object.keys(n).filter(l=>l!=="v"&&l!=="words"),c=[];if(a.length)for...
L30: `)}var ho=.5;function po(e){let t={},n=/([A-Za-z_:][-A-Za-z0-9_:.]*)\s*=\s*"([^"]*)"/g,s;for(;(s=n.exec(e))!==null;)t[s[1]]=s[2];return t}function Gs(e){let t=String(e),n=/<svg\b[^...
...
L37: `)}import{readFileSync as Rm}from"node:fs";import{fileURLToPath as Cm}from"node:url";import{dirname as Mm,join as Dm}from"node:path";import{createRequire as Hp}from"node:module";va...
L38: `)}function dn(e){let t=kh(e);if(!t
```

### 8. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/core.mjs
- **Public source:** [View source](<https://unpkg.com/diwen@6.10.0/dist/core.mjs>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.main -> index.mjs -> dist/core.mjs
L28: `;break;case"r":t+="\r";break;case"t":t+="	";break;case'"':t+='"';break;case"\\":t+="\\";break;default:throw new Error(`GCF_PARSE_ERROR: \u975E\u6CD5\u8F6C\u4E49 \\${r}`)}}return t...
L29: `)}function tp(e,t){let n=Ct(e,t),s=n.words||{},r=(s.mod||[]).length,o=(s.ins||[]).length,i=(s.del||[]).length,a=Object.keys(n).filter(l=>l!=="v"&&l!=="words"),c=[];if(a.length)for...
L30: `)}var ho=.5;function po(e){let t={},n=/([A-Za-z_:][-A-Za-z0-9_:.]*)\s*=\s*"([^"]*)"/g,s;for(;(s=n.exec(e))!==null;)t[s[1]]=s[2];return t}function Gs(e){let t=String(e),n=/<svg\b[^...
...
L37: `)}import{readFileSync as Rm}from"node:fs";import{fileURLToPath as Cm}from"node:url";import{dirname as Mm,join as Dm}from"node:
```

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

Package source contains high-entropy string patterns.

### 10. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

### 12. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

### 13. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/core.mjs
- **Public source:** [View source](<https://unpkg.com/diwen@6.10.0/dist/core.mjs>)

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 = diwen@6.4.0
matchedIdentity = npm:ZGl3ZW4:6.4.0
similarity = 0.500
summary = stored previous version shares package body but lacks this dangerous source file
```

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

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

### Published dependency entries
- @node-rs/jieba ^2.0.4 (Dependency)

## Package metadata
- **Package:** diwen
- **Ecosystem:** npm
- **Version:** 6.10.0
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-11-19T14:37:31.628Z
- **Package first seen:** 2026-11-17T20:53:16.143Z
- **Package last seen:** 2026-11-21T23:21:26.397Z
- **Known versions:** 14
- **Latest version:** 6.14.0
- **Appeal under review:** No
- **Description:** 迪文（Diwen）概念坐标系统 open-core 包：开源加载壳 + 闭源核心 + 加密概念数据。允许商用、不可再分发、须署名 Pondsi。
- **Deprecated:** 传播延迟版本，请用 6.10.1（内容相同）
- **Author:** Pondsi
- **Maintainers:** pondsi
- **Artifact files:** 9
- **Artifact unpacked size:** 8,511,793 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/diwen/v/6.10.0>)
