dsh-xray-plugin
开发工具 活跃维护

dsh-xray-plugin

unStone/dsh-xray-plugin

作为xray的配套插件,支持在智能体运行过程中直接查询插件的实际能力,无需跳转外部页面,可快速适配插件调用逻辑,方便开发者快速完成集成与功能验证。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
Apache-2.0
开源协议
16 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:unStone/dsh-xray-plugin
git clone https://github.com/unStone/dsh-xray-plugin.git
git clone git@github.com:unStone/dsh-xray-plugin.git
README.md master

dsh-xray-plugin

Ask what a dsh plugin can actually do — without leaving your agent.

English · 简体中文

Companion plugin for dsh-xray, which statically scans every repository under the dsh-plugin topic and publishes a capability card for each.

Why

A dsh plugin is arbitrary code inside your agent runtime. It can rewrite your system prompt, intercept API traffic, spawn subprocesses, read GITHUB_TOKEN from your environment, or patch the runtime itself — and nothing in the install path tells you which. dsh has no plugin-level permission declaration, so there is nothing to read even if you look.

This plugin puts the answer where the question comes up: in the agent, at the moment you are deciding.

Tools

Tool What it does
dsh_xray_check Capability card for one plugin: injected services, hooks, runtime patches, credential-class env reads, install-time scripts — each with file:line evidence.
dsh_xray_audit Summary across several plugins, e.g. the ones you have installed: how many carry powerful capability, which patch the runtime, which read credentials.

Ask your agent naturally:

Is tt-a1i/archify safe to install?

Audit the plugins I have installed.

Capability levels

C0 no notable surface · C1 ordinary · C2 one powerful capability or sensitive behaviour · C3 both.

Levels measure capability surface and transparency, not maliciousness. A C3 plugin can be entirely legitimate — a desktop shell genuinely needs subprocesses, and several of the highest-scoring projects in the ecosystem are among its best-engineered. The distinction that matters is between a plugin that needs strong capability and one that has it without anyone noticing.

This is not malware detection. Static analysis cannot establish intent, and a determined bad actor evades it easily. The gap it addresses is that nobody knows what ordinary plugins do.

Install

dsh plugin add https://github.com/unStone/dsh-xray-plugin/releases/download/v0.1.0/dsh-xray-plugin-0.1.0.tgz

The release carries a prebuilt bundle, so the install skips pnpm's build-script
approval step. Installing from source (dsh plugin add unStone/dsh-xray-plugin)
also works, but pnpm will ask you to allowlist the build first.

Data

Cards are fetched from data.json, refreshed by a daily scan of the whole ecosystem, and cached for six hours. No telemetry: the plugin sends nothing about you or your setup — it fetches a static file and reads it locally.

Browse the same data on the web: registry · levels explained · ecosystem report

False positives

Every flag cites the file and line it came from, so disputes are checkable. Open an issue — rules are fixed in public and the next daily scan picks up the correction.

Build

npm install
npm run build

Apache-2.0