Code Monkey home page Code Monkey logo

proscript-messaging's Introduction

Automated Verification for Secure Messaging Protocols and their Implementations: A Symbolic and Computational Approach

Supporting Materials

WARNING: EXPERIMENTAL SOFTWARE

PS2PV, the ProScript-to-ProVerif compiler, is currently in a highly experimental implementation state. Bugs are numerous and to be expected.

Overview

This repository contains supporting materials for our paper, "Automated Verification for Secure Messaging Protocols and their Implementations: A Symbolic and Computational Approach":

  • cv contains CryptoVerif models discussed in the paper.
  • The remaining directories can be used to generate actual ProVerif models from actual ProScript code, that can then be evaluated for queries.
  • paper-longversion.pdf is the long version of our paper with some additional details.

The messaging protocol implementation included in this repository is exactly the same code that is used by the Cryptocat secure messaging software in production.

Instructions

cd ps2pv
make
cd ..
make property-messages-principals-direction

This will generate a model by translating whatever is in ps/sp.js and adding the appropriate top-level process for the queries.

  • Valid values for property: secrecy, authenticity, forwardsecrecy, futuresecrecy, indistinguishability
  • Valid values for messages: 1, 3 (or 2 which indicates a "single-flight scenario" for forward secrecy (see paper)).
  • Valid values for principals: AB (Alice and Bob), ABM (Alice, Bob and compromised Mallory)
  • Valid values for direction: oneway, twoway

Note: Not all combinations are current available. ls tl for current ones.

Benchmarks

On a reasonably fast Intel Xeon machine, these were the verification times we obtained for ProVerif:

  • authenticity-1-abm-oneway: 00h. 24m. 51s.
  • authenticity-1-abm-twoway: 26h. 10m. 08s.
  • authenticity-1-ab-oneway: 00h. 04m. 07s.
  • authenticity-1-ab-twoway: 00h. 09m. 25s.
  • forwardsecrecy-1-ab-oneway: 00h. 06m. 14s.
  • forwardsecrecy-2-ab-oneway: 00h. 14m. 10s.
  • forwardsecrecy-3-ab-oneway: 00h. 46m. 14s.
  • futuresecrecy-3-ab-oneway.pv: 00h. 44m. 25s.
  • indistinguishability-1-ab-oneway: 01h. 51m. 17s.
  • kci-1-a-oneway: 00h. 17m. 35s.
  • kci-1-b-oneway: 00h. 05m. 59s.
  • secrecy-1-ab-oneway: 00h. 03m. 30s.
  • secrecy-1-ab-twoway: 00h. 07m. 06s.

Authors

Nadim Kobeissi, Karthikeyan Bhargavan and Bruno Blanchet. Special thanks and acknowledgments to Antoine Delignat-Lavaud.

proscript-messaging's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.