{"contenttype":"result","language":"en","availableLanguages":"en","rcn":"1298838","id":"101040088_PSHORIZON","title":"Periodic Reporting for period 1 - UniversalContracts (Formalizing, Verifying and Applying ISA Security Guarantees as Universal Contracts)","teaser":"The Instruction Set Architecture (ISA) is the interface that processor hardware offers to software developers. Current ISAs do not explicitly specify the security properties guaranteed by that interface, so that, for example, recent severe micro-architectural side-channel...","description":"periodic","summary":"The Instruction Set Architecture (ISA) is the interface that processor hardware offers to software developers. Current ISAs do not explicitly specify the security properties guaranteed by that interface, so that, for example, recent severe micro-architectural side-channel vulnerabilities like Spectre did not even violate the specifications. This project proposes a fundamentally new approach to specify ISA security properties by using what we call universal contracts. These are formal contracts in a compositional program logic that automatically hold for arbitrary code. Such contracts capture ISA-enforced upper bounds on the effects of arbitrary (even attacker-controlled) software. While this approach is widely different from traditional specifications, the approach looks extremely promising: universal contracts can be applied to general security primitives, mechanically verified against the ISA\u0027s operational semantics and they make it possible to obtain full-system security proofs by manually verifying only the trusted code of a sytem.\nThe high-level goals of this project are to contribute reusable techniques and tools for applying universal contracts in realistic ISAs. Specifically, the goals are to (1) design, prove and evaluate universal contracts for ISAs with state-of-practice security primitives, (2) develop semi-automation machinery for verifying universal contracts of ISAs, (3) extend universal contracts to deal with semantic complications like concurrency or micro-architectural side-channels and (4) design, implement and evaluate techniques which facilitate the construction of trusted software that relies on universal contracts, particularly assembly-level reasoning support and secure compilers. If successful, the project will fundamentally improve the security foundations of all software-based systems, by (1) clearly dividing the security responsibilities between hardware and software developers and (2) enabling scalable, rigorous, full-system security proofs.","workPerformed":"Since the start of this project two years ago, we have worked on several fronts towards the different goals of the project.\nOn the one hand, we have invested significantly in the technical infrastructure and tools for verifying universal contracts of ISAs.\nParticularly, the Katamaran symbolic-execution-based verifier for Sail has been significantly improved and its foundations have been strengthened and validated.\nNew techniques based on a domain-specific modal program logic have been developed (initially in the simpler context of verified type inference, but subsequently ported to the Katamaran verifier) for facilitating and automating Katamaran\u0027s soundness proof.\nWe have also invested in the construction of a new backend for Sail that (mostly-)automatically translates functional ISA specs in Sail to deeply-embedded \u03bcSail code that can be verified using Katamaran and this work is reaching completion.\nFurthermore, we have demonstrated and validated the use of universal contracts for formalizing, verifying and applying ISA security guarantees by applying it to two different ISAs: RISC-V PMP and MinimalCaps (modeled after CHERI-RISC-V).\nWe have also started extending Katamaran with support for relational verification, which will significantly enhance its capabilities for verifying confidentiality properties but also for capturing ISA architectural security guarantees that constrain micro-architectural side-channels.\nFinally, in the context of the Cerise program logic for a minimal capability machine, we are exploring, with our collaborators, the definition of universal contracts that capture the guarantees of trusted execution primitives, as well as revocation primitives like local capabilities.","finalResults":"Our use of Katamaran and universal contracts to formalize, verify and apply the security guarantees of RISC-V PMP as well as capability machine ISAs, is the first general methodology that has been demonstrated to combine support for verification semi-automation and complicated higher-order security primitives like capabilities.\nAdditionally, Katamaran is currently the most advanced foundationally-verified program verifier and its internal use of Kripke-indexed monadic computations and domain-specific modal program logics is highly innovative.\nWe also expect that these ideas are more broadly applicable in building verified program verifiers; we have already demonstrated this for verifying type inference engines and we hope to demonstrate this broad applicability further in the future.","periodNumber":"1","periodFrom":"2022-09-01","periodTo":"2025-02-28","reportTypeDescription":"Periodic Reporting for period 1","identifiers":{"reportId":"394003"},"sourceUpdateDate":"2025-05-12 12:20:42","contentCreationDate":"2025-05-14 09:09:42","contentUpdateDate":"2025-05-12 12:20:42","lastUpdateDate":"2025-07-15 17:20:30","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"pubsum","title":"Report Summary","description":"Result: Publishable summary (FP7 SESAM) and Summary for publication (H2020 SyGMa)","displayCode":"\/Report Summary","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"en","rcn":"238114","id":"101040088","acronym":"UniversalContracts","title":"Formalizing, Verifying and Applying ISA Security Guarantees as Universal Contracts","relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"project","title":"Project","description":"Project factsheets","displayCode":"\/Project","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"\/23\/47\/307","title":"software","displayCode":"\/natural sciences\/computer and information sciences\/software","attributes":{"classification":"euroSciVoc","type":"isInFieldOfScience"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"climate","title":"Climate action","description":"This tracker monitors the Horizon Europe\u2019s financial contribution to both mitigating climate change (e.g., contributions to the reduction of greenhouse gas emissions) and adapting to climate change by building resilience (e.g., regarding floods, droughts, spatial planning and better governance, adaptation to changing climate in value chains, etc.).","displayCode":"\/Climate action","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"biodiversity","title":"Biodiversity","description":"This tracker monitors the Horizon Europe\u2019s financial contribution to Europe\u2019s biodiversity\u2019s path to recovery including species protection, ecosystem conservation, and habitat rehabilitation, all essential for resilience in climate adaptation and addressing ecosystem services but also environmental crime and the health-environment connection.","displayCode":"\/Biodiversity","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"digitalAgenda","title":"Digital agenda","description":"This tracker monitors Horizon Europe\u2019s financial contribution to the development of digital technologies and the digitisation of the economy and society (known as \u2018Digital transition\u2019).","displayCode":"\/Digital agenda","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"cleanAir","title":"Clean air","description":"This tracker monitors the Horizon Europe\u2019s financial contribution to the clean air policy (National Emission Ceiling Directive) aiming to improve ambient air quality and tackle air pollution, to protect the environment and human health.","displayCode":"\/Clean air","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"ai","title":"Artificial intelligence","description":"This tracker monitors Horizon Europe\u2019s financial contribution to the development and deployment of AI-based technologies and solutions. Projects that develop AI-tools as part of their research method are included","displayCode":"\/Artificial intelligence","attributes":{"weight":"0","classification":"policyPriorities","type":"marker"}},{"language":"en","availableLanguages":"en","code":"HORIZON-ERC","title":"HORIZON ERC Grants","description":"HORIZON ERC Grants","displayCode":"\/HORIZON ERC Grants","attributes":{"classification":"projectFundingSchemeCategory","type":"relatedProjectFundingSchemeCategory"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}],"associations":[{"availableLanguages":"en","rcn":"705727","id":"HORIZON.1.1","code":"HORIZON.1.1","frameworkProgramme":"HORIZON","pga":"HORIZON.1.1","title":"European Research Council (ERC)","parent":{"rcn":"705726\/705725","code":"HORIZON.1\/HORIZON"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"legalbasis","title":"Legal Basis","description":"Programme: Legal basis for research funding","displayCode":"\/Legal Basis","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedLegalBasis","uniqueProgrammePart":"true"}},{"availableLanguages":"en","rcn":"705885","id":"HORIZON_ERC-2021-STG","code":"ERC-2021-STG","frameworkProgramme":"HORIZON","title":"ERC STARTING GRANTS","parent":{"rcn":"20300","code":"HORIZON-Topics"},"relations":{"categories":[{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"topic","title":"Topic","description":"Programme: Part of the Commission work programme implementing legal basis","displayCode":"\/Topic","attributes":{"classification":"collection","type":"belongsTo"}},{"language":"en","availableLanguages":"de,en,es,fr,it,pl","code":"corda","title":"CORDA","description":"RTD research data warehouse","displayCode":"\/CORDA","attributes":{"classification":"source","type":"isProvidedBy"}}]},"contenttype":"programme","attributes":{"source":"corda","type":"relatedTopic"}}]},"contenttype":"project","attributes":{"source":"corda","type":"relatedProject"}}]},"modelVersion":"132","icaVersion":"20.0.0-48f81e07"}