feature-blueprint
github.com/scottzx/feature-blueprint
v0.4.1
其他
可执行外部程序发起网络请求含混淆或编码代码
一个 MIT npm 包,包含思维导图、Excalidraw 自由画布、各自的 CLI 和独立浏览器编辑器,以及提供两个侧栏入口的 DSH 插件,统一名称及版本号:`@1agents/feature-blueprint`。CLI 和独立编辑器需要 Node.js 22+;使用它们无需安装或启动 DSH。
作者原文(英文)
Mind maps and Excalidraw canvas with CLIs, browser editors and a DSH plugin
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注3需留意6一般14未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注1 处命中cli/open.mjs:3import { spawn } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意32 处命中canvas/src/commands.js:82socket=new WebSocket(`ws://${location.host}/canvas-ws`);web-dist/editor.js:4113const response = await fetch("api/history", { cache: "no-store" });web-dist/editor.js:4135const response = await fetch(route, { cache: "no-store", ...init });…as/dist/assets/katex-C5jXJg4s.js:252`+P+" children.");for(var U=0;U<P;U++){var o0=new P0(R[U]),m0=new C0([o0],{width:"400em",height:A(O),viewBox:"0 0 "+h+" …- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 含混淆或编码代码
obfuscated-code需留意30 处命中packages/dsh-plugin/dist/client.js:14`)}:{},...d.notesFormat||o.notesFormat?{notesFormat:"markdown"}:{},...d.style||o.style?{style:{...o.style,...d.style}}:{…packages/dsh-plugin/dist/client.js:20`)){let o="",a=0;for(let d of i){let u=/[\u0020-\u007e]/.test(d)?.55:1;a+u>e&&o&&(n.push(o),o="",a=0),o+=d,a+=u}n.push(o…packages/dsh-plugin/dist/client.js:373`;var Ee=require("react"),Ao=require("@deepseek-ai/dsh-client-store"),Lo=require("@deepseek-ai/dsh-client-ui-primitives"…packages/dsh-plugin/dist/client.js:381`,Kn=class{write;changed;state;running;controller=new AbortController;observedRevision;retiredPreviews=new Set;pendingEx…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 写入文件
writes-files需留意11 处命中packages/dsh-plugin/dist/client.js:14`)}:{},...d.notesFormat||o.notesFormat?{notesFormat:"markdown"}:{},...d.style||o.style?{style:{...o.style,...d.style}}:{…web-dist/editor.js:151renameTitle: "Double-click to rename (or press Enter / F2)",dist/labels.js:75focus: 'Focus this branch', all: 'Full document', documentTitle: 'Document title', renameTitle: 'Double-click to rename …cli/agent.mjs:107await writeFile(path, content, { flag: 'wx' });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态加载模块
dynamic-import一般14 处命中dist/index.js:9const host = await import(new URL('../packages/dsh-plugin/dist/host.js', import.meta.url).href);cli/blueprint.mjs:128else if (command === 'import') value = await agent.import({ ...common, format: required(options, 'format'), content: awa…cli/blueprint.mjs:217await import('../canvas/src/cli/canvas.mjs');canvas/src/cli/canvas.mjs:4try{if(args.length)throw Error('serve takes no arguments; uses 127.0.0.1:5178');const {serve}=await import('../server/se…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般13 处命中canvas/src/server/serve.js:9await readFile(resolve(root,'index.html')); // Fail early if the package lacks its build.canvas/src/server/serve.js:20const data=await readFile(file);res.setHeader('Content-Type',types[extname(file)]||'application/octet-stream');res.setHe…cli/blueprint.mjs:100process.stdout.write(await readFile(new URL('../schema/blueprint.schema.json', import.meta.url), 'utf8')); return;cli/blueprint.mjs:128else if (command === 'import') value = await agent.import({ ...common, format: required(options, 'format'), content: awa…- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般6 处命中…assets/cytoscape.esm-Ix0LnXOy.js:14*/var Yv=function(e,t){this.recycle(e,t)};function ca(){return!1}function ja(){return!0}Yv.prototype={instanceString:fun…web-dist/editor.js:629return !!url.hostname && !url.username && !url.password;packages/dsh-plugin/dist/host.js:7return !!url.hostname && !url.username && !url.password;dist/model.js:8return !!url.hostname && !url.username && !url.password;- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般5 处命中canvas/tests/editor.test.mjs:25try { browserRuntime = await import(process.env.BLUEPRINT_PLAYWRIGHT_PATH ? new URL(`file://${process.env.BLUEPRINT_PLAY…canvas/tests/editor.test.mjs:46bundle: true, write: false, format: 'iife', jsx: 'automatic', jsxImportSource: 'react', define: { 'process.env.NODE_ENV'…canvas/tests/editor.test.mjs:63const browser = await browserRuntime.chromium.launch({headless:true,...(process.env.BLUEPRINT_BROWSER_EXECUTABLE?{execut…- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 使用 vm 模块做隔离
uses-vm-module一般2 处命中canvas/tests/commands.test.mjs:4import { runInNewContext } from 'node:vm';canvas/tests/editor.test.mjs:5import { runInNewContext } from 'node:vm';- 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
- 文中出现远程脚本地址
remote-url-reference一般1 处命中…assets/cytoscape.esm-Ix0LnXOy.js:13https://github.com/jquery/jquery/blob/master/src/event.js- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 1 |
| 发起网络请求 | network | 需留意 | 32 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 30 |
| 写入文件 | writes-files | 需留意 | 11 |
| 动态加载模块 | dynamic-import | 一般 | 14 |
| 读取文件 | reads-files | 一般 | 13 |
| 接触凭据或密钥 | credentials | 一般 | 6 |
| 读取环境变量 | reads-env | 一般 | 5 |
| 使用 vm 模块做隔离 | uses-vm-module | 一般 | 2 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 181 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | ws | CVE-2026-45736 | ws: Uninitialized memory disclosure 修复版本:8.20.1 详情 → |
| 中 | ws | CVE-2026-48779 | ws: Memory exhaustion DoS from tiny fragments and data chunks 修复版本:5.2.5, 6.2.4, 7.5.11 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。