Skip to content
Proyectos

Acerca de

Un framework de Rust basado en Lean 4 para crear y verificar formalmente aplicaciones para servidores, dispositivos integrados y GPU, con pruebas de seguridad integradas y desarrollo web basado en Axum.

Seguridad y privacidad

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+4
in 7 days
+27
in 15 days
+115
in 1 month
+161

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

h5i

tests GitHub stars release

h5i (pronounced high-five) is a Rust framework for building and formally verifying applications across servers, bare-metal embedded devices, and GPUs. Built around Lean 4-verifiable application kernels, it supports Axum-based web development and provides integrated development infrastructure for red-teaming, security regression testing, and sandboxed AI agents.

While h5i focuses on source-level formal verification, our sibling project NoCompiler enables formal verification directly at the binary level. Check it out as well!


1. Install

# Add the Rust application framework
cargo add h5i-app

# Install the h5i CLI and development tools
curl -fsSL https://h5i.dev/install.sh | sh -s -- --websec --recon --test

# AI agent integration (optional)
npx skills add h5i-dev/h5i

2. Verifiable Application Framework

h5i-app is a composable Rust application framework built around a verifiable application kernel, with support for Axum-based web applications, bare-metal firmware, and GPU execution.

  • Kernel-based architecture: Separate application logic from infrastructure to verify and optimize core behavior.
  • Formal verification: Translate Rust application logic into Lean 4 using Aeneas and prove their properties.
  • Temporal logic and model checking: Verify safety, liveness, and fairness-dependent properties of Rust application kernels and system-level models using Veil.
  • Automatic specification generation: Generate Lean 4 specifications and proofs for common patterns, including database schemas, authorization, and storage operations (compatible with spec-kit).
  • Axum-compatible deployment: Deploy web applications to platforms supporting Axum, including Cloudflare Workers, Vercel, and Fly.io, without rewriting application logic.
  • Multi-target execution: Run application kernels across different execution environments:
    • Servers: Execute kernels on CPUs with Axum-based HTTP integration.
    • Embedded systems: Run kernels on bare-metal devices using a no_std, heap-free HTTP/1.1 server.
    • GPUs: Accelerate supported kernels with GPU execution while retaining CPU fallback.
[dependencies]
h5i-app = { version = "0.5.7", features = ["http", "postgres"] }

Watching a sandboxed browser session from the host

3. Development Infrastructure

h5i provides a unified CLI for building, formally verifying, and debugging applications with AI agents, along with integrated security testing for web applications. For example, you can run professional red-teaming simply by opening your favorite AI agent harness and saying "Audit https://<your-target>.com with h5i."

The red-team, CI/CD, sandbox, and UI are framework-independent, so there's no need to adopt h5i-app.

CLI Examples

h5i app new counter && cd counter            # Scaffold a new Rust web app
h5i app extract                              # Extract Lean 4 models from Rust
h5i app prove                                # Verify properties with Lean 4
h5i app mutate                               # Test proof sensitivity with mutations

h5i browser open https://example.com         # Browser automation: Open a webpage
h5i browser click @e3                        # Click an element by reference

h5i websec requests                          # HTTP security testing: Inspect captured requests
h5i websec replay req_42 --set query.id=456  # Modify and replay a request

h5i recon crawl --max-requests 200           # Reconnaissance: Discover attack surfaces

h5i test .h5i-tests/tests/auth.yaml --target https://staging.example.com                # CI/CD: Run security tests
h5i test --target https://staging.example.com --openapi openapi.yaml --min-coverage 80  # Enforce API coverage

h5i box --name lab --profile browser         # Sandbox: Create an isolated environment
h5i box shell lab -- claude                  # Run Claude inside the sandbox

4. Dashboard

h5i ui                                       # Dashboard: Launch the local web UI

h5i local dashboard showing browser and session activity


5. License

h5i is licensed under the Apache License 2.0. See LICENSE.

Explorar proyectos relacionados

Cargando…