Skip to content

edlontech/einsof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Einsof

Work in progress.

Einsof is a security authorization system for LLM tool execution. It addresses the Lethal Trifecta -- the combination of private data, untrusted content, and external communication that enables data exfiltration through indirect prompt injection.

The system enforces authorization at tool boundaries so that a confused (prompt-injected) agent cannot reach egress channels when it carries taint from private data.

Components

Tzimtzum -- Formal Specification

The TzimtzumV2 protocol, written in Lean 4 on the Kav transition-system framework. All 10 safety properties and 15 strengthening invariants

Kav -- Verification Framework

The pure-Lean transition-system verifier Tzimtzum is built on (#kav_check_action, #kav_check_init, finite-model checker).

Argus -- Rust Implementation

argus-kernel: the pure-functional state machine implementing the TzimtzumV2 transitions.

ExArgus -- Elixir NIF

Lean Refinement -- Rust-to-Spec

The Rust kernel is mechanically extracted to Lean via Aeneas/Charon and refined against the Kav specification. implementation_sound is complete: every reachable state of the extracted kernel refines an abstract TzimtzumV2 state satisfying all safety invariants -- modulo the trusted extractor and two explicit assumptions (Vec-capacity bounds and runtime-oracle agreement). It does not prove the hand-written Rust source or the external mesh.

Toolchain

Managed via mise:

Tool Version
Rust 1.93.0
Lean 4.30.0

AI Usage Disclosure

Parts of this project were developed with AI assistance, most heavily in Documentation, Lean work, the Tzimtzum/Kav formalization and the Aeneas/Charon refinement.

License

MIT

About

A Formaly Verified agents security

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors