SIE (Signed Instruction Envelope) is a minimal security primitive for agent systems that rely on plain-text
instruction files (e.g., SKILL.md, “skill packs”, tool configs, memory/instruction folders).
It targets a structural weakness in modern agent architectures:
Agents cannot reliably distinguish trusted instructions from untrusted content.
This enables:
SIE provides:
trusted_issuers.json)This repository contains a reference implementation + demo.
Agent-first note: docs are organized so agents can quickly find deterministic behavior, failure handling, and validation commands while still being readable for humans.
✅ If verification passes, the instruction payload is:
✅ Unsigned / untrusted instruction sources are rejected by default.
✅ Untrusted content cannot become trusted instructions (channel separation pattern).
SIE is a trust primitive, not a full sandbox or alignment solution.
❌ It does not prevent all model jailbreaks.
❌ It does not sandbox tool execution by itself.
❌ It does not prevent compromise of issuer private keys (revocation comes later).
❌ It does not stop OS/runtime vulnerabilities.
See: THREAT_MODEL.md
SIE_SPEC.md — envelope format + signing/verification rulesTHREAT_MODEL.md — threats, assumptions, non-goalssie_lib.py — canonical JSON + sign/verify helperssie_sign.py — sign an instruction file into *.sie.jsonsie_verify.py — verify signature + trusted issuer + optional file bindingtrusted_issuers.json — trusted issuer public keys (keyring)demo/ — indirect injection demodocs/INDEX.md — best entrypoint (human/operator/integrator/maintainer paths)docs/SECURITY_QUICKSTART.md — 5-minute safety setupdocs/VALIDATION.md — reproducible commands + expected outcomesdocs/OPENCLAW_INTEGRATION.md — integration design for loader enforcementUse this if you want the newest release candidate:
python3 -m pip install "git+https://github.com/palxis-labs/sie-mvp.git@v0.1.0-rc1"
python3 -m pip install "https://github.com/palxis-labs/sie-mvp/releases/download/v0.1.0-rc1/sie_mvp-0.1.0-py3-none-any.whl"
If the GitHub Release page is not published yet, use Option A immediately; it installs directly from the tagged source.
Windows PowerShell:
& .\.venv\Scripts\Activate.ps1
Linux/macOS:source .venv/bin/activate
python3 -m pip install .
python3 -m pip install -e .
python3 sie_sign.py --issuer palxislabs --infile SKILL.md
python3 sie_verify.py --file SKILL.md.sie.json --trusted-issuers trusted_issuers.json
python3 sie_verify.py --file SKILL.md.sie.json --trusted-issuers trusted_issuers.json --check-file SKILL.md
pip install .)sie-verify --file SKILL.md.sie.json --trusted-issuers trusted_issuers.json --check-file SKILL.md
.\scripts\sign.ps1
.\scripts\verify.ps1
.\scripts\validate_all.ps1
./scripts/sign.sh
./scripts/verify.sh
./scripts/validate_all.sh
python3 demo/run_demo.py
MIT