D

dsh-drawio

github.com/jean3690/dsh-drawio

v0.1.0 工具与效率 从远程加载可执行代码动态执行代码写入文件

DSH drawio 插件:agent 画图工具(drawio_validate / drawio_render / drawio_template)+ 侧边栏「画板」——mxfile XML 实时渲染为 SVG、导出 PNG、写入工作区。核心翻译器为纯 TS 零依赖,宿主与浏览器共用。

该插件尚未翻译,显示作者原文。

dshdsh-plugindeepseek-harnessdrawiodiagrammxgraphdiagrams.net
分类
tools
发布
2026-08-18
版本
v0.1.0

检测报告

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

能力清单

  • 从远程加载可执行代码remote-code-load高关注2 处命中
    • …ts/drawio-webapp/js/embed.dev.js:97script.src = 'https://app.diagrams.net/math4/es5/startup.js';
    • …wio-webapp/js/diagramly/Embed.js:97script.src = 'https://app.diagrams.net/math4/es5/startup.js';
    • 看这些 URL 指向谁、内容是否会变。远程加载等于把执行权交给外部。
  • 动态执行代码dynamic-code需留意56 处命中
    • …5/input/tex/extensions/action.js:1(()=>{"use strict";var t={d:(e,a)=>{for(var o in a)t.o(a,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o…
    • …s5/input/tex/extensions/amscd.js:1(()=>{"use strict";var e={d:(t,a)=>{for(var n in a)e.o(a,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:a[n…
    • …app/math4/es5/input/asciimath.js:1(()=>{var t={123(t,e){var i,n,a,s,r,o,l,u={debug:!0},h={MathJax:u},p={},c=null;e.E=u,function(t){var e=h[t];e||(e=h[t]={…
    • …/es5/input/tex/extensions/bbm.js:1(()=>{"use strict";var t={d:(e,o)=>{for(var a in o)t.o(o,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a…
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 写入文件writes-files需留意33 处命中
    • …rawio-webapp/js/diagramly/App.js:5310file.rename(name, mxUtils.bind(this, function(resp)
    • …ebapp/js/diagramly/DrawioFile.js:2307this.copyFile(mxUtils.bind(this, function()
    • …ebapp/js/diagramly/DrawioFile.js:2358this.copyFile(success, error);
    • …webapp/js/diagramly/DriveFile.js:457this.ui.drive.copyFile(this.getId(), filename, success, error);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 含混淆或编码代码obfuscated-code需留意4 处命中
    • …app/math4/es5/input/asciimath.js:1(()=>{var t={123(t,e){var i,n,a,s,r,o,l,u={debug:!0},h={MathJax:u},p={},c=null;e.E=u,function(t){var e=h[t];e||(e=h[t]={…
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 发起网络请求network需留意3 处命中
    • lib/client.js:2257response = await fetch(path, {
    • …webapp/js/diagramly/P2PCollab.js:1174return new WebSocket(url);
    • src/client/api.ts:23response = await fetch(path, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • R011 客户端可疑脚本client-side-risk需留意3 处命中
    • client.js: postMessage 无 origin 校验; client.js: innerHTML + postMessage
    • 浏览器侧代码能改你看到的界面。确认改动范围符合插件用途。
  • 接触凭据或密钥credentials一般255 处命中
    • …io-webapp/js/cryptojs/aes.min.js:30decrypt:function(a,b,c,d){d=this.cfg.extend(d);b=this._parse(b,d.format);return a.createDecryptor(c,d).finalize(b.cipher…
    • …app/js/diagramly/ConfigEditor.js:2154' <label for="cfg-gptApiKey"></label>',
    • …app/js/diagramly/ConfigEditor.js:2155' <input type="text" id="cfg-gptApiKey" data-key="gptApiKey" placeholder="sk-...">',
    • …app/js/diagramly/ConfigEditor.js:2164' <label for="cfg-geminiApiKey"></label>',
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般14 处命中
    • …pp/js/diagramly/DropboxClient.js:420this.readFile(arg, mxUtils.bind(this, function(data, response)
    • …pp/js/diagramly/DropboxClient.js:813this.readFile({path: rel}, mxUtils.bind(this, function(data, stat)
    • …pp/js/diagramly/DropboxClient.js:940this.readFile({path: rel}, mxUtils.bind(this, function(data, stat)
    • …bapp/js/diagramly/DropboxFile.js:132this.ui.dropbox.readFile({path: this.stat.path_lower, rev: stat.rev},
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般14 处命中
    • …app/math4/es5/input/asciimath.js:1(()=>{var t={123(t,e){var i,n,a,s,r,o,l,u={debug:!0},h={MathJax:u},p={},c=null;e.E=u,function(t){var e=h[t];e||(e=h[t]={…
    • …webapp/js/orgchart/bridge.min.js:8(function(n){"use strict";var bt={global:n,emptyFn:function(){},identity:function(n){return n},geti:function(n,t,i){retu…
    • lib/index.js:2181return import("@resvg/resvg-js");
    • lib/index.js:2353const { readFile } = await import("node:fs/promises");
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般14 处命中
    • …rawio-webapp/js/diagramly/App.js:272App.DROPINS_URL = 'https://www.dropbox.com/static/api/2/dropins.js';
    • …rawio-webapp/js/diagramly/App.js:282App.TRELLO_URL = 'https://api.trello.com/1/client.js';
    • …rawio-webapp/js/diagramly/App.js:302App.PUSHER_URL = window.PUSHER_URL || 'https://js.pusher.com/7.0.3/pusher.min.js';
    • …rawio-webapp/js/diagramly/App.js:484mxscript('https://apis.google.com/js/api.js');
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
从远程加载可执行代码remote-code-load高关注2
动态执行代码dynamic-code需留意56
写入文件writes-files需留意33
含混淆或编码代码obfuscated-code需留意4
发起网络请求network需留意3
R011 客户端可疑脚本client-side-risk需留意3
接触凭据或密钥credentials一般255
读取文件reads-files一般14
动态加载模块dynamic-import一般14
文中出现远程脚本地址remote-url-reference一般14

这份报告的口径

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

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件