kth.sePublications KTH
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Verifiable Software Diversity
KTH, School of Electrical Engineering and Computer Science (EECS), Theoretical Computer Science.ORCID iD: 0000-0001-6988-3102
2026 (English)Doctoral thesis, comprehensive summary (Other academic)
Abstract [en]

Software diversity promises fault tolerance by replacing dependence on single software paths with populations of alternatives that can be compared, switched, or voted upon. Realizing this promise requires more than nominal variety: the alternatives must satisfy a common behavioral contract and exhibit useful failure separation under relevant conditions. In distributed deployments, diversity may also exist only in name when participants cannot demonstrate that the claimed variants were actually built or executed. The first problem demands empirical validation; the second demands verifiable provenance.

This thesis proposes a framework for verifiable software diversity built around an evidence chain. The chain consists of four links: evidence that distinct variants exist for a given specification; evidence that they are substitutable for a defined purpose; measurements of their failure relationships under relevant conditions; and provenance checks connecting the claimed variants to the artifacts actually produced and deployed. Each link supports a distinct claim and cannot stand in for the others. In particular, provenance does not prove correctness or reliability, while source-code diversity does not prove behavioral equivalence or failure independence.

The five included works develop methods for gathering and validating evidence at each link. They study naturally occurring diversity among blockchain clients and diversity generated by large language models and coding agents. Compilation, testing, equivalence checking, and diversity measurement determine whether candidate versions are substitutable. Coincident failures, failure correlations, and majority-vote behavior characterize failure separation. Trusted execution and zero-knowledge proofs make claims about software use and compilation independently checkable. The studies also examine the operational costs, trust assumptions, and incentives that determine deployment feasibility.

The results show that verifiable software diversity is feasible and useful, but its benefits are not free. Independently developed and generated variants can provide meaningful diversity, redundant execution can improve availability or reduce observed failures, and verifiable provenance can make claims about diverse software use independently checkable. However, these gains require additional resources for redundant execution, effort to generate and validate variants, and computation to produce and verify provenance evidence. With these trade-offs made explicit, verifiable software diversity offers a practical path toward software systems that are both more reliable and more auditable.

Abstract [sv]

Programvarudiversitet erbjuder feltolerans genom att ersätta beroendet av en enskild programvarulösning med en population av alternativ som kan jämföras och användas för växling eller majoritetsomröstning. För att infria detta löfte krävs mer än nominell variation: alternativen måste uppfylla ett gemensamt beteendekontrakt och uppvisa tillräckligt åtskilda felbeteenden under relevanta förhållanden. I distribuerade driftsättningar kan diversiteten dessutom vara skenbar om deltagarna inte kan visa att de uppgivna varianterna faktiskt har byggts eller körts. Det första problemet kräver empirisk validering; det andra kräver verifierbar proveniens.

Denna avhandling föreslår ett ramverk för verifierbar programvarudiversitet uppbyggt kring en evidenskedja. Kedjan består av fyra länkar: belägg för att skilda varianter existerar för en given specifikation; belägg för att de är utbytbara för ett definierat ändamål; mätningar av sambanden mellan deras fel under relevanta förhållanden; samt provenienskontroller som knyter de uppgivna varianterna till de artefakter som faktiskt har producerats och driftsatts. Varje länk underbygger ett eget påstående och kan inte ersätta de andra. Proveniens bevisar i synnerhet inte korrekthet eller tillförlitlighet, medan diversitet på källkodsnivå inte bevisar beteendeekvivalens eller feloberoende.

De fem ingående delarbetena utvecklar metoder för att samla in och validera belägg för varje länk. De studerar naturligt förekommande diversitet bland blockkedjeklienter och diversitet som genereras av stora språkmodeller och kodningsagenter. Kompilering, testning, ekvivalenskontroll och diversitetsmätning avgör om kandidatversioner är utbytbara. Sammanfallande fel, felkorrelationer och majoritetsomröstningars beteende beskriver separationen mellan felutfall. Betrodd exekvering och nollkunskapsbevis gör påståenden om programvaruanvändning och kompilering kontrollerbara oberoende av varandra. Studierna granskar även de driftskostnader, tillitsantaganden och incitament som avgör om metoderna kan införas.

