Sovereign Execution Broker (Python implementation)
Enforces certificate-bound authority before executing any shell command. Based on the paper "Sovereign Execution Brokers: Enforcing Certificate-Bound Authority in Agentic Control Planes" (arXiv:2606.20520, Jun 2026).
When an autonomous AI agent has direct access credentials to production infrastructure, a single hallucination or prompt injection can cause:
- Database deletion
- Public port exposure
- Critical infrastructure termination
Traditional IAM authorizes identities, not certified actions. SEB-Light closes this gap.
Agent Proposal → PolicyEngine (SAB) → Certificate → CommandExecutor → Ledger
↓ ↓ ↓
Evaluate rules HMAC-signed Hash-chained
Block/Allow/Mod Short-lived Immutable audit
Pipeline:
- Agent submits a Proposal (what it wants to execute)
- PolicyEngine (SAB) evaluates against security rules
- If approved, a signed Certificate is issued (short-lived, single-use)
- CommandExecutor runs the command with sanitized environment
- Ledger records everything in a hash-chained, immutable log
- Certificate is revoked after execution
# Clone
git clone https://github.com/amurlaniakea/seblight.git
cd seblight
# Setup
python3 -m venv venv
source venv/bin/activate
pip install -e .
# Evaluate a command (dry run)
python3 seblight_run.py evaluate "list files" "ls -la /tmp"
# → {"allowed": true, "severity": "safe"}
# Execute through SEB
python3 seblight_run.py execute "echo test" "echo SEB-Light works!"
# → {"status": "executed", "certificate_id": "...", "execution": {...}}
# Verify ledger integrity
python3 seblight_run.py verify
# → ✅ Ledger integrity: VALID
# Run tests
pytest tests/ -v
# → 31 passedrm -rf /,rm -rf /*— root deletionmkfs,dd if=/dev/zero of=/dev/— disk destructionchmod -R 777 /— permission destruction> /etc/passwd,> /etc/shadow— system file overwriteiptables -F,ufw disable— firewall disablesystemctl stop/disable— service stopshutdown,reboot,poweroff— system shutdown- Fork bomb patterns
rm -rf,rm -r,rm— deletionchmod,chown— permission changesapt remove/purge,pip uninstall— package removaldocker stop/kill— container stopcurl,wget,nc— network operations
ls,cat,grep,find,ps,df— read-onlyecho,printf— outputmkdir,touch— safe file creation
Create a JSON policy file:
{
"rules": [
{
"name": "block_production_db",
"description": "Block access to production database",
"severity": "blocked",
"patterns": ["prod-db", "production-database"],
"action_types": ["command"],
"effect": "deny",
"priority": 200
}
]
}seblight/
├── seblight/
│ ├── __init__.py
│ ├── core/
│ │ ├── models.py # Proposal, Certificate, PolicyDecision, etc.
│ │ ├── policy.py # PolicyEngine (SAB) + PolicyRule
│ │ ├── executor.py # CommandExecutor
│ │ ├── ledger.py # Immutable hash-chained ledger
│ │ └── broker.py # SovereignExecutionBroker
│ ├── cli/
│ │ └── main.py # CLI interface
│ └── adapters/ # (future: Docker, SSH, etc.)
├── tests/
│ └── test_seblight.py # 31 tests
├── seblight_run.py # Hermes integration wrapper
├── venv/
└── README.md
SEB-Light includes a skill for Hermes Agent:
# Skill location
~/.hermes/skills/seblight/SKILL.md
# Wrapper
python3 /home/sil/seblight/seblight_run.py evaluate "action" "command"
python3 /home/sil/seblight/seblight_run.py execute "action" "command"| Feature | Paper (Go) | SEB-Light (Python) |
|---|---|---|
| Target | AWS/Kubernetes | Local agents (Hermes/Tars) |
| Language | Go | Python |
| Certificate | X.509-style | HMAC-SHA256 |
| Identity | AWS STS / K8s TokenRequest | Subprocess env sanitization |
| Ledger | Cloud-native | Local JSONL file |
| Focus | Cloud infrastructure | Agent command execution |
This project is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later), per the Free Software Foundation. The full license text is in LICENSE.
Source access (AGPL §13): SEB-Light is a local CLI/broker, not a network service, so §13 does not apply in practice. The complete source is published at github.com/amurlaniakea/seblight; copies can be requested from amurlaniakea@gmail.com.
Copyright (C) 2026 Pedro Sordo Martínez amurlaniakea@gmail.com
- Sovereign Execution Brokers (arXiv:2606.20520)
- OpenKedge — Reference implementation in TypeScript