D

dsh-plugin

github.com/TencentCloudBase/CloudBase-AI-Toolkit

v0.2.3 其他 可执行外部程序以 shell 执行命令发起网络请求

面向 AI 编程工具的 CloudBase 接入层:用 Plugin 装好工具,用 Skills 约束写法,用 MCP 在对话里操作数据库、云函数、存储与部署。

作者原文(英文)

CloudBase backend for DeepSeek Harness — database, storage, authentication, and frontend/backend deployment

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

dsh-plugindeepseek-harnesscloudbasemcpbaas
分类
other
发布
2026-09-30
版本
v0.2.3

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注3 处命中
    • dist/index.js:166import { spawn } from "node:child_process";
    • scripts/generate-skills.mjs:6import { execFileSync } from "node:child_process";
    • scripts/mcp-launch.mjs:8import { spawn } from "node:child_process";
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注1 处命中
    • scripts/generate-skills.mjs:20execFileSync(
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 发起网络请求network需留意12 处命中
    • dist/index.js:1495const response = await fetch(url, {
    • dist/index.js:1520const response = await fetch(signUrl, {
    • dist/index.js:2944const response = await fetch(`https://${host}/?${query}`, { headers: requestHeaders });
    • …dbase/references/auth-and-rls.md:128const res = await fetch(`https://${envId}.api.tcloudbasegateway.com/v1/rdb/rest/orders?select=*`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 含混淆或编码代码obfuscated-code需留意11 处命中
    • dist/index.js:130return "CloudBase \u5DF2\u590D\u7528\u672C\u673A\u767B\u5F55\u6001\u3002\u53EF\u76F4\u63A5\u8C03\u7528 mcp__cloudbase__*…
    • dist/index.js:134"\u6253\u5F00\u8FD4\u56DE\u7684 verification URL\uFF0C\u5728\u6D4F\u89C8\u5668\u5B8C\u6210\u6388\u6743\u540E\u767B\u5F55…
    • dist/index.js:1079var CLS_UNAVAILABLE_MESSAGE = "\u5F53\u524D\u73AF\u5883\u672A\u5F00\u901A\u65E5\u5FD7\u670D\u52A1";
    • dist/index.js:1121str3(payload.message) ?? (signedIn ? "\u5DF2\u767B\u5F55" : "\u672A\u767B\u5F55\uFF0C\u8BF7\u9009\u62E9\u767B\u5F55\u65B…
    • 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
  • 写入文件writes-files需留意4 处命中
    • dist/index.js:107mkdirSync(dirname(path), { recursive: true });
    • dist/index.js:114writeFileSync(path, JSON.stringify(payload), "utf8");
    • …se/references/site-onboarding.md:63node -e 'const fs=require("fs"),p=".cloudbase/project.json";fs.mkdirSync(".cloudbase",{recursive:true});let o={};try{o=J…
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意1 处命中
    • scripts/mcp-launch.mjs:80process.kill(process.pid, signal);
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 接触凭据或密钥credentials一般772 处命中
    • dist/index.js:135"\u4E0D\u8981\u8BBE\u7F6E\u65E0\u6548\u7684 CLOUDBASE_API_KEY\uFF0C\u5426\u5219\u4F1A\u6321\u4F4F device-code \u6D41\u7A…
    • dist/index.js:142"login_by_api_key",
    • dist/index.js:373delete childEnv.CLOUDBASE_API_KEY;
    • dist/index.js:1107{ method: "apikey", title: "API Key", description: "Environment API Key login" }
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般49 处命中
    • dist/index.js:101const override = process.env.CLOUDBASE_DSH_ENV_HINT_FILE;
    • dist/index.js:119function buildMcpClientConfig(_env = process.env) {
    • dist/index.js:204function resolveMcpLaunch(env = process.env, options = {}) {
    • dist/index.js:304this.env = options.env ?? process.env;
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般16 处命中
    • dist/index.js:62if (existsSync(join(dir, "package.json"))) return dir;
    • dist/index.js:177entries = readdirSync(npxRoot);
    • dist/index.js:186mtime = statSync(bin).mtimeMs;
    • …/references/lint-rules/README.md:40if (!existsSync(projectDir)) {
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般14 处命中
    • …ons/references/http-functions.md:133- Choose one Node.js module system and keep it consistent. For simple HTTP Functions, CommonJS is the safest default: us…
    • …ons/references/http-functions.md:134- If you intentionally use ES Modules, use `import ...` consistently and do not rely on CommonJS-only globals such as ba…
    • …/image-deploy-troubleshooting.md:115### What the docs require (section 1)
    • …t/py/references/observability.md:56from cloudbase_agent.server.metrics import (
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般4 处命中
    • …ns/references/calling-methods.md:79`https://raw.githubusercontent.com/TencentCloud/tencentcloud-sdk-python/master/tencentcloud/monitor/v20180724/models.py`…
    • README.md:22curl -fsSL https://raw.githubusercontent.com/TencentCloudBase/CloudBase-AI-Toolkit/main/dsh-plugin/scripts/install.sh | …
    • README.md:103curl -fsSL https://raw.githubusercontent.com/TencentCloudBase/CloudBase-AI-Toolkit/main/dsh-plugin/scripts/install.sh | …
    • …erences/web-development/SKILL.md:166- Use the CDN only for static HTML pages, quick demos, embedded snippets, or README examples: `https://static.cloudbase.…
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注3
以 shell 执行命令shell-exec高关注1
发起网络请求network需留意12
含混淆或编码代码obfuscated-code需留意11
写入文件writes-files需留意4
可终止进程kills-processes需留意1
接触凭据或密钥credentials一般772
读取环境变量reads-env一般49
读取文件reads-files一般16
动态加载模块dynamic-import一般14
文中出现远程脚本地址remote-url-reference一般4

这份报告的口径

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

依赖安全公告

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

← 返回全部插件