THOX.ai Research · Technical report · v1.1.2 preprint · 2026-11-11
Preprint, not peer reviewedThoxShield: Bloat-Capped Counter-REA Defense for Local-First AI Artifacts
A bloat-capped subset of counter-REA defense: a single zero-dependency Rust binary that keeps the mechanisms whose analyzer cost is high and whose byte cost is low, and refuses by construction to add more than a configurable cap to any artifact.
THOX.ai Research, THOX.ai LLC · November 11, 2026
Preprint, not peer reviewed. Version of record: DOI 10.5281/zenodo.24146345. Paper CC BY 4.0; the tool is MIT.
Abstract
Autonomous reverse-engineering agents (REAs) — LLM-driven pipelines that unpack, index, and summarize shipped artifacts — have collapsed the cost of cloning unprotected software: a model file, a WebAssembly module, or an application bundle can be inventoried and reconstructed for cents. Counter-REA tools answer by poisoning, exhausting, and entangling artifacts, but their strongest settings exact a heavy toll on the defender: in our measurements, a current open-source counter-REA tool at its default intensity grows a 93-byte JavaScript fixture to 133,951 bytes (1,440×) and an 8-byte WebAssembly fixture to 3,873,169 bytes. For local-first products — applications and models that ship to user devices, where download size, storage, and update cost are user-facing — that toll is often unacceptable. We present ThoxShield, a bloat-capped subset of counter-REA defense implemented as a single zero-dependency Rust binary (486,808 bytes). ThoxShield keeps the mechanisms whose analyzer cost is high and whose byte cost is low — self-identifying canary metadata, metadata-nesting breakers aimed at REA’s published analyzer budgets, and a SHA-256 origin binding — and refuses, by construction, to add more than a configurable cap (default: the larger of 4 KiB or 5%) to any artifact. On reference fixtures it adds 736 bytes to a GGUF model, 578–619 bytes to a Safetensors model (fixture-dependent), and 303 bytes to a WASM module; and in an independent virtual test lab (Section 8) a production 380 MB GGUF with 290 tensors grew by 736 bytes and re-loaded in the reference GGUF reader with every tensor byte stream identical. Because modern releases are produced by teams of agents, ThoxShield also ships a lightweight loop harness in which five generic roles — coordinator, auditor, hardener, verifier, reporter — run the defense as an auditable loop with a hard separation between producing a shield and verifying it. One disclosure belongs next to every effectiveness statement in this paper, so we make it here as well: the lite shields have not yet been run against a live REA pipeline; the analyzer-budget evidence behind them is upstream-empirical (BLA, against REA) and, in our own lab, simulated and labeled as such. We release ThoxShield as open source under the MIT License so that the community whose software is exposed to REAs can apply the same protections, and we close with the limits of the approach, stated plainly.
736 B
added to a production 380 MB GGUF with 290 tensors, whose every tensor byte stream re-loaded identical
Lab, measured
303 B
added to a WASM module, whose original bytes remain a strict prefix and which still validates
Lab, measured
1,440×
bloat a current counter-REA tool adds at default intensity: a 93-byte JS fixture grows to 133,951 bytes
Upstream, measured
12/12
independent virtual test lab items pass, including the item that confirms a spec-only stripper recovers the payload
Lab, measured
Contents
- 1. Introduction
- 2. Background: the counter-REA mechanism set
- 3. Threat model
- 4. The bloat problem, measured
- 5. Design: defense under a byte budget
- 6. The agent-team loop harness
- 7. Evaluation
- 8. Independent validation: the virtual test lab
- 9. What ThoxShield deliberately does not do
- 10. Limitations and future work
- 11. Conclusion
- References
- Artifact availability
Where the paper lives
- Zenodo record (DOI)
Version of record DOI 10.5281/zenodo.24146345 (concept DOI 10.5281/zenodo.24146344). The deposited file hash matches the PDF on this site.
- Read the paper (HTML)
The v1.1.2 paper, one standalone file
- Download the paper (PDF)
The v1.1.2 paper (PDF)
- Virtual test lab
Standalone evidence browser for Section 8: the reference readers, the preservation checks and the strip measurement behind the limitations
- ThoxShield on GitHub
The MIT-licensed tool (Rust, zero dependencies), its release binary, and the reproduction fixtures
Cite this paper
@techreport{thoxshield2026,
title = {ThoxShield: Bloat-Capped Counter-REA Defense for Local-First AI Artifacts},
author = {Ross, Craig and Xaypanya, Tommy},
institution = {THOX.ai LLC},
year = {2026},
doi = {10.5281/zenodo.24146345},
url = {https://doi.org/10.5281/zenodo.24146345},
note = {THOX.ai Research, technical report v1.1.2, preprint, not peer reviewed}
}Preprint, not peer reviewed. The shields described here are analyzer-budget tripwires and attribution canaries; a spec-only stripper recovers the payload, and the paper measures that limit rather than hiding it.
Your AI. Your Data. Your Rules.™