dsh-plugin-airlock

DSH PLUGIN安全与权限

仓库 gabrielbav/dsh-plugin-airlock · npm dsh-plugin-airlock

安全与权限 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

Airlock 为每个 DeepSeek Harness 插件、技能与子代理提供安装前隔离与安全评分,六款扫描器加可选 LLM 评审拦截提示注入与凭据窃取。

一句话选型结论

按资料字段整理

dsh-plugin-airlock 是安全与权限类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,列出 5 项功能,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类安全与权限 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 1 复刻 0 · 未关闭 issue 0
最近更新 2026-11-11 创建于 2026-11-11
README 14.2 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:gabrielbav/dsh-plugin-airlock
  1. 1
    确认版本与运行环境

    Node.js 要求 >=24.9.0;版本不匹配时安装会报错。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求>=24.9.0来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名dsh-plugin-airlock可用 npm view 查看包信息

能做什么

5 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-plugin-airlock:为 DeepSeek Harness 把关插件与技能安全

  • 安装前隔离扫描
  • 六款安全扫描器
  • 可选 LLM 评审
  • 按最差发现判定
  • 安装后防篡改校验

适用场景

智能体编排

上游标签

ai-securitydeepseek-harnessdsh-pluginmcpprompt-injectionsecuritysupply-chain-security

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-11-12): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
  • L4.4_RESOLVED_ARTIFACT 安装版本已解析 方式:沙盒安装执行
L5 · 运行已测 ✕ 未通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 方式:Web 启动
  • L5.3_HTTP_SERVED HTTP 服务响应 方式:HTTP 请求
  • L5.4_PLUGIN_INVENTORY_ACTIVE 插件清单中已激活 方式:插件清单查询

风险详情

  • 结论说明 静态扫描 低;动态审计无结论(以下以静态为准)→ 总评级 低。
  • 风险计数 严重 0 / 高 0

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。
  • 列出了 5 项功能,能直接看出它解决什么问题。

先想清楚的地方

  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在安全与权限场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-plugin-airlock当前 L4 · 沙盒安装通过 低风险 1 未标注 有
dsh-infinite-gen-4 未做沙盒验证 未标注 1,611 未标注 无
cc-safety-net 未做沙盒验证 未标注 1,591 未标注 无
dsh-wallpaper-engine L5 · 运行验证通过 低风险 1,018 0.2.0-rc.2 等 10 个 有
api-relay-audit L5 · 运行验证通过 低风险 875 0.2.0-rc.2 等 10 个 有
hol-guard L4 · 沙盒安装通过 不在扫描口径 828 未标注 有

仓库档案

安全与权限
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方gabrielbav仓库 dsh-plugin-airlock · 默认分支 main
分类安全与权限security
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue1 / 0 / 0收录时的数值,非实时
创建 / 更新2026-11-11 · 2026-11-11最后推送 2026-11-13
本站收录2026-11-12首次进入本站目录的时间

README 全文

14.2 KB
作者原文,中文版优先;只做安全转义,不改内容

Airlock

A security score before any plugin, skill or subagent reaches your DeepSeek Harness.



> [!NOTE]
> New in 0.2.0: Airlock works on stock DeepSeek Harness. You no longer need a patched DSH. Without the install-gate hook, Airlock vets the agent's installs in the chat, adds its own Scan and install with Airlock option to the Plugins page, and switches off anything that installed some other way without a scan. With the hook it still vets every install before it happens. See Two levels of protection.

DeepSeek Harness plugins run with your permissions. They can use your shell, your files and your credentials. Third-party skills and subagent prompts can also carry prompt injection, credential theft or data exfiltration in plain text, so they never look like code.

Airlock puts every package in a quarantine first. It downloads it with install scripts disabled, runs six security scanners and an optional LLM judge, and then makes the call:

