securityprotocolimplementations
Artifact for the paper "A Generic Methodology for the Modular Verification of Security Protocol Implementations"
https://github.com/viperproject/securityprotocolimplementations
Science Score: 62.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 8 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
✓Institutional organization owner
Organization viperproject has institutional domain (viper.ethz.ch) -
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.3%) to scientific vocabulary
Repository
Artifact for the paper "A Generic Methodology for the Modular Verification of Security Protocol Implementations"
Basic Info
Statistics
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
A Generic Methodology for the Modular Verification of Security Protocol Implementations
This is the artifact for the paper "A Generic Methodology for the Modular Verification of Security Protocol Implementations", published at ACM CCS '23 [published version] [extended version].
This artifact has been archived on Zenodo (DOI: 10.5281/zenodo.8330913). The paper can be cited as follows (for BibTeX):
BibTex
@InProceedings{ArquintSchwerhoffMehtaMueller23,
author = {Arquint, Linard and Schwerhoff, Malte and Mehta, Vaibhav and M\"uller, Peter},
title = {A Generic Methodology for the Modular Verification of Security Protocol Implementations},
year = {2023},
isbn = {9798400700507},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
booktitle = {Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security},
pages = {1377-1391},
numpages = {15},
keywords = {protocol implementation verification, symbolic security, separation logic, automated verification, injective agreement, forward secrecy},
location = {Copenhagen, Denmark},
series = {CCS '23},
doi = {10.1145/3576915.3623105},
url = {https://doi.org/10.1145/3576915.3623105},
urltext = {Publisher},
url1 = {https://pm.inf.ethz.ch/publications/ArquintSchwerhoffMehtaMueller23.pdf},
url1text = {PDF},
abstract = {Security protocols are essential building blocks of modern IT systems. Subtle flaws in their design or implementation may compromise the security of entire systems. It is, thus, important to prove the absence of such flaws through formal verification. Much existing work focuses on the verification of protocol *models*, which is not sufficient to show that their *implementations* are actually secure. Verification techniques for protocol implementations (e.g., via code generation or model extraction) typically impose severe restrictions on the used programming language and code design, which may lead to sub-optimal implementations. In this paper, we present a methodology for the modular verification of strong security properties directly on the level of the protocol implementations. Our methodology leverages state-of-the-art verification logics and tools to support a wide range of implementations and programming languages. We demonstrate its effectiveness by verifying memory safety and security of Go implementations of the Needham-Schroeder-Lowe, Diffie-Hellman key exchange, and WireGuard protocols, including forward secrecy and injective agreement for WireGuard. We also show that our methodology is agnostic to a particular language or program verifier with a prototype implementation for C.}
}
Structure
ReusableVerificationLibrarycontains the Gobra sources that constitute the Reusable Verification Librarycasestudies/nslcontains the sources of the NSL case study. The implementation consists of separate packages for the initiator, initiator2 (using a slightly different code structure), and responder role. The main package sets up communication via Go channels and executes the two protocol roles as threads (using Goroutines)casestudies/dhcontains the sources of the DH case study, which follows a similar structure as the NSL case study and consists of packages for the initiator and responder roles.casestudies/wireguardcontains the sources of the WireGuard case study. The role implementations are mainly located in theinitiatorandresponderpackages. The trace invariants are defined inverification/commonandverification/labellemmacontains the WireGuard-specific lemmas and their proofs.VeriFastPrototypecontains the C sources of our prototype for VeriFast. The prototype demonstrates that (1) a concurrent data structure can be built on top of VeriFast's built-in mutex offering the same local snapshots as our Reusable Verification Library, (2) a parameterized trace invariant in the form of a separation logic predicate can be defined, and (3) several lemmas, such as the uniqueness of events or the secrecy lemma, can be proven using the trace invariant. Furthermore, implementations in C of the NSL initiator & responder demonstrate that we can instantiate and use the Reusable Verification Library for VeriFast to prove secrecy and injective agreement, i.e., the same security properties as for the implementation in Go using Gobra.
Artifact Docker image
The artifact docker image includes both reusable verification libraries and all case studies. Furthermore, it contains all dependencies to compile and verify the libraries and case studies.
Set-up
We require an installation of Docker. The following steps have been tested on macOS 14.0 with the latest version of Docker Desktop, which is at time of writing 4.24.2 and comes with version 24.0.6 of the Docker CLI.
Installation
- We recommend to adapt the Docker settings to provide sufficient resources to Docker. We have tested our artifact on a 2019 16-inch MacBook Pro with 2.3 GHz 8-Core Intel Core i9 running macOS Sonoma 14.0 and configured Docker to allocate up 16 cores (which includes 8 virtual cores), 6 GB of memory, and 1 GB of swap memory. In case you are using an ARM-based Mac, enable the option "Use Rosetta for x86/amd64 emulation on Apple Silicon" in the Docker Desktop Settings, which is available on macOS 13 or newer. Measurements on an Apple M1 Pro Silicon have shown that performing this additional emulation results in 20-25\% longer verification times compared to those reported in the remainder of this artifact appendix.
- Navigate to a convenient folder, in which directories can be created for the purpose of running this artifact.
- Open a shell at this folder location.
- Create two new folders named
Go-syncandC-syncby executing:mkdir Go-sync && mkdir C-sync - Download and start the Docker image containing our artifact by executing the following command:
docker run -it --platform linux/amd64 --volume $PWD/C-sync:/gobra/C --volume $PWD/Go-sync:/gobra/Go ghcr.io/viperproject/securityprotocolimplementations-artifact:latest> ⚠️ > Note that this command results in the Docker container writing files to the two foldersGo-syncandC-syncon your host machine. > Thus, make sure that these folders are indeed empty and previous modifications that you have made to files in these folders have been saved elsewhere! - The Docker command above not only starts a Docker container and provides you with a shell within this container but it also synchronizes all files constituting our artifact with the two folders
Go-syncandC-syncon your host machine. I.e., the local foldersGo-syncandC-syncare synchronized with/gobra/Goand/gobra/Cwithin the Docker container, respectively.
Usage
The Docker image provides several ready-to-use scripts in the /gobra directory:
- verify-library.sh: Verifies the reusable verification library in Go using the Gobra program verifier.
- verify-c-library.sh: Verifies the prototype of the reusable verification library in C using the VeriFast program verifier.
- verify-nsl.sh: Verifies the Needham-Schroeder-Lowe (NSL) case study in Go using Gobra, which includes verifying the initiator and responder implementations, protocol-specific lemmas, and the trace invariant.
- verify-nsl-alternative.sh: Verifies an alternative implementation of the NSL initiator that is composed of several methods to demonstrate that our methodology is agnostic of the structure of implementations.
- verify-dh.sh: Verifies the signed Diffie-Hellman (DH) case study in Go using Gobra, which includes verifying the initiator and responder implementations, protocol-specific lemmas, and the trace invariant.
- verify-wireguard.sh: Verifies the WireGuard VPN protocol case study using Gobra, which includes verifying the initiator and responder implementations, protocol-specific lemmas, and the trace invariant.
- verify-c-nsl.sh: Verifies the Needham-Schroeder-Lowe (NSL) case study in C using VeriFast, which includes verifying the initiator and responder implementations, protocol-specific lemmas, and the trace invariant.
- test-nsl.sh: Compiles and executes the NSL case study in Go and prints the random numbers obtained by the initiator and responder.
- test-dh.sh: Compiles and executes the DH case study in Go and prints the shared DH secrets computed by the initiator and responder.
- test-wireguard.sh: Compiles and executes the WireGuard case study in Go, which establishes a VPN connection and exchanges some ASCII messages.
- test-c-nsl.sh: Compiles and executes the NSL case study in C and prints the random numbers obtained by the initiator and responder.
Maintainer: Linard Arquint
Owner
- Name: Viper Project
- Login: viperproject
- Kind: organization
- Location: ETH Zurich
- Website: viper.ethz.ch
- Repositories: 29
- Profile: https://github.com/viperproject
Verification Infrastructure for Permission-based Reasoning
Citation (CITATION.bib)
@InProceedings{ArquintSchwerhoffMehtaMueller23,
author = {Arquint, Linard and Schwerhoff, Malte and Mehta, Vaibhav and M\"uller, Peter},
title = {A Generic Methodology for the Modular Verification of Security Protocol Implementations},
year = {2023},
isbn = {9798400700507},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
booktitle = {Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security},
pages = {1377-1391},
numpages = {15},
keywords = {protocol implementation verification, symbolic security, separation logic, automated verification, injective agreement, forward secrecy},
location = {Copenhagen, Denmark},
series = {CCS '23},
doi = {10.1145/3576915.3623105},
url = {https://doi.org/10.1145/3576915.3623105},
urltext = {Publisher},
url1 = {https://pm.inf.ethz.ch/publications/ArquintSchwerhoffMehtaMueller23.pdf},
url1text = {PDF},
abstract = {Security protocols are essential building blocks of modern IT systems. Subtle flaws in their design or implementation may compromise the security of entire systems. It is, thus, important to prove the absence of such flaws through formal verification. Much existing work focuses on the verification of protocol *models*, which is not sufficient to show that their *implementations* are actually secure. Verification techniques for protocol implementations (e.g., via code generation or model extraction) typically impose severe restrictions on the used programming language and code design, which may lead to sub-optimal implementations. In this paper, we present a methodology for the modular verification of strong security properties directly on the level of the protocol implementations. Our methodology leverages state-of-the-art verification logics and tools to support a wide range of implementations and programming languages. We demonstrate its effectiveness by verifying memory safety and security of Go implementations of the Needham-Schroeder-Lowe, Diffie-Hellman key exchange, and WireGuard protocols, including forward secrecy and injective agreement for WireGuard. We also show that our methodology is agnostic to a particular language or program verifier with a prototype implementation for C.}
}
GitHub Events
Total
- Watch event: 3
Last Year
- Watch event: 3
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- actions/checkout v3 composite
- actions/checkout v3 composite
- actions/checkout v3 composite
- actions/checkout v3 composite
- actions/checkout v3 composite
- docker/build-push-action v4 composite
- docker/login-action v2 composite
- docker/setup-buildx-action v2 composite
- ghcr.io/viperproject/gobra@sha256 0e7419455a3648d006e8a9957380e94c1a8e52d2d4b1ce2425af852dc275fb29 build
- golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
- golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
- golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
- golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
- golang.org/x/sys v0.0.0-20210423082822-04245dca01da
- golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
- golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
- golang.org/x/text v0.3.6
- golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
- github.com/viperproject/ReusableProtocolVerificationLibrary v0.0.0-20230905164411-65b2e109f4bc
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
- github.com/viperproject/ReusableProtocolVerificationLibrary v0.0.0-20230905164411-65b2e109f4bc
- golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
- golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
- golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
- golang.org/x/sys v0.0.0-20210423082822-04245dca01da
- golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
- golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
- golang.org/x/text v0.3.6
- golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
- github.com/viperproject/ReusableProtocolVerificationLibrary v0.0.0-20230905164411-65b2e109f4bc
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
- github.com/viperproject/ReusableProtocolVerificationLibrary v0.0.0-20230905164411-65b2e109f4bc
- golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
- golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
- golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
- golang.org/x/sys v0.0.0-20210423082822-04245dca01da
- golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
- golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
- golang.org/x/text v0.3.6
- golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
- github.com/viperproject/ReusableProtocolVerificationLibrary v0.0.0-20230905164411-65b2e109f4bc
- golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
- golang.org/x/net v0.0.0-20220812174116-3211cb980234
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
- golang.zx2c4.com/wireguard v0.0.0-20220407013110-ef5c587f782d
- github.com/viperproject/ReusableProtocolVerificationLibrary v0.0.0-20230905164411-65b2e109f4bc
- golang.org/x/crypto v0.0.0-20220315160706-3147a52a75dd
- golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
- golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2
- golang.org/x/net v0.0.0-20220225172249-27dd8689420f
- golang.org/x/net v0.0.0-20220812174116-3211cb980234
- golang.org/x/sys v0.0.0-20201119102817-f84b799fce68
- golang.org/x/sys v0.0.0-20210423082822-04245dca01da
- golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
- golang.org/x/sys v0.0.0-20211103235746-7861aae1554b
- golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e
- golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86
- golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10
- golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab
- golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
- golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
- golang.org/x/text v0.3.6
- golang.org/x/text v0.3.7
- golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
- golang.zx2c4.com/wintun v0.0.0-20211104114900-415007cec224
- golang.zx2c4.com/wireguard v0.0.0-20220407013110-ef5c587f782d
- golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
- golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b
- golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
- golang.zx2c4.com/wireguard v0.0.0-20210306154438-593658d9755b
- gvisor.dev/gvisor v0.0.0-20210306005637-a64c3a1b5a9f
- 596 dependencies