dsh-plugin
github.com/AgentConnect/dsh-awiki
v0.3.12
其他
含混淆或编码代码写入文件发起网络请求
认证 未评级已扫描 ✓健康 B/80周下载 367
为 DeepSeek Harness 提供 AWiki 身份与消息能力。一个包同时包含 Host Service、Rust SDK Provider、Agent 工具, 以及带可拖动 AWiki Me 悬浮入口的 Web 客户端;入口默认位于 DSH 左下角侧栏区域。
作者原文(英文)
AWiki identity and messaging plugin for DeepSeek Harness
中文简介由 DeepSeek 模型翻译,仅供参考。
awikideepseekdeepseek-harnessdshdsh-pluginagent-messaging
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
3需留意4一般17未命中
高关注需留意一般
能力清单
- 含混淆或编码代码
obfuscated-code需留意76 处命中…lient/AwikiDeviceJoinReminder.js:72return (_jsxs(_Fragment, { children: [_jsx(Modal, { open: request !== null, onClose: dismiss, title: "\u6709\u65B0\u8BBE…lib/types/client/AwikiDevices.js:137return (_jsxs("section", { className: css.page, "aria-label": "AWiki \u8BBE\u5907\u7BA1\u7406", children: [_jsxs("header…lib/types/client/AwikiDevices.js:139&& _jsxs("div", { className: css.revokePanel, children: [_jsxs("div", { className: css.field, children: [_jsx("label", {……ypes/client/AwikiGroupDetails.js:136return (_jsxs("aside", { className: css.groupDetails, "aria-label": "\u7FA4\u804A\u8BE6\u60C5", children: [_jsxs("header…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 写入文件
writes-files需留意73 处命中lib/types/attachment-cache.js:34await unlink(path).catch(() => undefined);lib/types/attachment-cache.js:40await unlink(path).catch(() => undefined);lib/types/attachment-cache.js:69await writeFile(temporary, JSON.stringify(payload), { flag: 'wx', mode: 0o600 });lib/types/attachment-cache.js:70await rename(temporary, path);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意16 处命中lib/index.js:104for (const endpoint of endpoints) connection.fetch.register({lib/index.js:108async fetch(request) {lib/index.js:662const response = await this.auth.dispatch(request, (signed) => fetch(signed));lib/index.js:910const response = await this.auth.dispatch(request, (signed) => fetch(signed));- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般26 处命中lib/types/attachment-cache.js:37const parsed = JSON.parse(await readFile(path, 'utf8'));lib/types/attachment-cache.js:141const entries = await readdir(this.directory, { withFileTypes: true });…ypes/conversation-preferences.js:214const text = await readFile(path, 'utf8');lib/index.js:1834if (await readFile(this.markerPath, "utf8") !== SIGNED_OUT_MARKER) throw new TypeError("awiki: local session marker is i…- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般22 处命中lib/index.js:4161const configuredDshHome = process.env.DSH_HOME?.trim();lib/types/index.js:337const configuredDshHome = process.env.DSH_HOME?.trim();cordis.patch.yml:9userServiceUrl: !!js process.env.DSH_AWIKI_USER_SERVICE_URLcordis.patch.yml:10userServiceDomain: !!js process.env.DSH_AWIKI_USER_SERVICE_DOMAIN- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般13 处命中…ent/AwikiDeviceJoinReminder.d.ts:14export declare function AwikiDeviceJoinReminder(props: AwikiDeviceJoinReminderProps): import("react").JSX.Element;lib/types/client/AwikiDevices.d.ts:32export declare function AwikiDevices(props: AwikiDevicesProps): import("react").JSX.Element;…ient/AwikiGroupAccessNotice.d.ts:11}): import("react").JSX.Element | null;…es/client/AwikiGroupDetails.d.ts:21}): import("react").JSX.Element;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 接触凭据或密钥
credentials一般9 处命中lib/types/builtin-tenant-config.js:14if ((origin.protocol !== 'https:' && !loopback) || origin.username !== '' || origin.password !== ''lib/types/desktop-distribution.js:38if (url.protocol !== 'https:' || url.username !== '' || url.password !== '' || url.origin !== view.policyOrigin)lib/types/external-http-auth.js:151credentials: original.credentials,lib/index.js:30if (origin.protocol !== "https:" && !loopback || origin.username !== "" || origin.password !== "" || origin.pathname !==…- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 含混淆或编码代码 | obfuscated-code | 需留意 | 76 |
| 写入文件 | writes-files | 需留意 | 73 |
| 发起网络请求 | network | 需留意 | 16 |
| 读取文件 | reads-files | 一般 | 26 |
| 读取环境变量 | reads-env | 一般 | 22 |
| 动态加载模块 | dynamic-import | 一般 | 13 |
| 接触凭据或密钥 | credentials | 一般 | 9 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 158 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 2 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | semver | CVE-2022-25883 | semver vulnerable to Regular Expression Denial of Service 修复版本:5.7.2, 6.3.1, 7.5.2 详情 → |
| 低 | zod | CVE-2023-4316 | Zod denial of service vulnerability 修复版本:3.22.3 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。