r/formalmethods • u/LibraeAiLabs • 1d ago
GitHub - vktheenesan/lia-adversarial-challenge: Open verification arena for LIA: NASA JPL Power of 10 safety audit, NIST SAMATE CWE elimination, and 10-level adversarial attack challenge.
Hey everyone,
Instead of relying on probabilistic filters or reactive prompt heuristics to defend autonomous agents and mission-critical systems, we built and open-sourced **LIA (Librae Invariant Architecture)**: a deterministic, zero-heap invariant hypervisor.
We’ve published the complete verification suite and open adversarial arena on GitHub:
👉 **Repo:** https://github.com/vktheenesan/lia-adversarial-challenge
### 🔬 Empirical Results & Audits
The repository contains full automated test harnesses verifying:
* **NASA JPL Power of 10:** Static compliance audit based on Gerard Holzmann's rules for mission-critical software (no dynamic heap allocation, acyclic call graph, bounded loops, single pointer dereference limit). **Score: 10/10 (100%)**.
* **NIST SAMATE Juliet Benchmark:** 39 test vectors across 9 CWE classes (Stack overflow CWE-120, Heap corruption CWE-122, SQLi CWE-89, Command Injection CWE-78, Deserialization CWE-502). **Result: 39/39 neutralized (0% bypass)**.
* **Endurance & Determinism:** Tested over 20,000 cycles. Average evaluation latency is **~77 microseconds** with **0 bytes of memory drift**.
* **10-Level Adversarial Ladder:** 307 escalating attacks ranging from Unicode homoglyphs and AST smuggling to multi-agent swarm manipulation.
### 🎯 Challenge the Lab: Test Your Custom Payloads
We built a custom evaluator so you can test your worst payloads:
```bash
git clone https://github.com/vktheenesan/lia-adversarial-challenge.git
cd lia-adversarial-challenge
pip install -r requirements.txt
# Run the master audit suite (~1.05s total runtime)
python3 challenge_runner.py
# Or test your own custom binary / polyglot exploit:
python3 challenge_runner.py --custom attacks/custom_payloads/sample_cwe120_overflow.bin

