A MULTI-TIER VERIFICATION METHOD FOR LLM-GENERATED CODE IN SANDBOXED WEBASSEMBLY ENVIRONMENTS WITH AI-AUGMENTED ANALYSIS
Мykolaienko V. · Zenodo (CERN European Organization for Nuclear Research) · 2026
A verification method is proposed for source artefacts produced by large language models. The method combines: (i) compilation of every candidate module to the wasm32-unknown-unknown WebAssembly target with an explicit host-supplied capability set; (ii) a multi-tier static analysis pipeline operating over the abstract syntax tree, control-flow graph, data-flow graph and Wasm intermediate representation; (iii) AI-augmented semantic analysis based on a transformer encoder for intent matching, a graph attention network over the unified control/data-flow graph, and an isolation-forest anomaly detector over runtime execution traces; and (iv) deterministic dynamic execution inside a Wasmtime sandbox with fuel metering, epoch-based interruption and capability-restricted host imports. The method enforces architectural and security policies of the host business system on a per-module basis and provides a structured verdict that drives a closed feedback loop back into the generator until the module satisfies both functional and security requirements. Empirical evaluation on a synthetic corpus of 12,800 modules shows that the aggregated verdict reaches F1 = 0.95, compared with 0.58 for static rules alone.
Cited by 0 works. doi:10.5281/zenodo.20457103