EMET examples
June 18, 2026 ยท View on GitHub
A runnable demo that exercises the real EMET witness surface end-to-end.
Best-effort demo - not runtime-verified by author. It uses only real
membrane.pycommands and the public marker corpus, and runs in a scratch directory so it writes no state into the repo.
Files
sample-prompt.txt- an ordinary note that embeds a few public in-band authority-marker signatures fromconformance/markers.corpus(no secrets; the markers are known signatures, which is why they live in the open). This is exactly the kind of self-vouching contentrefuseexists to neutralize.demo.sh- drivesselftest,anchor+verify(MATCH, then DRIFT after a one-byte change),coherence,refuse,corroborate, andaudit.
Run
sh examples/demo.sh
Override the interpreter if needed:
PYTHON=python3 sh examples/demo.sh
What to expect
selftestprints the tool's own SHA-256 and declines authority.verifyprintsMATCH(exit 0), thenDRIFT(exit 2) after the file is mutated by one byte.coherenceprintsCOHERENTfor a faithful view.refusereports the in-band authority claims by offset (exit 3) and writes a neutralizedsource.txt.refusedcopy with each marker replaced by[REFUSED-IN-BAND-AUTHORITY].corroborateshows the read paths agreeing (CORROBORATED);cat_subprocandgit_readare environment-dependent.auditrecomputes the tamper-evident log chain and reportschain=INTACT.
Exact hashes depend only on the input bytes, so they re-derive identically on any
machine for the same sample-prompt.txt. See ../USAGE.md for the
full command reference and per-command expected output.