Result What happens
🟢 Passed Installs.
🟡 Review needed You see the findings. Tick I reviewed these findings and press Install anyway, or approve the card in the chat.
🔴 High risk Blocked. Nothing is installed, and there is no override.

Wherever Airlock vets an install before it happens, these rules apply. Where it can't (see Two levels of protection), it finds the plugin afterwards and switches it off until you scan it.

Blocked: a skill that steals SSH keys
Review: outdated dependencies
Passed: a clean skill

Why Airlock

  • It looks where attacks hide. It scans SKILL.md files and the subagent personas and prompts inside a bundle's config, which ordinary dependency scanners never read.
  • One bad finding is enough. The result follows the worst finding, not an average, so one credential-stealing instruction blocks a package however clean the rest is.
  • It fails closed. A scanner that is missing, crashes, times out or returns output Airlock can't read never counts as clean. The same goes for an LLM judge that doesn't answer.
  • Nothing runs during the check. Install scripts are disabled, MCP servers are never started, and package code is never loaded.
  • What it checked, not just what it found. Every report opens with a plain-language summary of each security area: passed, found, or not applicable, and why.
  • Rated by impact, not just by severity. A denial-of-service bug in a dependency isn't a data breach. Airlock reads each advisory's CVSS vector and rates it by what it can actually do.
  • Tamper-proof installs. After installing, Airlock checks that the installed files are exactly the ones it scanned. When Airlock installs the package itself it rolls back anything else; otherwise it switches the plugin off.
  • Works with or without the hook. On stock DSH it covers the chat and its own install option and audits the rest. With the install-gate hook it covers every install: the Plugins page, Discover, updates and the chat.

What it checks

Security area Scanner What it finds
Prompt injection and malicious instructions Cisco Skill Scanner and SkillScan Instruction overrides, hidden exfiltration, credential harvesting, obfuscated payloads, macOS keychain abuse, in skills and in subagent prompts
MCP tool poisoning Cisco MCP Scanner Poisoned tool descriptions in shipped MCP tool definitions, checked statically with no server started
Known vulnerabilities in dependencies OSV-Scanner and Trivy Advisories across every transitive dependency, labelled Data exposure, Integrity or code execution or Denial of service
Embedded secrets and credentials Gitleaks and Trivy API keys, tokens and private keys shipped in the package, redacted in the report
Code that runs on load and MCP server commands Airlock !!js expressions and the MCP server commands a bundle declares
Anything else Your own tools Any tool that writes SARIF (Semgrep, CodeQL, …), added from the settings page

Optional LLM judge with your own models

Turn on the LLM judge and pick a model from the same list as the chat: DeepSeek, Claude, GPT, or whatever you've configured. The Cisco scanners then also ask that model to judge each skill and MCP tool. That catches attacks that rules miss, such as instructions that only become dangerous in context.

You don't paste an API key and there's no URL to set. Airlock forwards the scanners' requests to the chosen DSH model through a private, token-protected endpoint on 127.0.0.1, so subscription logins work too.

In the chat too

When the agent installs a plugin for you, green packages install, red ones are refused, and the agent never sees the findings text. With the hook, a package that needs review shows the same report as an approval card. On stock DSH the card shows the score, and the full report is under Plugins → Airlock → Recent scans.

Two levels of protection

Airlock checks at startup whether your DSH has the install-gate hook, a small, generic extension point that lets any plugin vet installs. The hook is proposed upstream. Until it ships, you can get it from gabrielbav/deepseek-harness@feat/install-gate. Plugins → Airlock → Enforcement shows which level you're on.

Where a plugin comes from Stock DSH (Standard) DSH with the hook (Full enforcement)
The agent's plugin_manager tool in the chat ✅ Vetted before it installs ✅ Vetted before it installs
Add plugin → Scan and install with Airlock ✅ Vetted before it installs, installed switched off, checked against the scan, then switched on Not shown: the page's own button is vetted
Add plugin → Install a third-party plugin, Discover, updates ⚠️ Found afterwards and switched off until you scan or trust it ✅ Vetted before it installs
dsh plugin add on the command line ⚠️ Found afterwards and switched off ⚠️ Found afterwards, or refused with requireInstallGate

