dongsheng123132/dsh-principal-binding-proof0

dsh-principal-binding-proof

DSH 执行表面跨主体匿名权限绑定的离线内容寻址证明

AI 分析

核心用途是验证在 DSH 执行链中,匿名主体、会话、代理、工具调用及产物之间的绑定关系是否持续一致。适合需要防止多租户混淆和身份篡改的深度安全审计任务。

套件
dsh-principal-binding-proof
版本
0.1.0
授權
MIT
最近更新
2026年8月25日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dongsheng123132/dsh-principal-binding-proof

dsh-principal-binding-proof

Offline, content-addressed evidence that one pseudonymous authority and tenant remain consistently bound across a DSH execution chain: principal → session → agent → tool call → runtime → artifact.

It validates explicit recorded hashes, revision, key epoch, evidence freshness, issuer allowlists, validity windows, revocation, adjacency and a unique acyclic chain. It detects authority swaps, cross-tenant confusion, stale identities, broken or mis-typed bindings, unauthorized issuers and terminal artifact mismatches.

Boundary

This is not authentication, authorization, signature verification, access control or a remote transport. It grants no authority, reads no accounts, credentials, prompts or business payloads, and executes no commands.

  • dsh-decision-effect-proof reconciles authorization decisions with effects.
  • dsh-attestation-proof verifies signed DSSE/in-toto statements.
  • dsh-lineage tracks object and action provenance.
  • This plugin checks the narrower identity-confusion question: whether every redacted execution surface claims the same authority, tenant and revision through a valid explicit binding chain.

See examples/bound.json.

npm test
npm run check
node bin/dsh-principal-binding-proof.mjs verify examples/bound.json
dsh plugin --profile proof add .

DSH tools are dsh_principal_binding_inspect and dsh_principal_binding_verify. MCP exposes proof-only inline equivalents. Workspace verification accepts only relative, non-symlink paths and writes a deterministic content-addressed report beneath an explicit artifactDir, followed by SHA-256 read-back verification.

MIT licensed. See SECURITY.md.