Resultaten visar att verifierbar programvarudiversitet är genomförbar och användbar, men att fördelarna har ett pris. Oberoende utvecklade och genererade varianter kan ge meningsfull diversitet, redundant exekvering kan förbättra tillgängligheten eller minska antalet observerade fel, och verifierbar proveniens kan göra påståenden om användningen av olika programvaruvarianter oberoende kontrollerbara. Dessa vinster kräver dock ytterligare resurser för redundant exekvering, arbete med att generera och validera varianter samt beräkningsresurser för att producera och verifiera belägg för proveniens. Med dessa avvägningar tydliggjorda erbjuder verifierbar programvarudiversitet en praktisk väg mot programvarusystem som är både mer tillförlitliga och mer granskningsbara.

Place, publisher, year, edition, pages
Stockholm: KTH Royal Institute of Technology, 2026. , p. 71
Series
TRITA-EECS-AVL ; 2026:75
National Category
Computer and Information Sciences
Research subject
Computer Science
Identifiers
URN: urn:nbn:se:kth:diva-388451ISBN: 978-91-8106-692-0 (print)OAI: oai:DiVA.org:kth-388451DiVA, id: diva2:2101983
Public defence
2026-10-09, https://kth-se.zoom.us/j/64272582510, F3 Flodis, Lindstedtsvägen 26 & 28, Stockholm, 09:00 (English)
Opponent
Supervisors
Available from: 2026-09-18 Created: 2026-09-16 Last updated: 2026-10-19Bibliographically approved
List of papers
1. Highly Available Blockchain Nodes With N-Version Design
Open this publication in new window or tab >>Highly Available Blockchain Nodes With N-Version Design
Show others...
2024 (English)In: IEEE Transactions on Dependable and Secure Computing, ISSN 1545-5971, E-ISSN 1941-0018, Vol. 21, no 4, p. 4084-4097Article in journal (Refereed) Published
Abstract [en]

As all software, blockchain nodes are exposed to faults in their underlying execution stack. Unstable execution environments can disrupt the availability of blockchain nodes' interfaces, resulting in downtime for users. This paper introduces the concept of N-Version Blockchain nodes. This new type of node relies on simultaneous execution of different implementations of the same blockchain protocol, in the line of Avizienis' N-Version programming vision. We design and implement an N-Version blockchain node prototype in the context of Ethereum, called N-ETH. We show that N-ETH is able to mitigate the effects of unstable execution environments and significantly enhance availability under environment faults. To simulate unstable execution environments, we perform fault injection at the system-call level. Our results show that existing Ethereum node implementations behave asymmetrically under identical instability scenarios. N-ETH leverages this asymmetric behavior available in the diverse implementations of Ethereum nodes to provide increased availability, even under our most aggressive fault-injection strategies. We are the first to validate the relevance of N-Version design in the domain of blockchain infrastructure. From an industrial perspective, our results are of utmost importance for businesses operating blockchain nodes, including Google, ConsenSys, and many other major blockchain companies.

Place, publisher, year, edition, pages
Institute of Electrical and Electronics Engineers (IEEE), 2024
Keywords
availability, blockchain, Blockchains, Computer architecture, N-Version design, Peer-to-peer computing, Programming, Prototypes, Software, Time factors
National Category
Computer Sciences
Identifiers
urn:nbn:se:kth:diva-349884 (URN)10.1109/TDSC.2023.3346195 (DOI)001270317500010 ()2-s2.0-85181578677 (Scopus ID)
Funder
Swedish Foundation for Strategic Research, ChainsWallenberg AI, Autonomous Systems and Software Program (WASP)
Note

QC 20240704

Available from: 2024-07-04 Created: 2024-07-04 Last updated: 2026-09-16Bibliographically approved
2. Galápagos: Automated N-Version Programming with LLMs
Open this publication in new window or tab >>Galápagos: Automated N-Version Programming with LLMs
Show others...
2026 (English)In: ACM Transactions on Software Engineering and Methodology, ISSN 1049-331X, E-ISSN 1557-7392, Vol. 35, no 8, p. 1-29, article id 224Article in journal (Refereed) Published
Abstract [en]