How the standard level works. In the chat, Airlock checks the agent's install_bundle calls before the tool runs. It asks for an exact version (name@1.2.3) so the files it scans are the files that install. A red package is refused, and a yellow one asks you with the score. Everything else is covered by an audit that runs at startup and after every plugin change. It compares each third-party plugin's files with the ones Airlock scanned. A plugin that doesn't match gets a Not scanned tag and a notice on its page with Scan now and Trust without scanning, and is switched off. If you switch it back on yourself, Airlock leaves it on. The audit notices after the fact, so the plugin's install has already run once by then. Only the hook stops a package before it installs, from every path.

Plugins that were already installed the first time Airlock runs are trusted as they are. Plugins linked to a local folder (link:) are trusted by name, because their files change every time you rebuild them. Official bundles and the ones DSH ships are never touched.

Install

1. Install the scanners you want. Any you skip show as Not installed, and the settings page can install them with one click.

uv tool install cisco-ai-skill-scanner
uv tool install --python 3.12 skillscan
uv tool install --python 3.13 cisco-ai-mcp-scanner
brew install osv-scanner trivy gitleaks

2. Add Airlock in DSH: Plugins → Add plugin → dsh-plugin-airlock.

3. Optional, with the hook: make it mandatory. Add this to ~/.dsh/profiles//cordis.patch.yml, so nothing installs while Airlock isn't running. dsh plugin add on the command line is then refused too, because the CLI can't run the check.

- id: plugin-manager
name: "@deepseek-ai/dsh-plugin-manager"
config:
requireInstallGate: true

To upgrade Airlock itself later, remove these lines, upgrade, and add them back.

Settings

Open Plugins → Airlock. Changes apply from the next scan.

Section What you can do
Scanners Each scanner's status and path, an on/off switch, and Install for missing ones
Custom SARIF scanners Add any tool that writes SARIF. In arguments, {target} is the scanned folder and {output} the report file. Example: semgrep with scan --sarif --output {output} {target}.
Policy The score to pass, the score below which it blocks, which severity blocks package findings, which severity blocks dependency advisories, when to ask for review, how to rate denial-of-service-only advisories, and whether a pass needs the LLM judge
LLM judge On/off, and a model chosen from your DSH model list
Enforcement Which level you're on, a switch to stop using the hook, and what happens to plugins that install without a scan: switch them off and flag them, or only flag them
Recent scans Every report Airlock saved, including the packages it blocked

Settings are saved in /.airlock/settings.json, and the same fields work on the airlock row in cordis.yml. Reports are kept in /.airlock/reports/, and the audit's list of trusted plugins in /.airlock/ledger.json. Every scanned plugin shows a Security N tag and its full report on its Plugins page.

How the score works

The score starts at 100 and drops for every distinct finding: Critical 50, High 25, Medium 10, Low 3. Dependency advisories count half.

  • 🔴 Blocked when a package finding is Critical, a dependency advisory is Critical, or package findings bring the score below 40.
  • 🟡 Review when the score is below 85, any finding is Medium or worse, a scanner is missing or failed, or the package has skills or prompts but the LLM judge didn't run.
  • 🟢 Passed otherwise.

The same advisory reported by OSV and Trivy counts once. Compiled CSS-module class names ("popKey": "d2hvtW_popKey") are recognized as such, not as secrets. Every threshold is configurable.

For plugin authors: add your own scanner

Airlock provides ctx.airlock to other plugins:

export const inject = ['airlock']
export function apply(ctx) {
ctx.effect(() => ctx.airlock.registerScanner({
id: 'house-rules',
name: 'House rules',
command: 'my-scanner',            // resolved before run; omit for in-process checks
async run(scan) {                 // scan.subject, scan.fetchDir, scan.inventory, scan.executable, scan.signal
return { id: 'house-rules', status: 'clean', findings: [], durationMs: 0, usedLlm: false }
},
}))
}

