GC-Assisted Runtime Integrity Verification for Heap-Resident Bytecode in an FPGA-Based Virtual Machine
Dynamic-language virtual machines store compiled functions as garbage-collected heap objects, yet embedded and field-programmable gate array (FPGA) integrity mechanisms check code only at load time or ignore whether memory holds live code. picoStella, a proof-of-concept FPGA-targeted virtual machine, reauthenticates live code in every garbage-collection pass: after marking, a verification pass uses the mark bits to re-hash each reachable function with SHA3-256 (Secure Hash Algorithm 3) against a write-once trusted digest. The design passed 36 testbenches with identical results across two simulators, was synthesized for a Cyclone IV E FPGA, and its verifier was tested on a DE2-115 board. A closed-form model predicts per-function cost exactly; verification adds 167–8914% to the mark-sweep cost for up to eight 256-byte functions. Reusing the collector’s reachability saves 0.40% over a verifier with its own traversal, but up to 83% over a liveness-oblivious scrubber. Detection takes 42–314 cycles, all 5770 injected bytecode faults were detected, and board-level debug-register injection reproduced these latencies. On-chip clock glitching defeated detection in 4.5% of corrupted trials. Register-level soft-error injection shows SHA3-state upsets fail safe, whereas control or metadata upsets can hang a pass or skip a function. The time-of-check-to-time-of-use window is narrowed, not closed; the reset-cleared lock is not a root of trust; larger-scale costs are projections.
Authors
- Esad Kadušić (ORCID: https://orcid.org/0000-0002-0083-1387)
- Christoph Ruland (ORCID: https://orcid.org/0000-0002-4518-8735)
- Elmin Marevac (ORCID: https://orcid.org/0009-0002-0294-4913)
- Nataša Živić (ORCID: https://orcid.org/0000-0002-1898-201X)
Institutions
- University of Sarajevo (BA)
- Leipzig University of Applied Sciences (DE)
- University of Zenica (BA)
- University of Siegen (DE)
Publication Details
- Journal
- Electronics
- Published
- 2026-10-30
- DOI
- https://doi.org/10.3390/electronics15215032
- Primary Topic
- Security and Verification in Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00