W

worka

github.com/kllilizxc/dsh-worka-bench

v0.1.6 工具与效率 可执行外部程序以 shell 执行命令写入文件

这份普通说明是一个小型执行工作台,用于处理通过已注册连接收到的工作。把该目录复制到 note 代码目录中,用下面的状态结构创建 note,然后激活复制过来的代码。

作者原文(英文)

Worka — notes, tools, and ongoing agent work for DeepSeek Harness.

中文简介由 DeepSeek 模型翻译,仅供参考。

dshdeepseek-harnesspluginworkbench
分类
tools
发布
2026-09-17
版本
v0.1.6
源仓库已无法访问 这个仓库已经删除、改名或转为私有,看不到源码了。npm 上的包仍然可以安装——安装走的是 npm,不读 GitHub——但无法审阅代码,装之前请自行判断。

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注5需留意5一般12未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注7 处命中
    • dist/execution-maintenance.js:3import { spawnSync } from "node:child_process";
    • dist/host.js:4637import { execFile } from "node:child_process";
    • …cker/runtime/scripts/discover.ts:1import { execFile } from 'node:child_process';
    • …s/feature-tracker/src/backend.js:1import { spawn } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注6 处命中
    • …rkbench/scripts/prepare-note.mjs:8const git = (root, ...args) => execFileSync('git', ['-C', root, ...args], { encoding: 'utf8' }).trim();
    • …es/preview-adapter/lifecycle.mjs:7try{return execFileSync('lsof',['-nP','-p',String(pid),'-a','-d','cwd','-Fn'],{encoding:'utf8',stdio:['ignore','pipe','i…
    • …es/preview-adapter/lifecycle.mjs:15return JSON.parse(execFileSync('python3',['-c',script,String(pid)],{encoding:'utf8',stdio:['ignore','pipe','pipe']}));
    • …es/preview-adapter/lifecycle.mjs:26try{return Number(execFileSync('lsof',['-nP',`-iTCP:${port}`,'-sTCP:LISTEN','-t'],{encoding:'utf8',stdio:['ignore','pipe…
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意33 处命中
    • dist/execution-maintenance.js:1404await mkdir(dirname(destination), { recursive: true, mode: 448 });
    • dist/execution-maintenance.js:1406await copyFile(source, destination, 1);
    • dist/execution-maintenance.js:1445await writeFile(temporary, `${JSON.stringify(value, null, 2)}
    • dist/execution-maintenance.js:1447await rename(temporary, path);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意23 处命中
    • …owledge/output/katex-3mqzdd8d.js:252`+c+" children.");for(var u=0;u<c;u++){var $Q=new _Q(_[u]),AQ=new DQ([$Q],{width:"400em",height:H(h),viewBox:"0 0 "+I+" …
    • …owledge/output/katex-3mqzdd8d.js:256`,this.tokenRegex.lastIndex);if(Y===-1)this.tokenRegex.lastIndex=Z.length,this.settings.reportNonstrict("commentAtEnd","…
    • …icial/weather/output/actions.mjs:44const response = await fetch(url, { signal: controller.signal, headers: { accept: "application/json" } });
    • …racker/runtime/scripts/server.ts:65async fetch(req) {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • R011 客户端可疑脚本client-side-risk需留意6 处命中
    • entry-bundle.js: innerHTML + postMessage; entry-bundle.js: innerHTML + postMessage
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 可终止进程kills-processes需留意5 处命中
    • …es/preview-adapter/lifecycle.mjs:5export function alive(pid){try{process.kill(Number(pid),0);return true;}catch(e){if(e.code==='ESRCH')return false;throw …
    • …es/preview-adapter/lifecycle.mjs:115try{process.kill(p.pid,kind);}catch(e){if(e.code!=='ESRCH')throw e;}
    • …es/preview-adapter/lifecycle.mjs:116if(p.group){try{process.kill(-p.pid,kind);}catch(e){if(e.code!=='ESRCH')throw e;}}
    • …es/preview-adapter/lifecycle.mjs:133process.kill(p.pid,'SIGTERM');
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 含混淆或编码代码obfuscated-code需留意1 处命中
    • …owledge/output/entry-jxhjg0w9.js:8\r`;function T(M){if(M===null)return!1;let K=0,f=M.length,X=j;for(let W=0;W<f;W++){let q=X.indexOf(M.charAt(W));if(q>64)…
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 动态加载模块dynamic-import一般296 处命中
    • AUTHORING.md:20便笺以普通 view.tsx 默认导出的 React 组件显示状态;Props 包含 data、updateData、mode。默认使用 HeroUI。actions.ts 的具名 async 函数作为公开动作,第二参数由宿主注入 ctx;…
    • AUTHORING.md:47const actions = useActions<typeof import("./actions")>();
    • dist/host.js:3675const plan = await this.require(desktopId, id);
    • dist/host.js:3706return this.serial(async () => this.restore(await this.require(desktopId, id)));
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 接触凭据或密钥credentials一般54 处命中
    • AUTHORING.md:153前端运行在独立浏览上下文,只能访问共享状态、便笺查找和公开 action。后端才可调用模型、文件进程与计划,且继承宿主权限。隔离边界是:视图强制跨源 iframe + CSP sandbox + 一次性桥凭证,宿主 API 令牌不进入便笺页…
    • CONTRIBUTING.md:3Worka is a plugin for DeepSeek Harness. Keep host responsibilities—model routing, credentials, conversations, permission…
    • CONTRIBUTING.md:23`package.json` uses an explicit package file list. Before publishing, inspect the archive and ensure it contains the bui…
    • CONTRIBUTING.md:39Never commit private network addresses, internal repository links or identifiers, organization-specific setup, work repo…
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般25 处命中
    • dist/execution-maintenance.js:1352return statSync(path).size;
    • dist/execution-maintenance.js:1360exists: existsSync(path)
    • dist/execution-maintenance.js:1438const stream = createReadStream(path);
    • dist/execution-maintenance.js:1480if (!existsSync(sourcePath))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般6 处命中
    • dist/host.js:4772env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
    • …knowledge/output/entry-bundle.js:16`.trim(),T.head.prepend(P)},[A]),fZ.useEffect(()=>{let T=O.current;return()=>{if(!K)HU(T.target??void 0);for(let P of T.…
    • …-tracker/runtime/scripts/core.ts:20export const dataHome = () => resolve(process.env.FEATURE_TRACKER_HOME || join(homedir(), '.local/share/worka-official-f…
    • …-tracker/runtime/scripts/sync.ts:15const child = Bun.spawn(command, { stdout: 'pipe', stderr: 'pipe', env: { ...process.env, GH_PROMPT_DISABLED: '1' } });
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 文中出现远程脚本地址remote-url-reference一般2 处命中
    • …owledge/output/entry-nwve8h7e.js:13https://github.com/jquery/jquery/blob/master/src/event.js
    • templates/reference-note/README.md:39参考:[Mermaid 渲染 API](https://mermaid.js.org/config/usage)。便笺构建使用 ESM splitting,使动态 import 保留为按需下载的资源。
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注7
以 shell 执行命令shell-exec高关注6
写入文件writes-files需留意33
发起网络请求network需留意23
R011 客户端可疑脚本client-side-risk需留意6
可终止进程kills-processes需留意5
含混淆或编码代码obfuscated-code需留意1
动态加载模块dynamic-import一般296
接触凭据或密钥credentials一般54
读取文件reads-files一般25
读取环境变量reads-env一般6
文中出现远程脚本地址remote-url-reference一般2

这份报告的口径

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

依赖安全公告

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

等级依赖包编号摘要
低mermaidCVE-2026-41150Mermaid Gantt Charts are vulnerable to an Infinite Loop DoS
修复版本:10.9.6, 11.15.0 详情 →
未分级mermaidCVE-2026-71436Mermaid XY Charts are vulnerable to an infinite loop DoS
修复版本:10.9.8, 11.16.1 详情 →
未分级mermaidCVE-2026-71437Mermaid Architecture diagrams are vulnerable to prototype pollution
修复版本:11.16.1 详情 →
未分级mermaidCVE-2026-50159Mermaid allows CSS injection applying to sibling elements of the diagram
修复版本:10.9.8, 11.16.1 详情 →
未分级mermaidCVE-2025-54881Mermaid improperly sanitizes sequence diagram labels leading to XSS
修复版本:10.9.4, 11.10.0 详情 →
未分级mermaidCVE-2026-41159Mermaid: Improper sanitization of configuration leads to CSS injection
修复版本:10.9.6, 11.15.0 详情 →
未分级mermaidCVE-2025-54880Mermaid does not properly sanitize architecture diagram iconText leading to XSS
修复版本:11.10.0 详情 →
未分级mermaidCVE-2026-71438Mermaid configuration APIs allow prototype pollution
修复版本:10.9.8, 11.16.1 详情 →
未分级mermaidCVE-2026-41149Mermaid: Improper sanitization of `classDef` in state diagrams leads to HTML injection
修复版本:10.9.6, 11.15.0 详情 →
未分级mermaidCVE-2026-71439Mermaid radar diagrams are vulnerable to DoS
修复版本:11.16.1 详情 →
未分级mermaidCVE-2026-41148Mermaid: Improper sanitization of `classDefs` in diagrams leads to CSS injection
修复版本:10.9.6, 11.15.0 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件