Dev.to Security 🔐 Cybersecurity 👁 0 📖 1 min read

I open-sourced the front door to what I build: a zero-trust verification core in Rust, limits included

I'm a solo developer, and I build local-first security tooling in Rust. This week I open-sourced the starter edition of the verification core I build on: mack-zerotrust-rust-starter — a default-deny token policy engine w

I'm a solo developer, and I build local-first security tooling in Rust. This week I open-sourced the starter edition of the verification core I build on: mack-zerotrust-rust-starter — a default-deny token policy engine with a SHA-256 hash-chained audit log, written in safe Rust.

What it does

Tokens are verified against an explicit policy. Anything not allowed is denied by default — there is no implicit trust path. Every verification decision is appended to a hash-chained audit log, so a later edit to an earlier entry breaks the chain from that point on.

The two limits, stated plainly

Most launch posts hide the weaknesses. Mine are pinned as tests so they can't silently disappear:

  1. Tail truncation is invisible to verify_chain alone. Chop entries off the end and what's left is still a valid prefix. You only catch it by comparing the tip or length against a value recorded outside the chain.
    Test: limitation_tail_truncation_is_not_detected

  2. The chain is unkeyed. Anyone who knows the public hash construction can rewrite the whole history and recompute every link, and it verifies. It's tamper-evident against partial edits, not tamper-proof against a full rewrite — an externally anchored tip is the countermeasure, and that's out of scope for this kit.
    Test: limitation_whole_chain_rewrite_is_not_detected

A companion crate, aegis-seal, covers Ed25519 signing, the same style of hash-chained ledger, and secret/entropy scanning — 18 of 18 tests, MIT or Apache-2.0.

Why post the limits first?

Because the people I want using this are the people who check. A verification tool that oversells its own guarantees is worse than no tool. If you build in Rust and care about audit trails, I'd rather you start from what this doesn't do, and decide if the rest is still useful.

Issues and criticism welcome on the repos — the sharper the better.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.