A solo developer has open-sourced a foundational component of a local-first security tool, built in Rust and designed around zero-trust principles. Source: dev.to.
What the Tool Does
The project, named mack-zerotrust-rust-starter, is a token policy engine written in safe Rust.
It evaluates tokens against a defined policy. Any action not explicitly allowed is denied by default—there is no implicit trust path.
Every decision is recorded in a hash-chained audit log. This means each entry is linked to the previous one via cryptographic hashing. If a later entry is edited, the chain breaks from that point onward.
Key Features and Testing
- The tool has passed 22 of 22 tests, with continuous integration and a full history secret scan showing no vulnerabilities.
- It is licensed under the MIT license, making it freely usable and modifiable.
- The companion crate aegis-seal includes Ed25519 signing and entropy scanning, with all 18 tests passing.
Two Critical Limitations
The developer explicitly states two weaknesses, and pins them as test cases to ensure they are not overlooked.
Tail Truncation
Chopping entries from the end of the log does not invalidate the chain. The remaining data remains a valid prefix.
Only by comparing the length or tip of the chain against an external record can a user detect tampering.
The test limitation_tail_truncation_is_not_detected confirms this vulnerability.
Unkeyed Chain
The log is unkeyed. Anyone who understands the public hash function can reconstruct the entire chain and verify it.
This means the chain is tamper-evident for partial edits but not tamper-proof for full rewrites.
An externally anchored tip is needed to prevent full rewriting—this is outside the scope of the current implementation.
The test limitation_whole_chain_rewrite_is_not_detected highlights this.

Why the Limits Are Shared First
The developer emphasizes transparency: “A verification tool that oversells its own guarantees is worse than no tool.”
By listing limitations upfront, the project invites scrutiny from users who care about audit trails and real-world security.
It is designed for developers who build in Rust and prioritize verifiable, traceable operations.
Where to Find It
The main repository is available at mack-zerotrust-rust-starter.
The companion crate aegis-seal is at aegis-seal.
Community Feedback
The developer welcomes criticism and issues. The repository invites sharp, constructive feedback to improve the tool.
Users are encouraged to test the limits and report any gaps in detection or implementation.
For developers building local-first tools, this project offers a minimal, auditable foundation. It does not claim to be secure in all scenarios—only in specific, well-defined ones.
For more on local-first tools, see GamerScroll, a similar project that archives game history offline.
For a broader view of developer tooling, explore NexusAI.
And for a simple offline tool used in game jams, see Jam Scope Board.
Sources & further reading
Featured image: original publisher image. Via original publisher. Image source
