dsh-plugin-trustlens
Manifest valid★ 1Read-only DSH plugin auditor with static scanning, current-session model review, and confirmation gates.
DSH TrustLens
dsh-plugin-trustlens is a DeepSeek Harness plugin that reviews installed plugins before a user enables or updates them.
It combines:
- Read-only static scanning for common remote execution, download-and-execute, encoded evaluation, persistence, and environment exfiltration patterns.
- Semantic review through the model selected by the current DSH session. It does not hard-code DeepSeek or silently choose another model.
- Comment and README contradiction reporting through
commentConflicts. - User confirmation gates for enabling, updating, and disabling/quarantining a plugin.
The auditor never requires, imports, launches, installs, downloads, or executes the plugin being inspected. Plugin code, comments, README files, strings, and model output are treated as untrusted data.
DSH installation
Install from the repository with the DSH CLI:
dsh plugin --profile web add github:Mengshang-spec/dsh-plugin-trustlens
The package declares its bundle manifest and patch entry automatically. For a manual local checkout, copy this package into the DSH profile's node_modules directory and add it to the profile patch:
- insert:
- id: plugin-trustlens
name: dsh-plugin-trustlens
The DSH Desktop companion synchronizer performs those two steps automatically for the bundled plugin.
Use
Open DSH settings, choose AI 审查, enter the installed package name and its path under the current profile's node_modules, then start the review. The result shows the active provider/model, static findings, semantic findings, and comment/document conflicts.
Static high-risk findings disable the enable/update actions. A user can still explicitly choose isolation/disable after reviewing the report.
Development tests
Run from a DSH Desktop checkout with the bundled Node runtime:
vendor/node/node.exe --test scripts/test/unit-plugin-trustlens-protocol.test.mjs scripts/test/unit-plugin-trustlens.test.cjs
The same checks are available with npm test after installing dependencies.
Limitations
Static scanning is intentionally conservative and can produce findings for security-related example strings or regular expressions. It is a review signal, not proof of malware. Semantic review also requires an active DSH model and credentials; if the current model cannot be determined, the plugin fails closed.
License
MIT. See LICENSE.
Comments
Loading…
Similar plugins
by Muggle8888
Read-only update auditing for DeepSeek Harness profile plugins
★ 0
MIT
JavaScript
Sep 10, 2026
dsh plugin --profile web add dsh-plugin-update-auditby pengxuding
Plugin value auditor: pre-install review (source scan + LLM judge) and post-install audit of installed bundles, with model-switch re-audit reminders.
★ 0
↓ 63/wk
MIT
JavaScript
Aug 15, 2026
dsh plugin --profile web add dsh-plugin-judgeby MkaliezZ
Offline-first static admission scanner for DeepSeek Harness community plugins: inspect a plugin package before you trust it.
★ 0
TypeScript
Aug 29, 2026
dsh plugin --profile web add @mkaliezz/dsh-plugin-firewallby GIN0076
Pre-install review gate for DeepSeek Harness plugins: audit, approve the change plan, backup, then install(插件装前审查)
★ 0
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add @local/dsh-install-reviewby jkrandom-sudo
Security audit for DeepSeek Harness plugins: static permission profile with file/line evidence + a runtime sentinel gating credential access and unknown-host egress · DSH 插件安全审计:静态权限画像(附文件/行号证据)+ 运行时哨
★ 4
↓ 85/wk
MIT
TypeScript
Sep 11, 2026
dsh plugin --profile web add dsh-plugin-auditby shaoshi20
Security scanner for DSH plugins: static and semantic passes over plugin source, DSH-specific attack-surface rules, npm audit, batch scanning, and an HTML report with per-finding severity and evidence
★ 11
↓ 234/wk
MIT
TypeScript
Oct 9, 2026
dsh plugin --profile agent add @shaoshi/dshscan