关于
一个以 Lean 4 为支撑、用于构建并形式化验证服务器、嵌入式设备和 GPU 应用的 Rust 框架,集成安全测试和基于 Axum 的 Web 开发。
安全与隐私实测星标增长
- 24小时
- +4
- 7天
- +27
- 15天
- +115
- 1个月
- +161
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文h5i
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"] }
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
5. License
h5i is licensed under the Apache License 2.0. See LICENSE.
探索相关项目
加载中…