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

# @guanlin4924/devflow-pi@0.1.95 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.1.95
- **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:** 94.0%
- **Started:** 2026-09-30T07:51:56.314Z
- **Finished:** 2026-09-30T07:54:09.264Z
- **Download time:** 1543 ms
- **Static scan time:** 13291 ms
- **AI review time:** 118115 ms
- **Total time:** 132950 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:** Bundled Playwright provides user-command agent configuration setup that can overwrite existing project MCP configuration. No confirmed malicious attack was established.

- **Trigger:** Explicit invocation of Playwright init-agents with the Claude loop selected.

- **Impact:** Existing project MCP settings can be replaced, and agent tools become available through the configured server.

- **Evidence paths:** node\_modules/playwright/lib/program.js, node\_modules/playwright/lib/agents/generateAgents.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-30T07:54:09.264Z

### AI review details

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

- **Mechanism:** The generator writes agent definitions and replaces .mcp.json with configuration launching the Playwright test MCP server.

- **Rationale:** The source establishes explicit user-command agent configuration mutation, which warrants a capability warning under the supplied policy. The inspected npm lifecycle performs dependency compatibility patches rather than unconsented foreign agent configuration setup.

- **Files touched:** .claude/agents, .mcp.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 94.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Bundled Playwright exposes an explicit init-agents command that invokes the selected agent generator., The Claude generator creates project-local agent definitions and writes .mcp.json with a Playwright test MCP server., The configuration writer uses unconditional file writes, so setup can replace existing configuration., The npm postinstall hook runs a bounded session-routing patch against two dependency source files.

- **Evidence against:** Agent configuration setup requires an explicit CLI command; the inspected install hook does not invoke it., The MCP configuration launches Playwright's test server, and no credential export or unrelated remote payload was identified.

## Affected versions and remediation

This report applies to @guanlin4924/devflow-pi@0.1.95.

- Review the evidence and your use of @guanlin4924/devflow-pi@0.1.95 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/@guanlin4924/devflow-pi@0.1.95/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node bin/apply-opencode-go-session-hotfix.mjs
```

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

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** src/platform-extension.ts
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/src/platform-extension.ts>)

Package source references child process execution.

Public source snippet (untrusted):

```typescript
L2: import { mkdir, writeFile } from "node:fs/promises";
L3: import { spawn } from "node:child_process";
L4: import path from "node:path";
```

### 4. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** node\_modules/playwright-core/lib/utilsBundle.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright-core/lib/utilsBundle.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L123: var hasFlag = require_has_flag();
L124: var env = process.env;
L125: var forceColor = void 0;
...
L158: var min = forceColor ? 1 : 0;
L159: if (process.platform === "win32") {
L160: var osRelease = os2.release().split(".");
...
L207: supportsColor: getSupportLevel,
L208: stdout: getSupportLevel(process.stdout),
L209: stderr: getSupportLevel(process.stderr)
...
L636: if (typeof theme === "string") {
L637: console.log("colors.setTheme now only accepts an object, not a string.  If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the fi...
L638: return;
```

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

Package source references network APIs.

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

Package source references environment variables.

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

Package source references filesystem APIs.

### 8. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** node\_modules/playwright/lib/runner/index.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright/lib/runner/index.js>)

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

Public source snippet (untrusted):

