dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH 本機工具調用防護外掛:攔截高風險 Shell 指令模式與敏感憑證讀取,具備持久化哈希鏈 JSONL 審計記錄,可選配外部 Gateway 集中治理。
English | 繁體中文說明 | 🌐 Official Website
Local tool-call failsafe for DSH: blocks high-risk shell patterns (e.g. destructive recursive deletions, fork bombs, disk overwriting) and credential-file reads before execution, with a persistent hash-linked JSONL audit log, and an optional external Gateway for centralized multi-agent policy. This is a registered tool-call gate, not a proven host-wide CLI choke point.
Evidence boundary (MCP/CLI): Arbitrary shell, free-form commands, and unregistered MCP tools are not covered by a universal DROS governance claim. Scenarios requiring a canonical PDP/PEP, typed schemas, verifiable principals, TTL/revocation, and executable integrity must use a registered DROS authority path.
argv_hashis an integrity check, not a substitute for semantic argument bounds.
🎯 Dual Architecture Overview:
- Embedded Mode (Default): Zero-dependency local TypeScript pattern-matching failsafe and JSONL audit chain running natively inside DSH with zero latency overhead.
- Gateway Mode (Optional): Connect to an external DROS Gateway container for multi-agent workstation synchronization (AGY, Codex, Claude Code, Cursor).
DSH Tool Call Event
│
▼
[dsh-plugin-vajraclaw]
│
┌──────────────┴──────────────┐
▼ ▼
[Embedded Mode] (Default) [Gateway Mode] (Optional)
• Regex Pattern Failsafe • Centralized Multi-Agent Policy
• Sensitive File Protection • Cross-Station Sync (AGY, Codex, Claude)
• Persistent JSONL Audit • Requires DROS Gateway Container
🎁 【Community Edition: Free Forever for Personal Multi-Agent Workstations】
- 🛡️ 100% Free for Personal Use (Non-Commercial Use): Embedded local failsafe is fully open-source (Apache-2.0).
- 📝 Audit Logging: Structured JSONL audit records linking execution history across session restarts.
- ⚡ Optional Centralized Gateway: Provides cross-agent governance when opting into external Gateway deployment.
📌 Compliance Notice: Any deployment operated by corporate entities, salaried employees within the scope of employment, or used to generate commercial value strictly requires a commercial license.
The brilliance of DeepSeek Harness (DSH) lies in its radical openness: "Everything is a plugin." However, this hyper-openness inevitably expands the attack surface:
┌─────────────────────────────────────────────────────────────┐
│ 1. In-App Layer: DSH Security Plugins │ <── 🏢 Reception Security (Prompt Filtering)
│ (NeMo / Llama-Guard filters conversational toxicity) │
└──────────────────────────────┬──────────────────────────────┘
│ (Valid Prompt, prepares Tool Call)
▼
┌─────────────────────────────────────────────────────────────┐
│ 2. Runtime Gateway: DROS VajraClaw (Core Anchor) │ <── 🏛️ Vault Gatekeeper (Execution Identity)
│ (W3C DID Signature + 364ns O(1) Tool Permission Bitmap) │ Enforcement-path latency <1 μs under specified benchmark!
└──────────────────────────────┬──────────────────────────────┘
│ (Permitted Tool Call)
▼
┌─────────────────────────────────────────────────────────────┐
│ 3. Infrastructure Layer: Open-Source SecOps (Cilium / Falco)│ <── 🚓 Police Grid (Kernel & Network Fabric)
│ (Cilium blocks rogue egress; Falco eBPF catches escapes) │
└─────────────────────────────────────────────────────────────┘
The DSH plugin governs tool calls observed through the plugin and registered Gateway paths. It does not claim that every shell, interpreter, child process, execve/execveat, or other host execution topology necessarily passes through DROS. If CLI is not required, do not expose the capability by default; if it is required, use a dedicated OS identity, least privilege, isolation, and additional OS enforcement.
To maintain complete architectural clarity and rigorous technical defense, DROS defines crisp defensive boundaries:
| Attack Vector / Threat | Traditional Semantic Guardrails | DROS VajraClaw Core | Defensive Outcome |
|---|---|---|---|
| Indirect Prompt Injection (PDF/Web hijacking tool execution) | ❌ Easily fooled by LLM confusion | ✅ Deterministic Block | Deterministic In-Band Fusing (<1μs benchmarked bitmap match) |
| Rogue Tool Calling (Unauthorized DB write / Shell execution) | ❌ Flawed application logic | ✅ Cryptographic Block | 100% Interception within defined threat model & capability vector |
| Data Exfiltration (Plugin silently sending tokens to C2) | ❌ Invisible to LLMs | ✅ Network Isolated | 100% Dropped (internal: true sandbox topology) |
| Container Escape / Privilege Escalation | ❌ No host visibility | ⚠️ Handled via Falco | eBPF Kernel Detection (cap_drop: ALL capability isolation) |
| Business Logic Flaws / Model Hallucinations | ❌ Beyond security scope | ❌ Beyond security scope | Handled via Prompt engineering & Agent QA workflows |
DROS operates on a strict Zero-Trust Cryptographic Model:
Although packaged as a DSH plugin for zero-friction setup, the underlying DROS Gateway runs in Docker (localhost:8080), enabling you to protect your entire multi-agent environment under a single 5-Agent Concurrent Governance Envelope:
graph TD
subgraph "Your Local Developer Workstation"
DSH[DeepSeek Harness<br/>dsh-plugin-vajraclaw] -->|HTTP / Intercept| GW[⚡ DROS Docker Gateway<br/>localhost:8080]
AGY[Google Antigravity AGY<br/>MCP / Python SDK] -->|MCP Gateway| GW
Codex[OpenAI Codex / Claude Code<br/>Tool Interception] -->|REST / C-ABI| GW
Cursor[Cursor / IDE Agents<br/>Local Hook] -->|API Proxy| GW
GW --> Micro[🛡️ DROS Micro-Kernel<br/>O 1 Bitmap Matrix & Ed25519 W3C DID]
Micro --> OS[Local OS / Filesystem / Terminal Execution]
end
| Capability Dimension | 📦 Mode A: Standalone Plugin (Default) | ⚡ Mode B: DROS Docker Gateway (Optional) |
|---|---|---|
| Runtime Environment | Pure In-Process TypeScript (Zero Dependency) | Local Docker Container (localhost:8080) |
| Supported Agents | DeepSeek Harness (DSH) Only | DSH + Google AGY + Codex + Claude + Cursor |
| Principal Identity | Process-Bound Agent ID | Native W3C did:key (Ed25519) Cryptographic Identity |
| Tool Execution Gate | DWGR-8 Declarative Param Gate + Regex Failsafe + Local SHA-256 Audit Chain | Deterministic AST Bitmap Policy Engine (<1μs) |
| Audit Verification | Persistent Hash-Linked JSONL (Local Disk) | Ed25519 Cryptographically Signed Merkle Chain |
| RFC-010 Agent Passport | Standard Format Interpretation | Full Local Passport Issuance & Multi-Agent Attestation |
| Network Overhead | 0 ms (Direct In-Memory Hook) | <1 ms (Local Loopback HTTP / C-ABI) |
| License & Access | 100% Free Forever (Apache-2.0) | Free for Personal Hacker Use (Community) |
| Threat Vector / Capability | Traditional LLM Guardrails (NeMo/Lakera) | 📦 DSH Standalone TS Plugin | 🛡️ DROS Hacker Docker Gateway | 🏢 Enterprise / Mesh Tier |
|---|---|---|---|---|
| Runtime Vehicle | Cloud API / External Model | In-Process JS (Zero Deps) | Local Docker Container (:8080) | Enterprise Cluster / K8s / C-ABI |
| Protected Scope | Single Chat Session | DSH Local Process | Full Ecosystem (Claude+Codex+Cursor+DSH+AGY) | Multi-Node Fleet / Private Cloud |
| Execution Intent Governance | 🔴 Text-matching only | 🟢 Regex Pattern Failsafe | 🟢 100% Deterministic AST Fusing (<1µs) | 🟢 AST Bitmaps + eBPF Kernel Hooks |
| Destructive Command Blocking | 🔴 Vulnerable to Injections | 🟢 Sensitive Path Block | 🟢 Deterministic Syscall Severing | 🟢 Hardware HSM + Kernel-level Lock |
| Credential & Secret Protection | 🔴 No Physical Guard | 🟢 Sensitive Path Block | 🟢 Dynamic Redaction + Sandbox Isolation | 🟢 Hardware HSM + ZKP-Lite Proofs |
| Agent Identity Binding | 🔴 No Identity | 🟢 Session-level ID | 🟢 Native W3C did:key (Ed25519) | 🟢 3-Tier PKI DrosIdentityToken (DIT) |
| Non-Repudiable Audit Chain | 🔴 Plain Text Logs | 🟢 Local SHA-256 Hash Chain | 🟢 Ed25519 Signed Merkle Hash Chain | 🟢 EU AI Act Art. 12 Court-Grade Chain |
| RFC-010 Passports | 🔴 Unsupported | 🟢 Format Parser | 🟢 Local Minting & Cross-Agent Verification | 🟢 Cross-Organization Roaming Passports |
| Decision Latency | 🔴 1,000 ~ 3,000 ms (Slow LLM) | 🟢 <1 ms (Direct In-Memory Hook) | 🟢 <1 µs (C-ABI) / <1 ms (REST Gateway) | 🟢 <500 ns (Zero-Copy Memory Lookup) |
| License | Pay-per-Token API | 100% Free (Apache-2.0) | Free License for Individuals | Startup $2,990 / Enterprise $29,990 |
Starting from v2.2.0, dsh-plugin-vajraclaw natively integrates the DROS Personal (Community Edition) micro-gate!
Developers can enforce fine-grained Action-Level Whitelists/Blacklists, Path Traversal Defenses, and Parameter Pattern Constraints locally with zero external dependencies and zero Docker requirements.
Run in your DSH workspace:
npx dsh-plugin-vajraclaw init
# Generates a standard dros.personal.config.json template
dros.personal.config.json){
"version": "1.0.0",
"principalId": "did:key:personal-developer",
"mode": "strict",
"rules": [
{
"toolId": "filesystem",
"allowedActions": ["read_file", "list_directory"],
"blockedActions": ["delete_file", "format_disk"],
"paramConstraints": {
"path": {
"disallowedPatterns": ["..", "/etc/", "C:\\Windows\\", ".env", ".ssh"]
}
}
},
{
"toolId": "sqlite",
"allowedActions": ["read_query", "select"],
"blockedActions": ["drop_table", "delete"],
"paramConstraints": {
"query": {
"disallowedPatterns": ["DROP ", "DELETE ", "TRUNCATE ", "ALTER "]
}
}
}
]
}
.., sensitive directories, and dangerous SQL / shell keywords in parameters.Directly install the plugin in DSH to immediately enable high-risk command blocking, credential file protection, and local audit logging:
dsh plugin --profile web add dsh-plugin-vajraclaw
(Runs 100% in-process with zero network overhead and zero external dependencies)
If you wish to govern multiple multi-agent runtimes (DSH + Google AGY + Codex + Claude Code + Cursor) under a single workstation with Native W3C did:key identity, RFC-010 passports, and microsecond AST policy matrix:
docker run -d -p 8080:8080 --name dros-gateway dros/hacker-gateway:v1.0.0
cordis.patch.yml):
dsh-plugin-vajraclaw:
gatewayUrl: "http://localhost:8080"
export DROS_GATEWAY_URL="http://localhost:8080"
export DROS_IDENTITY_SEED="0x1a2b3c4d..." # Your local Ed25519 seed hex
👉 📖 Read the Advanced SecOps Guide (docs/ADVANCED_SECOPS_GUIDE.md) for internal: true network isolation, Falco eBPF, and Wazuh integration templates.
DROS supports two straightforward formats: Intuitive Markdown (Vajra.md) and Structured YAML (demo_policy.yaml).
Vajra.md)Declare allowed capabilities and hard security boundaries in plain Markdown:
# 🛡️ DROS Agent Security Policy (Vajra.md)
## 1. Allowed Capabilities
- Allow reading workspace files (`file_read`)
- Allow standard queries (`search_web`, `query_db`)
- Allow safe terminal commands (`git status`, `npm test`, `cargo check`)
## 2. Strict Fail-Closed Boundaries
- Block all recursive deletion or wiping commands (`rm -rf`, `rmdir /s`, `format`)
- Block access to credential paths (`.env`, `id_rsa`, `secrets.json`, `.aws/credentials`)
- Restrict transaction amounts exceeding $1,000 threshold (`amount <= 1000`)
[!IMPORTANT] 🔒 Crucial Security Best Practice: Lock
Vajra.mdto Read-Only After Configuration! To prevent compromised or hallucinating AI Agents from attempting to rewrite their own security rules to escalate privileges, always set your policy file to read-only once configured:
- Linux / macOS:
chmod 444 Vajra.md- Windows (PowerShell):
Set-ItemProperty -Path Vajra.md -Name IsReadOnly -Value $true- Docker Container Mount: Mount with the read-only flag
-v $(pwd)/Vajra.md:/app/demo_policy.yaml:ro(Note: DROS kernel enforces 4-Layer Invariant Defense to intercept unauthorized policy modifications in-band; combining this with OS file-level locks achieves 100% airtight physical defense!)
You don't need to write policies from scratch! Copy the following universal prompt to ChatGPT, Claude, or Cursor:
📋 Copy this Prompt to any LLM / AI Assistant:
You are a DROS deterministic security architecture expert. Based on my Agent requirements, generate a standard DROS "Vajra.md" security policy in Markdown. Agent Details: - Agent Role & Scenario: [e.g., Fullstack Developer / Customer Service / Financial Automation] - Allowed Tools & Operations: [e.g., Read/Write src/, Run tests, Query order database] - Strict Boundaries & Denials: [e.g., Block deletion of root/workspace, Block .env access, Payment limit $500] Follow the DROS "Default Fail-Closed" whitelist principle and structure the output into: 1. Role & Capability Scope 2. Allowed Capabilities (Whitelist) 3. Security Boundary Constraints (Thresholds & Pattern Failsafes)
Simply mount your Vajra.md when launching the Docker gateway. Policy changes take effect in <1 microsecond without container restarts:
docker run -d -p 8080:8080 --name dros-gateway \
-v $(pwd)/Vajra.md:/app/demo_policy.yaml \
dros/hacker-gateway:v1.0.0
The deterministic runtime governance, microsecond circuit-breaking, and cryptographic audit mechanisms implemented in this project are grounded in the following academic research and open-source benchmark environments:
Core Architecture & Six Fundamental Boundaries:
10.5281/zenodo.21833970 | Archival Record: zenodo.org/records/21833970Defense-in-Depth Substrate (4-Layer Model):
10.5281/zenodo.21903475 | Archival Record: zenodo.org/records/21903475External C-ABI & Non-Repudiable Attribution (PGM):
10.5281/zenodo.21903687 | Archival Record: zenodo.org/records/21903687Open Technical Standard & Verification Benchmark:
did:key & Ed25519 signature chain).Patent Notice: DROS deterministic runtime execution governance and in-band interception technology is protected under U.S. Provisional Patent Application (U.S. PPA No. 64/111,973, Patent Pending). All commercial rights reserved by Top-Celestial Company Ltd.
通用型 AI Agent 確定性運行期安全治理與微秒級熔斷微核心。原生適配 DeepSeek Harness (DSH) 外掛,同時可作為 Docker 本地 Sidecar 守護 AGY (Google Antigravity)、OpenAI Codex、Claude Code、Cursor 與 OpenClaw 等各類 Agent。
🎯 核心架構定位(一句話拆解認知):
DSH 是 DROS 的社群入口;DROS 是跨 Agent 的執行治理層。
取得入口 (GET IT HERE)
DSH 市集外掛
│
│ 渠道分發 (distribution)
▼
DROS VajraClaw
│
部署形態 (DEPLOY IT HERE)
Docker / Sidecar
│
┌─────────────────┼─────────────────┐
▼ ▼ ▼
DSH AGY Codex ... (Claude, Cursor, OpenClaw)
│ │ │
└─────────────────┼─────────────────┘
▼
DROS 治理邊界 (Enforcement)
│
┌─────────────┼─────────────┐
▼ ▼ ▼
MCP API CLI
🎁 【個人開發者社群版:多 Agent 工作站永久免費】
- 🛡️ 個人使用(非商業用途) 100% 永久免費(為本機多 Agent 工作站建立統一安全邊界,支援最多 5 個並發 Agent)。
- 🪪 三層密碼學架構模型 (
RFC-010):
- 主體身分 (Identity):原生 W3C DID 金鑰綁定 (
did:key:z6Mku...)。- 執行存證 (Evidence):每次 Tool 執行產生 Ed25519 數位簽章。
- 不可否認追溯 (Accountability):防篡改之本機 JSON 審計存證鏈。
- ⚡ Universal Docker 網關:同時保護 DSH 外掛、MCP 服務器與各類終端 CLI Agent。
DeepSeek Harness (DSH) 的偉大之處在於其極致的開放性──「一切皆插件 (Everything is a plugin)」。然而,極致的開放必然伴隨著攻擊面的無限放大:
┌─────────────────────────────────────────────────────────────┐
│ 1. 應用程式內部層 (In-App Layer: DSH 內部插件) │ <── 🏢 前台安檢 (Prompt Filter)
│ - NeMo / Llama-Guard: 負責對話語意審查與不良內容過濾 │
└──────────────────────────────┬──────────────────────────────┘
│ (通過語意審查,Agent 發起 Tool Call)
▼
┌─────────────────────────────────────────────────────────────┐
│ 2. 運行期治理閘道 (Runtime Gateway: DROS VajraClaw) │ <── 🏛️ 金庫守衛 (Execution Identity)
│ - W3C DID 身分指紋 + 364ns 權限點陣查表 │ 指定基準測試配置下執行路徑延遲 <1 μs!
└──────────────────────────────┬──────────────────────────────┘
│ (放行合法的 Syscall / Egress 流量)
▼
┌─────────────────────────────────────────────────────────────┐
│ 3. 基礎設施與核心層 (Infra SecOps: OpenShip / Falco / Cilium)│ <── 🚓 特警防線 (Kernel & Network Fabric)
│ - Cilium 封鎖惡意外發;Falco eBPF 核心層捕捉容器逃逸 │
└─────────────────────────────────────────────────────────────┘
為了維護極致嚴謹的工程界線與防禦範疇,DROS 明確劃定邊界:
| 攻擊手法與威脅情境 | 傳統語意 Guardrails | DROS VajraClaw 物理微核心 | 最終防禦效果 |
|---|---|---|---|
| 間接提示詞注入 (網頁/PDF 夾帶指令詐騙 Agent 刪庫) | ❌ LLM 語意混淆易被繞過 | ✅ 確定性攔截 | 確定性帶內物理熔斷 (<1μs 基準測試點陣查表) |
| 側向越權調用 (未授權外掛偷偷呼叫 DB/付款 Tool) | ❌ 應用層邏輯脆弱 | ✅ 密碼學阻斷 | 100% 阻斷 (在定義之威脅模型與 Capability 向量內) |
| 私自外發洩密 (外掛私自連線外部 C2 傳輸機密) | ❌ LLM 完全無感 | ✅ 網路微隔離 | 100% 丟包 (internal: true 沙盒拓撲) |
| 容器逃逸與宿主機提權 | ❌ 無主機核心視角 | ⚠️ 協同 Falco eBPF | 核心層捕捉 (cap_drop: ALL 特權剝奪隔離) |
| 業務邏輯錯誤與模型幻覺 | ❌ 超出資安範疇 | ❌ 超出資安範疇 | 屬 LLM 生成品質,由 Prompt 工程與 QA 流程優化 |
DROS 嚴格貫徹 零信任密碼學架構:
DROS 雖以 DSH 外掛形式提供一鍵安裝,但底層是 標準化 Docker 容器 (localhost:8080),單台開發機可同時守護多個不同平台的活躍 Agent(共用 5 個並發配額):
dsh-plugin-vajraclaw 接入。💡 最新定價與方案請以 官方網站 (dr-os.io) 公布為準。
| 安全功能 / 6-Pillar 機制維度 | 🟢 Hacker / 個人社群版 (免費) | 🔵 Startup | 🟣 Enterprise | 👑 Sovereign |
|---|---|---|---|---|
| 目標客戶 | 個人開發者 / 本機多 Agent 玩家 | 10~50人新創團隊 | 中大型企業 / 上市公司 | 金融金控 / 國防 |
| 機器授權 (UUIDs) | **1 組 UUI |