run must fail closed: return error for anything it doesn't recognize, never clean.

With the install-gate hook, Airlock is one gate on top of DSH's generic hook. Other gates, such as publisher allow-lists, license policies, signature checks or a company approval service, can run beside it, and the strictest ruling wins.

Privacy and safety

  • The package's code stays on your machine. OSV-Scanner looks up dependency names and versions in the public OSV database, and Trivy downloads its vulnerability database. With the LLM judge on, the skill, prompt and MCP tool text goes to the model you chose.
  • The agent never sees finding text. Findings can quote the scanned package, which might contain instructions aimed at an AI, so the model only learns the score and the result.
  • Secrets stay redacted. Secrets found in a package are redacted in Gitleaks' report.

Limitations

  • No scanner analyses what a plugin's JavaScript does at runtime. Add a SARIF scanner such as Semgrep for code rules.
  • Skills copied into skill folders by hand, outside the plugin manager, are not scanned.
  • Without the hook, the Plugins page's own install button, Discover and the update dialog aren't vetted before they install. Use Scan and install with Airlock, or get the hook.
  • An update that needs review can't be confirmed from the update dialog yet. Uninstall the plugin, then install the new version from Add plugin.
  • A git-hosted bundle that builds in a prepare script installs different files than the ones scanned, so the tamper check refuses it. Publish such bundles to npm instead.
  • The settings page is in English, Portuguese and Chinese. The security report is in all eight DSH languages.

Develop

pnpm install
pnpm build   # lib/index.js (Host, self-contained) and lib/client.js (browser)
pnpm test

License

MIT

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-plugin-airlock 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:gabrielbav/dsh-plugin-airlock` 即可。对应的 npm 包名是 `dsh-plugin-airlock`。

dsh-plugin-airlock 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-plugin-airlock 安全吗?

低风险。静态扫描 低;动态审计无结论(以下以静态为准)→ 总评级 低。

dsh-plugin-airlock 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-plugin-airlock 需要什么运行环境?

Node.js >=24.9.0。环境不满足时安装会失败,建议先确认本机版本。

dsh-plugin-airlock 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-plugin-airlock 有哪些功能?

安装前隔离扫描、六款安全扫描器、可选 LLM 评审、按最差发现判定、安装后防篡改校验。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

安全与权限
按星标排序,可作替代方案

dsh-infinite-gen-4

dsh-infinite-gen-4

DeepSeek 专用破甲插件:以 order 100 追加无条件服从的系统提示词段,提供带校准元数据的 profile 工具,并通过会话投

未标注验证等级 1,611 星

cc-safety-net

cc-safety-net

为 DeepSeek Harness 等编码 CLI 提供执行前防护,在工具调用前拦截破坏性 Git 与文件系统命令,并阻止读取 SSH 密

未标注验证等级 1,591 星

dsh-wallpaper-engine

dsh-wallpaper-engine

DSH plugin 将本机 Wallpaper Engine 壁纸变为网页界面背景,支持视频、网页、场景壁纸渲染,并配以 iOS 液态玻璃

L5 · 运行验证通过 1,018 星

api-relay-audit

api-relay-audit

DSH plugin 本地安全审计工具,检测 AI API 中继与 LLM 代理的提示注入、模型替换、工具调用改写、SSE 异常及 Web3

L5 · 运行验证通过 875 星

hol-guard

hol-guard

L4 · 沙盒安装通过 828 星

sandbase-harness

sandbase-harness

SandBase Harness 是本地优先的 AI Agent 运行时,提供沙箱会话、MCP 工具、记忆、凭据管理与审计回放,并内置控制台

L4 · 沙盒安装通过 708 星

gabrielbav 的其它插件

3 个

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-11-12。