```javascript
L864: const port = new URL(this._options.url).port;
L865: throw new Error(`${this._options.url ?? `http://localhost${port ? ":" + port : ""}`} is already used, make sure that nothing is running on the port/url or set reuseExistingServer:t...
L866: }
...
L873: ...DEFAULT_ENVIRONMENT_VARIABLES,
L874: ...process.env,
L875: ...this._options.env
...
L878: stdio: "stdin",
L879: shell: true,
L880: attemptToGracefullyClose: async () => {
```

### 9. High: Obfuscated Payload Loader
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** node\_modules/playwright/lib/common/index.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright/lib/common/index.js>)

Source contains an obfuscated payload loader that reconstructs and executes hidden code.

Public source snippet (untrusted):

```javascript
L78: var { calculateSha1 } = require("playwright-core/lib/coreBundle").utils;
L79: var cacheDir = process.env.PWTEST_CACHE_DIR || (() => {
L80: if (process.platform === "win32")
L81: return import_path.default.join(import_os.default.tmpdir(), `playwright-transform-cache`);
...
L97: return {
L98: map: JSON.parse(import_fs.default.readFileSync(sourceMapPath, "utf-8")),
L99: url: source
...
L361: return file2;
L362: return import_path2.default.relative(process.cwd(), file2);
L363: }
...
L375: return cached;
L376: const packageJsonPath = import_path2.default.join(folderPath, "package.json");
```

### 10. Critical: Trojan Source Unicode
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** node\_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js>)

Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.

Public source snippet (untrusted):

```javascript
L165: contains invisible/control Unicode U+FEFF (zero width no-break space)
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buff
```

### 11. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** node\_modules/playwright-core/lib/coreBundle.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright-core/lib/coreBundle.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: node_modules/playwright-core/lib/coreBundle.js spawns node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js; helper contains network access plus dynamic code execution.
L552: function truncateDataUrl(url3) {
L553: if (!url3.startsWith("data:"))
L554: return url3;
...
L647: default:
L648: const code = c.charCodeAt(0);
L649: return "\\x" + code.toString(16).padStart(2, "0");
...
L4090: ["BrowserContext.setNetworkInterceptionPatterns", { title: "Route requests", group: "route" }],
L4091: ["BrowserContext.[redacted]", { title: "Route WebSockets", group: "route" }],
L4092: ["BrowserContext.setOffline", { title: "Set offline mode", renderParams: ["offline"] }],
...
L5946: }
L5947: case "stdout": {
L5948: contextEntry.stdio.push(event);
```

### 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: Ships Wasm Module
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** node\_modules/playwright-core/lib/webp\_codec.wasm
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright-core/lib/webp_codec.wasm>)

Package ships WebAssembly modules.

Public source snippet (untrusted):

```text
path = node_modules/playwright-core/lib/webp_codec.wasm
kind = wasm_module
sizeBytes = 565369
magicHex = [redacted]
```

### 15. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** plugins/devflow-core/runtime/hooks/post\_tool.py
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/plugins/devflow-core/runtime/hooks/post_tool.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = plugins/devflow-core/runtime/hooks/post_tool.py
kind = build_helper
sizeBytes = 1285
magicHex = [redacted]
```

### 16. 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.

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

Package manifest does not declare a clear license.

### 18. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** node\_modules/playwright-core/lib/utilsBundle.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright-core/lib/utilsBundle.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 = aws-runtime-bridge@1.9.153
matchedPath = node_modules/playwright-core/lib/utilsBundle.js
matchedIdentity = npm:YXdzLXJ1bnRpbWUtYnJpZGdl:1.9.153
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** node\_modules/playwright-core/lib/tools/cli-client/channelSessions.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright-core/lib/tools/cli-client/channelSessions.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 = aws-runtime-bridge@1.9.153
matchedPath = node_modules/playwright-core/lib/tools/cli-client/channelSessions.js
matchedIdentity = npm:YXdzLXJ1bnRpbWUtYnJpZGdl:1.9.153
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 20. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** node\_modules/playwright/lib/agents/generateAgents.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright/lib/agents/generateAgents.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 = aws-runtime-bridge@1.9.153
matchedPath = node_modules[redacted].js
matchedIdentity = npm:YXdzLXJ1bnRpbWUtYnJpZGdl:1.9.153
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 21. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** node\_modules/playwright/lib/cli/testActions.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright/lib/cli/testActions.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 = aws-runtime-bridge@1.9.153
matchedPath = node_modules/playwright/lib/cli/testActions.js
matchedIdentity = npm:YXdzLXJ1bnRpbWUtYnJpZGdl:1.9.153
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:** node\_modules/playwright/lib/util.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright/lib/util.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 = aws-runtime-bridge@1.9.153
matchedPath = node_modules/playwright/lib/util.js
matchedIdentity = npm:YXdzLXJ1bnRpbWUtYnJpZGdl:1.9.153
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** plugins/devflow-design/extensions/devflow-design.ts
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/plugins/devflow-design/extensions/devflow-design.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = @guanlin4924/devflow-pi@0.1.82
matchedPath = plugins/devflow-design/extensions/devflow-design.ts
matchedIdentity = npm:QGd1YW5saW40OTI0L2RldmZsb3ctcGk:0.1.82
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** plugins/devflow-quality/extensions/devflow-quality.ts
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/plugins/devflow-quality/extensions/devflow-quality.ts>)

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

Public source snippet (untrusted):

```typescript
matchType = normalized_sha256
matchedPackage = @guanlin4924/devflow-pi@0.1.82
matchedPath = plugins/devflow-quality/extensions/devflow-quality.ts
matchedIdentity = npm:QGd1YW5saW40OTI0L2RldmZsb3ctcGk:0.1.82
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** node\_modules/playwright/lib/common/index.js
- **Public source:** [View source](<https://unpkg.com/@guanlin4924/devflow-pi@0.1.95/node_modules/playwright/lib/common/index.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 = @guanlin4924/devflow-pi@0.1.94
matchedIdentity = npm:QGd1YW5saW40OTI0L2RldmZsb3ctcGk:0.1.94
similarity = 0.727
summary = stored previous version shares package body but lacks this dangerous source file
```

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

### Published dependency entries
- @oh-my-pi/pi-coding-agent 17.2.7 (Dependency)
- @playwright/test 1.63.0 (Dependency)
- @plurnk/plurnk-mimetypes-grammar-cpp 1.16.1 (Dependency)
- @plurnk/plurnk-mimetypes-grammar-kotlin 1.16.1 (Dependency)
- @plurnk/plurnk-mimetypes-grammar-ruby 1.16.1 (Dependency)
- @plurnk/plurnk-mimetypes-grammar-scala 1.16.1 (Dependency)
- @plurnk/plurnk-mimetypes-grammar-yaml 1.16.1 (Dependency)
- tree-sitter-graphql-grammar-wasm 1.1.0 (Dependency)
- web-tree-sitter 0.25.10 (Dependency)

## Package metadata
- **Package:** @guanlin4924/devflow-pi
- **Ecosystem:** npm
- **Version:** 0.1.95
- **License:** UNLICENSED
- **Version published:** 2026-09-30T07:50:20.334Z
- **Package first seen:** 2026-08-10T09:01:51.319Z
- **Package last seen:** 2026-10-08T14:08:51.268Z
- **Known versions:** 53
- **Latest version:** 0.1.97
- **Appeal under review:** No
- **Description:** Devflow 专项研发 Pi，基于固定版本 OMP Runtime 组装研发状态机、代码智能、设计、实现与质量门禁。
- **Maintainers:** guanlin4924
- **Runtime engines:** bun: \>=1.3.14, node: \>=20
- **Artifact files:** 563
- **Artifact unpacked size:** 21,998,263 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@guanlin4924/devflow-pi/v/0.1.95>)
