← 返回
安全合规 中文

OpenExec — Deterministic Execution Boundary for Agent Systems

Source-distributed deterministic execution service with pinned dependencies. Runs only with a signed approval artifact (ClawShield mode) and emits verifiable...
源分发确定性执行服务,采用固定依赖。仅在带有签名审批制品(ClawShield模式)时运行,并产生可验证的输出...
trendinghot
安全合规 clawhub v0.1.10 1 版本 99922.2 Key: 无需
★ 2
Stars
📥 1,244
下载
💾 15
安装
1
版本
#agent-governance#agent-runtime#ai-guardrails#ai-infrastructure#ai-kill-switch#ai-safety#ai-security#approval-enforcement#authority-separation#autonomous-agents#cryptographic-verification#deterministic-execution#ed25519#execution-boundary#execution-control-plane#execution-firewall#execution-runtime#latest#llm-security#model-execution-boundary#network-isolation#openai-tools#production-ai#prompt-injection-defense#receipt-verification#replay-protection#secure-agent-runtime#secure-agents#signature-verification#signed-approvals#tamper-evidence#tool-call-security#zero-trust#zero-trust-ai

概述

OpenExec — Governed Deterministic Execution (Skill)

OpenExec is a runnable governed execution service.

It executes only what has already been approved.

It is not an agent.

It is not a policy engine.

It does not self-authorize.

OpenExec performs no outbound HTTP, RPC, or governance calls during signature verification or execution. All verification is fully offline. By default, OpenExec uses a local SQLite database (sqlite:///openexec.db). Database network I/O occurs only if explicitly configured by the operator via OPENEXEC_DB_URL.


Install

pip install -r requirements.txt

Run (local)

python -m uvicorn main:app --host 0.0.0.0 --port 5000

Endpoints

  • GET / → service info (deployment health check)
  • GET /health → health status, mode, restriction level
  • GET /ready → readiness check
  • GET /version → version metadata
  • POST /execute → execute an approved action deterministically
  • POST /receipts/verify → verify receipt hash integrity

Modes

1) Demo mode (default, free)

No external governance required. No env vars required.

export OPENEXEC_MODE=demo

Demo mode still enforces:

  • deterministic execution
  • replay protection (nonce uniqueness)
  • receipt generation

2) ClawShield mode (production / business)

Requires a signed approval artifact issued by ClawShield.

OpenExec verifies the Ed25519 signature offline using the configured public key.

export OPENEXEC_MODE=clawshield
export CLAWSHIELD_PUBLIC_KEY="-----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY-----"
export CLAWSHIELD_TENANT_ID="tenant-id"

If signature validation fails, execution is denied.

> Note: ClawShield governance SaaS is available at https://clawshield.forgerun.ai/. OpenExec does not contact this URL at runtime. It is provided for reference only.


Environment Variables

All environment variables are optional. OpenExec runs with zero configuration in demo mode.

VariableDefaultDescription
--------------------------------
OPENEXEC_MODEdemoExecution mode: demo or clawshield
CLAWSHIELD_PUBLIC_KEY(none)PEM-encoded Ed25519 public key for signature verification
CLAWSHIELD_TENANT_ID(none)Tenant identifier for multi-tenant isolation
OPENEXEC_ALLOWED_ACTIONS(none)Comma-separated list of permitted actions. If unset, all registered actions are allowed
OPENEXEC_DB_URLsqlite:///openexec.dbDatabase URL for execution record persistence

90-Second Quickstart (Demo)

  1. Start server:
python -m uvicorn main:app --host 0.0.0.0 --port 5000
  1. Confirm health:
curl http://localhost:5000/health
  1. Execute a deterministic demo action:
curl -X POST http://localhost:5000/execute \
  -H "Content-Type: application/json" \
  -d '{
    "action":"echo",
    "payload":{"msg":"hello"},
    "nonce":"unique-1"
  }'
  1. Replay attempt (returns same result, no re-execution):
curl -X POST http://localhost:5000/execute \
  -H "Content-Type: application/json" \
  -d '{
    "action":"echo",
    "payload":{"msg":"hello"},
    "nonce":"unique-1"
  }'

Receipts

Every execution produces a receipt hash.

Receipts are evidence, not logs.

Verify a receipt:

curl -X POST http://localhost:5000/receipts/verify \
  -H "Content-Type: application/json" \
  -d '{"exec_id":"<id>","result":"<result_json>","receipt":"<hash>"}'

What this skill does

  • Accepts structured execution requests
  • Enforces replay protection
  • Executes deterministically (approved parameters only)
  • Emits verifiable receipts for every attempt
  • In ClawShield mode: verifies signed approvals before execution
  • Supports optional execution allow-list via environment variable

What this skill does not do

  • Define policy
  • Grant permissions
  • Reason autonomously
  • Override governance decisions
  • Self-authorize execution
  • Make outbound HTTP or governance calls during execution
  • Provide OS-level sandboxing or container isolation

Security Boundary Notice

OpenExec enforces execution boundaries at the application layer.

It does not provide OS-level sandboxing.

Deploy behind containerization, VM isolation, or hardened environments

when actions interact with production systems.

OpenExec enforces authority separation.

It is not a sandbox.


Architecture context (3-layer separation)

  • OpenExec -- deterministic execution adapter (this skill)
  • ClawShield -- governance + approval minting (SaaS): https://clawshield.forgerun.ai/
  • ClawLedger -- witness ledger (optional integration)

Each layer is replaceable. No single layer can act alone.


Security Documentation

A full security model, threat assumptions, and production hardening

checklist are available in SECURITY.md.

This skill intentionally separates:

  • Execution enforcement (OpenExec)
  • Infrastructure isolation (operator responsibility)

Execution Safety Guarantees

This skill:

  • Does not dynamically load code
  • Does not evaluate user input as code
  • Uses a static handler registry
  • Does not install packages at runtime
  • Does not fetch remote execution logic

版本历史

共 1 个版本

  • v0.1.10 当前
    2026-03-29 03:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,172
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,609
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,539