riskproof
来源感知的执行安全插件:追踪敏感数据在工具调用间的流转,在副作用发生前阻止高风险执行。
onlyqzq
@onlyqzq
⬇ 2
★ 1
main
安装
dsh plugin --profile web add github:onlyqzq/riskproof
需要可复现安装时,可在仓库后追加 #commit 固定提交。
来源感知的执行安全插件:追踪敏感数据在工具调用间的流转,在副作用发生前阻止高风险执行。
该插件未提供要点说明,请参考仓库 README。
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/onlyqzq/riskproof |
| 许可证 | Apache-2.0 |
| 主要语言 | main |
| 下载量 | 2 |
| GitHub 星标 | 1 |
| 最近推送 | 2026-08-18 |
| 收录日期 | 2026-09-19 |
| 分类 | 安全与权限 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# RiskProof
**Provenance-aware execution security for DeepSeek Harness.**
Track where tool inputs came from. Detect risky cross-tool data flows. Stop sensitive side effects before execution.
[English](README.md) · [简体中文](README.zh-CN.md)
---
## What RiskProof answers
Most tool-permission plugins answer one question: *is this tool allowed?*
RiskProof answers a different one:
> **Where did the data in this tool call come from, what did it flow through, and where is it about to go?**
A single tool call is usually safe. The composition is not.
```text
web_fetch ← UNTRUSTED_WEB
│
database_query ← CUSTOMER_DATA
│
send_email ← external destination
│
RiskProof → DENY (evidence-backed, before the side effect)
```
## Why RiskProof
| Permission rules | RiskProof |
| ------------------------- | -------------------------------------- |
| Is this tool allowed? | Where did this data come from? |
| Single call | Cross-tool flow |
| Tool name | Provenance + taint |
| Static rule | Stateful attack chain |
| Permission decision | Evidence-backed execution decision |
RiskProof is a layer over the DSH Tool Runtime, not another Agent Runtime. It never re-implements tool dispatch, approval, or lifecycle — it observes and decides.
## Quick Start
```bash
# add the plugin to a DSH profile
dsh plugin --profile add dsh-riskproof
```
Minimal `cordis.patch.yml` (the schema defaults are already safe):
```yaml
- insert:
- id: riskproof
name: dsh-riskproof
```
Then use DSH normally. RiskProof silently tracks security context and only asks or blocks when a risky cross-tool flow appears.
To tune it:
```yaml
- insert:
- id: riskproof
name: dsh-riskproof
config:
mode: enforce # enforce | observe
policy:
sensitiveExternalAction: deny
untrustedPrivateAccess: ask
classification:
overrides:
gmail_send: [EXTERNAL_ACTION]
company_db: [PRIVATE_ACCESS]
```
See [docs/configuration.md](docs/configuration.md) for the full reference.
## See it work
```mermaid
sequenceDiagram
participant A as Agent
participant T as DSH ToolRuntime
participant R as RiskProof
A->>T: web_fetch(url)
T->>R: tools/pre-execute
R-->>T: allow (EXTERNAL_INGESTION recorded)
T-->>A: untrusted content
A->>T: database_query(sql)
T->>R: tools/pre-execute
R-->>T: allow (PRIVATE_ACCESS recorded, CUSTOMER_DATA tagged)
T-->>A: CUST-8842 balance 125000
A->>T: send_email(to=external, body=CUST-8842…)
T->>R: tools/pre-execute
R-->>T: DENY — ingestion + private access + sensitive data + external action
T-->>A: Error:
```
The same flow is reproduced as a deterministic regression test in [tests/security/attack-chain.test.ts](tests/security/attack-chain.test.ts).
Try it locally with no model or profile — a real DSH ToolRuntime pipeline with three mock tools:
```bash
npm run demo
```
See [demo/README.md](demo/README.md).
## Features
### Track data origin
Know where tool inputs came from. RiskProof maps arguments back to the tool results that produced them.
### Follow sensitive data
Carry security labels — `UNTRUSTED_WEB`, `CUSTOMER_DATA`, `PII`, `SECRET`, … — across tool calls, additively.
### Detect attack chains
Identify the `EXTERNAL_INGESTION → PRIVATE_ACCESS → EXTERNAL_ACTION` pattern that single-tool checks miss.
### Stop before execution
Block or ask *before* the side effect runs, through the native `tools/pre-execute` gate.
### Explain every decision
Generate structured, privacy-preserving security evidence for every decision.
## How it works
RiskProof hooks the native DSH tool pipeline:
```text
tools/pre-execute
│ capability classification
│ argument provenance mapping
│ taint analysis
│ toolchain state (EIT → PAT → NAT)
│ deterministic policy evaluation
▼
allow / ask / deny (monotonic with other plugins)
│
tools/result
│ update ContextTracker
│ update Toolchain state
▼ record execution evidence
```
- **Classification** is deterministic (tool name + description + schema), configurable, and never uses an LLM.
- **Provenance** uses exact and bounded substring matching over a per-session context index.
- **Taint** is additive; ordinary tool output can never remove a label.
- **Decisions** are deterministic, explainable, and testable.
See [docs/architecture.md](docs/architecture.md).
## Security boundaries
RiskProof protects **supported observable tool-call flows** through DSH:
- DSH tool calls through the supported `tools/pre-execute` / `tools/result` paths
- supported observable provenance (exact / bounded substring matching)
- configured sensitive flows and cross-tool attack patterns
RiskProof does **not** replace:
- OS sandbox / process isolation
- network firewall / SSRF protection
- endpoint security / malware scanning
- credential vaults
- full semantic DLP
See [docs/security-model.md](docs/security-model.md) for the complete threat model and known limitations.
## Documentation
- [Architecture](docs/architecture.md)
- [Security model](docs/security-model.md)
- [Provenance & taint](docs/provenance.md)
- [Toolchain model](docs/toolchain.md)
- [Configuration](docs/configuration.md)
- [Development](docs/development.md)
- [Migrating from RiskProof (MCP)](docs/migration-from-riskproof.md)
## Roadmap
### v0.1 (current)
- DSH-native runtime (`tools/pre-execute`, `tools/result`)
- Provenance + taint tracking
- Cross-tool EIT → PAT → NAT detection
- Privacy-preserving proof
### v0.2
- Tool identity continuity
- Task-aware policy
- Execution receipts
### v0.3
- Output-side information-flow control
- Trusted declassification
## Contributing
Issues, rule submissions, tool-capability mappings, and false-positive reports are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
## Security reporting
Please report vulnerabilities privately. See [SECURITY.md](SECURITY.md).
## License
[Apache-2.0](LICENSE)
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。