浏览全部

其他 · v0.4.1

feature-blueprint

github.com/scottzx/feature-blueprint

能力可执行外部程序发起网络请求含混淆或编码代码

一个 MIT npm 包,包含思维导图、Excalidraw 自由画布、各自的 CLI 和独立浏览器编辑器,以及提供两个侧栏入口的 DSH 插件,统一名称及版本号:@1agents/feature-blueprint。

作者原文(英文)

Mind maps and Excalidraw canvas with CLIs, browser editors and a DSH plugin

简介取自插件自己的 README 原文。

认证 L3已扫描 ✓健康 S/100周下载 87
10 项能力
许可
MIT
发布
2026-10-03
维护者
scottzx
插件 ID
4

安装命令

dsh plugin --profile web add @1agents/feature-blueprint@0.4.1

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
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…
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量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 都读走。
  • 接触凭据或密钥credentials一般4 处命中
    • 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;
    • cli/canvas.mjs:6if (url.protocol !== 'http:' || url.hostname !== '127.0.0.1' || url.username || url.password
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 使用 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
读取环境变量reads-env一般5
接触凭据或密钥credentials一般4
使用 vm 模块做隔离uses-vm-module一般2
文中出现远程脚本地址remote-url-reference一般1

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 181 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

可信度

100 健康分 S 扣分项下方逐条附证据
  • 0没有可扣分的项

认证等级 L3

  • L0静态结构与契约✓sha512-HJdZxfm97nEa3XqM… 与本地 tarball 复算一致,补丁与入口齐备
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟✓隔离 profile 安装成功,3.6s,层已挂载;宿主带它启动(booted)
  • L3运行时健康监控✓抽样会话内未观测到外部进程 / 越界写 / 外连(2 个事件)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
scottzx
仓库
https://github.com/scottzx/feature-blueprint
许可
MIT
最后发布
2026-10-03
周下载
87
star
0

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

Node 要求>=22
第三方依赖1 个
bundle patch./cordis.patch.yml
依赖安全公告2 条,见下方

这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中wsCVE-2026-45736ws: Uninitialized memory disclosure
修复版本:8.20.1 详情
中wsCVE-2026-48779ws: 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。

元数据

主页https://github.com/scottzx/feature-blueprint#readme
仓库最近提交2026-10-11
仓库创建2026-10-01

返回首页