N-Version Programming is a well-known methodology for developing fault-tolerant systems. It achieves fault detection and correction at runtime by adding diverse redundancy into programs, minimizing fault mode overlap between redundant program variants. In this work, we propose the automated generation of program variants using large language models. We design, develop, and evaluate Galápagos: a tool for generating program variants using LLMs, validating their correctness and equivalence, and using them to assemble N-Version binaries. We evaluate Galápagos by creating N-Version components of real-world C code. Our original results show that Galápagos can produce program variants that are proven to be functionally equivalent, even when the variants are written in a different programming language. Our systematic diversity measurement indicates that functionally equivalent variants produced by Galápagos are statically different after compilation and present diverging internal behavior at runtime. We demonstrate that the variants produced by Galápagos can protect C code against real miscompilation bugs which affect the Clang compiler. Overall, our article shows that producing N-Version software can be drastically automated by advanced usage of practical formal verification and generative language models.

Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2026
Keywords
Large Language Models, N-Version Programming
National Category
Computer Sciences Software Engineering Embedded Systems
Identifiers
urn:nbn:se:kth:diva-386920 (URN)10.1145/3785363 (DOI)2-s2.0-105045986822 (Scopus ID)
Note

QC 20260811

Available from: 2026-08-11 Created: 2026-08-11 Last updated: 2026-09-18Bibliographically approved
3. Proving and Rewarding Client Diversity to Strengthen Resilience of Blockchain Networks
Open this publication in new window or tab >>Proving and Rewarding Client Diversity to Strengthen Resilience of Blockchain Networks
2026 (English)In: Distributed Ledger Technologies: Research and Practice, ISSN 2769-6480, Vol. 5, no 4, article id 48Article in journal (Refereed) Published
Abstract [en]

Client diversity is a cornerstone of blockchain resilience, yet most networks suffer from a dangerously skewed distribution of client implementations. This monoculture exposes the network to very risky scenarios, such as massive financial losses in the event of a majority client failure.

In this article, we present a novel framework that combines verifiable execution and economic incentives to provably identify and reward the use of minority clients, thereby promoting a healthier, more robust ecosystem. Our approach leverages state-of-the-art verifiable computation (zkVMs and TEEs) to generate cryptographic proofs of client execution, which are then verified on-chain.

We design and implement an end-to-end prototype of verifiable client diversity in the context of Ethereum by modifying the popular Lighthouse client and by deploying our novel diversity-aware reward protocol. Through comprehensive experiments, we quantify the practicality of our approach, from overheads of proof production and verification to the effectiveness of the incentive mechanism.

This work demonstrates, for the first time, a practical and economically viable path to encourage and ensure provable client diversity in blockchain networks. Our findings inform the design of future protocols that seek to maximize the resilience of decentralized systems.

Place, publisher, year, edition, pages
Association for Computing Machinery (ACM), 2026
Keywords
Blockchain, Software Diversity, Resilience
National Category
Computer and Information Sciences
Research subject
Computer Science
Identifiers
urn:nbn:se:kth:diva-388446 (URN)10.1145/3773288 (DOI)
Funder
Knut and Alice Wallenberg Foundation
Note

QC 20260917

Available from: 2026-09-16 Created: 2026-09-16 Last updated: 2026-09-17Bibliographically approved
4. Verifiable Provenance of Software Artifacts with Zero-Knowledge Compilation
Open this publication in new window or tab >>Verifiable Provenance of Software Artifacts with Zero-Knowledge Compilation
(English)Manuscript (preprint) (Other academic)
National Category
Computer and Information Sciences
Research subject
Computer Science
Identifiers
urn:nbn:se:kth:diva-388449 (URN)
Note

QC 20260918

Available from: 2026-09-16 Created: 2026-09-16 Last updated: 2026-09-18Bibliographically approved
5. N-Version Programming with Coding Agents
Open this publication in new window or tab >>N-Version Programming with Coding Agents
(English)Manuscript (preprint) (Other academic)
National Category
Computer and Information Sciences
Research subject
Computer Science
Identifiers
urn:nbn:se:kth:diva-388450 (URN)
Note

QC 20260918

Available from: 2026-09-16 Created: 2026-09-16 Last updated: 2026-09-18Bibliographically approved

Open Access in DiVA

Kappa(1691 kB)105 downloads
File information
File name FULLTEXT01.pdfFile size 1691 kBChecksum SHA-512
0e0b2e5950e259e4094331ca03c7505de7c8073f10edeb633c16eb2d4830f419cc8179e192b114f922a9dfc02f238d88c17428c9952681c9b28af8b32fc4135c
Type fulltextMimetype application/pdf

Authority records

Ron Arteaga, Javier

Search in DiVA

By author/editor
Ron Arteaga, Javier
By organisation
Theoretical Computer Science
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 105 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 1401 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf