Automated Verification for Secure Messaging Protocols and Their

Total Page:16

File Type:pdf, Size:1020Kb

Automated Verification for Secure Messaging Protocols and Their Automated Verification for Secure Messaging Protocols and Their Implementations: A Symbolic and Computational Approach Nadim Kobeissi, Karthikeyan Bhargavan, Bruno Blanchet To cite this version: Nadim Kobeissi, Karthikeyan Bhargavan, Bruno Blanchet. Automated Verification for Secure Mes- saging Protocols and Their Implementations: A Symbolic and Computational Approach. 2nd IEEE European Symposium on Security and Privacy , Apr 2017, Paris, France. pp.435 - 450, 10.1109/Eu- roSP.2017.38. hal-01575923 HAL Id: hal-01575923 https://hal.inria.fr/hal-01575923 Submitted on 21 Aug 2017 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Automated Verification for Secure Messaging Protocols and their Implementations: A Symbolic and Computational Approach Nadim Kobeissi Karthikeyan Bhargavan Bruno Blanchet INRIA Paris INRIA Paris INRIA Paris Abstract—Many popular web applications incorporate end-to- for application-specific messaging patterns and deployment end secure messaging protocols, which seek to ensure that constraints. Such custom protocols deserve close scrutiny, messages sent between users are kept confidential and authen- but their formal security analysis faces several challenges. ticated, even if the web application’s servers are broken into First, web applications often evolve incrementally in an or otherwise compelled into releasing all their data. Protocols ad hoc manner, so the embedded cryptographic protocol that promise such strong security guarantees should be held up is only ever fully documented in source code. Even when to rigorous analysis, since protocol flaws and implementations protocol designers or security researchers take the time to bugs can easily lead to real-world attacks. create a clear specification or formal model for the protocol, We propose a novel methodology that allows protocol these documents are typically incomplete and quickly go designers, implementers, and security analysts to collabora- out-of-date. Finally, even if the protocol itself is proved to tively verify a protocol using automated tools. The protocol be secure, bugs in its implementation can often bypass the is implemented in ProScript, a new domain-specific language intended security guarantees. Hence, it is not only important that is designed for writing cryptographic protocol code that to extract a model of the protocol from the source code and can both be executed within JavaScript programs and auto- analyze its security, it is essential to do so in a way that the matically translated to a readable model in the applied pi model can evolve as the application is modified. calculus. This model can then be analyzed symbolically using In this paper, we study the protocol underlying the ProVerif to find attacks in a variety of threat models. The Signal messaging application developed by Open Whisper model can also be used as the basis of a computational proof Systems. Variants of this protocol have also been deployed using CryptoVerif, which reduces the security of the protocol within WhatsApp, Facebook Messenger, Viber, and many other popular applications, reaching over a billion devices. to standard cryptographic assumptions. If ProVerif finds an The protocol has been known by other names in the past, attack, or if the CryptoVerif proof reveals a weakness, the including Axolotl, TextSecure (versions 1, 2, and 3), and protocol designer modifies the ProScript protocol code and it continues to evolve within the Signal application under regenerates the model to enable a new analysis. the name Signal Protocol. Until recently, the main docu- We demonstrate our methodology by implementing and mentation for the protocol was its source code, but new analyzing a variant of the popular Signal Protocol with only specifications for key components of the protocol have now minor differences. We use ProVerif and CryptoVerif to find been publicly released.1 new and previously-known weaknesses in the protocol and Signal Protocol has ambitious security goals; it enables suggest practical countermeasures. Our ProScript protocol asynchronous (zero round-trip) authenticated messaging be- code is incorporated within the current release of Cryptocat, tween users with end-to-end confidentiality. Each message is a desktop secure messenger application written in JavaScript. kept secret even if the messaging server is compromised, and Our results indicate that, with disciplined programming and even if the user’s long term keys are compromised, as long some verification expertise, the systematic analysis of complex as these keys are not used by the attacker before the target cryptographic web applications is now becoming practical. message is sent (forward and future secrecy.) To achieve these goals, Signal uses a novel authenticated key exchange 1. Introduction protocol (based on mixing multiple Diffie-Hellman shared secrets) and a key refresh mechanism (called double ratch- Designing new cryptographic protocols is highly error- eting). The design of these core mechanisms in TextSecure prone; even well-studied protocols, such as Transport Layer version 2 was cryptographically analyzed in [2] but the Security (TLS), have been shown to contain serious protocol protocol has evolved since then and the security of Signal as flaws found years after their deployment (see e.g. [1]). it is currently implemented and deployed remains an open Despite these dangers, modern web applications often em- question. bed custom cryptographic protocols that evolve with each In fact, although they all implement the same core release. The design goal of these protocols is typically protocol, different implementations of the Signal protocol to protect user data as it is exchanged over the web and synchronised across devices, while optimizing performance 1. https://whispersystems.org/docs/specifications/x3dh/ 1 vary in important details, such as how users are identified model in the applied pi calculus (x4). Model extraction and authenticated, how messages are synchronised across enables formal verification to keep up with rapidly changing devices, etc. We seek to develop and analyze one such source code. Readable models allow the protocol analyst variant that was recently incorporated into Cryptocat, a desk- to experiment with different threat models and security top messaging application developed by one of the current goals and to test new features before including them in the authors. We call this variant SP in the rest of this paper. We implementation. develop a detailed model for SP in the applied pi calculus A Symbolic Security Analysis of SP. We formalize and and verify it using the ProVerif protocol analyzer [3] for analyze a variant of Signal Protocol for a series of security these security goals against adversaries in a classic Dolev- goals, including confidentiality, authenticity, forward secrecy Yao model [4]. We also develop a computational proof for and future secrecy, against a classic symbolic adversary (x5). SP using the CryptoVerif prover [5]. There remains the Our analysis uncovers several weaknesses, including previ- challenge of keeping our models up-to-date as the protocol ously unreported replay and key compromise impersonation code evolves within Cryptocat. To this end, we design a attacks, and we propose and implement fixes which we then model extraction tool that can compile the protocol source also verify. code to the applied pi calculus. A Computational Cryptographic Proof for SP. We present Signal has been implemented in various programming proofs of message authenticity, secrecy and forward secrecy languages, but most desktop implementations of Signal, for SP obtained using the CryptoVerif computational model including Cryptocat, are written in JavaScript. Although prover [5]. (x6) JavaScript is convenient for widespread deployability, it is not an ideal language for writing security-critical applica- A Verified Protocol Core for Cryptocat. We integrate our 2 tions. Its permissive, loose typing allows for dangerous im- verified protocol code into the latest version of Cryptocat plementation bugs and provides little isolation between ver- (x7), a popular open source messaging client with thousands ified cryptographic protocol code and unverified third-party of users that is developed and maintained by one of the components. Rather than trying to verify general JavaScript authors of this paper. We show how the new architecture of programs, we advocate that security-critical components like Cryptocat serves to protect the verified protocol code from SP should be written in a well-behaved subset that enables bugs in the rest of the application. formal analysis. We introduce ProScript (short for “Protocol Script”), 2. A Security Model for Encrypted Messaging a programming and verification framework tailored specif- ically for the implementation of cryptographic protocols. We consider a simple messaging API as depicted below. ProScript extends Defensive JavaScript (DJS) [6], [7], a An initiator A can start a conversation with B by calling static type system for JavaScript that was originally de-
Recommended publications
  • No.Ntnu:Inspera:2546742.Pdf (10.61Mb)
    Krishna Shingala An alternative to the Public Key Krishna Shingala Infrastructure for the Internet of Things Master’s thesis in Communication Technology Supervisor: Danilo Gligoroski, Katina Kralevska, Torstein Heggebø Master’s thesis Master’s June 2019 An alternative to PKI for IoT PKI for to An alternative NTNU Engineering Communication Technology Communication Department of Information Security and Department of Information Faculty of Information Technology and Electrical Technology of Information Faculty Norwegian University of Science and Technology of Science University Norwegian An alternative to the Public Key Infras- tructure for the Internet of Things Krishna Shingala Submission date: June 2019 Responsible professor: Danilo Gligoroski, IIK, NTNU Supervisor: Danilo Gligoroski, IIK, NTNU Co-Supervisor: Katina Kralevska, IIK, NTNU Co-Supervisor: Torstein Heggebø, Nordic Semiconductor ASA Norwegian University of Science and Technology Department of Information Technology and Electrical Engineering Title: An alternative to the Public Key Infrastructure for the Internet of Things Student: Krishna Shingala Problem description: Internet of Things(IoT) enables participation of constrained devices on the Internet. Limited resources, bandwidth, and power on the devices have led to new protocols. Some examples of IoT driven and driving protocols are: – MQTT, CoAP that are application protocols for IoT; – 6LoWPAN enables efficient support of IPv6 on low power lossy networks; – CBOR enables concise data formatting; and – DTLS enables secure channel establishment over unreliable transport like the UDP. Security is one of the key factors for the success of IoT. TLS/DTLS secures the channel between the servers and the devices. Confidentiality is an important aspect of such a secure channel. Establishing the identity of an entity another.
    [Show full text]
  • Easy Encryption for Email, Photo, and Other Cloud Services John Seunghyun Koh
    Easy Encryption for Email, Photo, and Other Cloud Services John Seunghyun Koh Submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy under the Executive Committee of the Graduate School of Arts and Sciences COLUMBIA UNIVERSITY 2021 © 2021 John Seunghyun Koh All Rights Reserved Abstract Easy Encryption for Email, Photo, and Other Cloud Services John Seunghyun Koh Modern users carry mobile devices with them at nearly all times, and this likely has contribut- ed to the rapid growth of private user data—such as emails, photos, and more—stored online in the cloud. Unfortunately, the security of many cloud services for user data is lacking, and the vast amount of user data stored in the cloud is an attractive target for adversaries. Even a single compro- mise of a user’s account yields all its data to attackers. A breach of an unencrypted email account gives the attacker full access to years, even decades, of emails. Ideally, users would encrypt their data to prevent this. However, encrypting data at rest has long been considered too difficult for users, even technical ones, mainly due to the confusing nature of managing cryptographic keys. My thesis is that strong security can be made easy to use through client-side encryption using self-generated per-device cryptographic keys, such that user data in cloud services is well pro- tected, encryption is transparent and largely unnoticeable to users even on multiple devices, and encryption can be used with existing services without any server-side modifications. This dis- sertation introduces a new paradigm for usable cryptographic key management, Per-Device Keys (PDK), and explores how self-generated keys unique to every device can enable new client-side encryption schemes that are compatible with existing online services yet are transparent to users.
    [Show full text]
  • Best Practices for Privileged Access Management on Cloud-Native Infrastructure
    Best Practices for Privileged Access Management on Cloud-Native Infrastructure BY GRAVITATIONAL CONTENTS INTRODUCTION ......................................................................................................................................................................... 4 BACKGROUND OF ACCESS MANAGEMENT COMPONENTS ...................................................................................... 5 SSH ............................................................................................................................................................................................. 5 SSH Public Key Authentication ............................................................................................................................................ 5 OpenSSH Certificates ............................................................................................................................................................. 7 OpenSSH Certificate Authentication .................................................................................................................................. 7 LDAP .......................................................................................................................................................................................... 8 Identity Provider ...................................................................................................................................................................... 9 AUTHENTICATION AND AUTHORIZATION ...................................................................................................................
    [Show full text]
  • Challenges in Managing SSH Keys – and a Call for Solutions
    Challenges in Managing SSH Keys – and a Call for Solutions Tatu Ylonen University of Helsinki [email protected] Abstract In some cases a single key can access tens of thousands of servers, such as for keys originally installed for emergency SSH (Secure Shell) uses public keys for authenticating servers response, auditing, or patch management purposes. Some of and users. While SSH’s key management design was great these keys are very old. for grass-roots deployments, it is now causing significant Second, extensive monitoring of the usage of the keys has operational and security challenges in large computing envi- revealed that typically about 90% of the authorized keys are ronments. This paper summarizes progress in SSH key man- unused. That is, they are access credentials that were provi- agement so far, highlights outstanding problems, and presents sioned years ago, the need for which ceased to exist or the requirements for a long-term solution. Proposals are solicited person having the private key left, and the authorized key from the research community to address the issue; so far the was never deprovisioned. Thus, the access was not terminated industry has been unable to come up with an ideal solution. when the need for it ceased to exist. This signifies a failure of The problem is of high practical importance, as most of our identify and access management (IAM) practices. critical Internet infrastructure, cloud services, and open source software development is protected using these keys. In many organizations – even very security-conscious or- ganizations – there are many times more obsolete authorized keys than they have employees.
    [Show full text]
  • Maintaining Security and Trust in Large Scale Public Key Infrastructures
    Maintaining Security and Trust in Large Scale Public Key Infrastructures Vom Fachbereich Informatik der Technischen Universit¨atDarmstadt genehmigte Dissertation zur Erlangung des Grades Doktor-Ingenieur (Dr.-Ing.) von Dipl. Wirtsch.-Inform. Johannes Braun geboren in Herrenberg. Referenten: Prof. Dr. Johannes Buchmann Prof. Dr. Max M¨uhlh¨auser Tag der Einreichung: 16.03.2015 Tag der m¨undlichen Pr¨ufung: 30.04.2015 Hochschulkennziffer: D 17 Darmstadt 2015 List of Publications [B1] Johannes Braun. Ubiquitous support of multi path probing: Preventing man in the middle attacks on Internet communication. IEEE Conference on Com- munications and Network Security (CNS 2014) - Poster Session, pages 510{ 511, IEEE Computer Society, 2014. Cited on pages 52 and 173. [B2] Johannes Braun, Florian Volk, Jiska Classen, Johannes Buchmann, and Max M¨uhlh¨auser.CA trust management for the Web PKI. Journal of Computer Security, 22: 913{959, IOS Press, 2014. Cited on pages 9, 66, 89, and 104. [B3] Johannes Braun, Johannes Buchmann, Ciaran Mullan, and Alex Wiesmaier. Long term confidentiality: a survey. Designs, Codes and Cryptography, 71(3): 459{478, Springer, 2014. Cited on page 161. [B4] Johannes Braun and Gregor Rynkowski. The potential of an individ- ualized set of trusted CAs: Defending against CA failures in the Web PKI. International Conference on Social Computing (SocialCom) - PAS- SAT 2013, pages 600{605, IEEE Computer Society, 2013. Extended version: http://eprint.iacr.org/2013/275. Cited on pages 9, 32, and 57. [B5] Johannes Braun, Florian Volk, Johannes Buchmann, and Max M¨uhlh¨auser. Trust views for the Web PKI. Public Key Infrastructures, Services and Appli- cations - EuroPKI 2013, vol.
    [Show full text]
  • Perspectives: Improving SSH-Style Host Authentication with Multi-Path Probing
    Perspectives: Improving SSH-style Host Authentication with Multi-Path Probing Dan Wendlandt David G. Andersen Adrian Perrig Carnegie Mellon University Abstract Furthermore, a study by Reis et al. used client-side mea- surements to confirm that real-time snooping and modifi- The popularity of “Trust-on-first-use” (Tofu) authentica- cation of web traffic is a reality in today’s networks [20]. tion, used by SSH and HTTPS with self-signed certificates, In this paper, we examine a novel approach to authen- demonstrates significant demand for host authentication ticating a server’s public key. Traditional approaches to that is low-cost and simple to deploy. While Tofu-based server key authentication, such as a public-key infrastruc- applications are a clear improvement over completely inse- ture (PKI) [7, 5], rely on trusted entities (e.g., Verisign) cure protocols, they can leave users vulnerable to even that grant certificates based on the validation of real-world simple network attacks. Our system, PERSPECTIVES, identities. When done securely, such verification requires thwarts many of these attacks by using a collection of “no- significant (often manual) effort. While some network tary” hosts that observes a server’s public key via multiple hosts, primarily commercial websites, can afford to pay network vantage points (detecting localized attacks) and the high verification cost for these certificates, clients have keeps a record of the server’s key over time (recognizing no simple and effective means to authenticate connectivity short-lived attacks). Clients can download these records to most other hosts on the Internet. on-demand and compare them against an unauthenticated Because the high cost of creating and managing a host key, detecting many common attacks.
    [Show full text]
  • Public Key Pinning for TLS Using a Trust on First Use Model
    Public Key Pinning for TLS Using a Trust on First Use Model Gabor X Toth* Tjebbe Vlieg* *University of Amsterdam February 2013 Abstract Although the Public Key Infrastructure (PKI) using X.509 is meant to prevent the occurrence of man-in-the-middle attacks on TLS, there are still situations in which such attacks are possible due to the large number of Certification Authorities (CA) that has to be trusted. Recent incidents involving CA compromises, which lead to issuance of rogue certificates indicate the weakness of the PKI model. Recently various public key pinning protocols – such as DANE or TACK – have been proposed to thwart man-in-the-middle attacks on TLS connections. It will take a longer time, however, until any of these protocols reach wide deployment. We present an approach intended as an interim solution to bridge this gap and provide protection for connections to servers not yet using a pinning protocol. The presented method is based on public key pinning with a trust on first use model, and can be combined with existing notary approaches as well. Keywords: TLS, PKI, X.509, public key pinning, trust on first use 1 Introduction There are widely known problems with the Public Key Infrastructure using X.509 (PKIX) and its use in TLS certificate validation. Currently, users have to trust a large number of certificate authorities (CA), which are less and less trustworthy due to security breaches in their systems, leading to the issuance of rogue certificates [1,2]. Even if a CA is not compromised, it can still issue intermediate CA certificates to the wrong entities [3], or it can be forced to issue rogue certificates by a government trying to spy on its citizens.
    [Show full text]
  • Secure Transport Protocols
    Secure Transport Protocols Alessandro Barenghi Dipartimento di Elettronica, Informazione e Bioingegneria (DEI) Politecnico di Milano alessandro.barenghi - at - polimi.it G. Pelosi, A. Barenghi (DEI) Secure Transport Protocols 1 / 32 Practical cryptography Common Use scenarios After analyzing all the required cryptographic primitives (symmetric and asymmetric ciphers, hashes), we can tackle: 1 The TLS secure transport protocol (HTTPS and Secure Mail Transport) 2 The Secure SHell (SSH) protocol (secure interactive terminal access) 3 The Tor Onion Routing protocol (Transport anonymity) In all cases the bulk of the data is encrypted with an ephemeral key with a block cipher The ephemeral key is agreed via an asymmetric key cipher All protocols employ public key authentication mechanisms to provide authenticated connections G. Pelosi, A. Barenghi (DEI) Secure Transport Protocols 2 / 32 TLS - A brief history The SSL times The Secure Socket Layer (SSL) protocol was designed in 1995 by Tal ElGamal to provide transport security for HTTP over TCP. The first public version was SSL 2.0 TLS - Birth and evolution In 1999 the IETF standardized the first version of TLS, starting from SSL v3.0, and fixing some security issues which were persisting since SSL v2.0 (SSL and TLS are not interoperable) TLS was updated three times since then (v1.1, v1.2, v1.3) The most widespread version is v1.2, v1.3 was standardized less than 2 years ago, v1.1 e v1.0 are expected to be deprecated by 2020 TLS fino alla versione 1.2 consente il downgrade trasparente della connessione
    [Show full text]
  • Paper, We Provide a Broad Perspective of the for Enhancing the Certificate Infrastructure Used in Practice
    2013 IEEE Symposium on Security and Privacy SoK: SSL and HTTPS: Revisiting past challenges and evaluating certificate trust model enhancements Jeremy Clark and Paul C. van Oorschot School of Computer Science Carleton University, Canada {clark,paulv}@scs.carleton.ca Abstract—Internet users today depend daily on HTTPS for issues in the CA/Browser (CA/B) trust model leading to secure communication with sites they intend to visit. Over fragility (compromise of a single CA can, at least tem- the years, many attacks on HTTPS and the certificate trust porarily, undermine system-wide security) and lack of trust model it uses have been hypothesized, executed, and/or evolved. Meanwhile the number of browser-trusted (and thus, de facto, agility, poor support for certificate revocation, a reduction user-trusted) certificate authorities has proliferated, while the in CA diligence in certificate issuance, and user interface due diligence in baseline certificate issuance has declined. We challenges related to reliably signalling to end-users, in survey and categorize prominent security issues with HTTPS ways not ignored or spoofed, security indicators and site and provide a systematic treatment of the history and on-going authentication information. challenges, intending to provide context for future directions. We also provide a comparative evaluation of current proposals In this paper, we provide a broad perspective of the for enhancing the certificate infrastructure used in practice. SSL/TLS (henceforth TLS) mechanism, as employed with Keywords-SSL; certificates; browser trust model; usability. web browsers for securing HTTP traffic. We consider HTTPS, the underlying CA infrastructure, CA/B trust I. INTRODUCTORY REMARKS model, and proposed enhancements.
    [Show full text]
  • CSCI-UA.9480 Introduction to Computer Security
    CSCI-UA.9480 Introduction to Computer Security Session 1.5 Usable Security and Secure Messaging Prof. Nadim Kobeissi Usable Security: Then and Now 1.5a CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 2 “Humans are incapable of securely storing high-quality cryptographic keys, and they have unacceptable speed and accuracy when performing cryptographic operations.” – Kaufmann, Perlman and Speciner. CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 3 The last word on your identity: you. But this isn’t the case in computer security. ● Two-factor authentication? Attacker can manipulate a trusted party while you’re away. ● Trusted internal network? Attacker breaks into mail room employee’s email and sends a bugged PDF to the CEO. CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 4 We know humans are fallible. So we need security to be easy. ● If humans had only 1KB of resilient storage, we’d be fine! ● If secure systems aren’t easy, they either fail open, or they lead to forced compromises on behalf of the user. CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 5 Email encryption: PGP. ● “Pretty Good Privacy” (1990s.) ● Created for email encryption: ○ Asynchronous (no online handshake necessary.) ○ Non-repudiable (binding signatures.) CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 6 Did you know? PGP’s author, Phil Zimmermann, was criminally investigated in 1991 because PGP allegedly violated the Arms Export Control Act and was supposed to be classified as a munition. CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 7 Remember: Diffie-Hellman. a b ga gb ga mod p gb mod p Public values: g, p Private keys: a, b Public keys: ga, gb Shared secret: gab mod p CSCI-UA.9480: Introduction to Computer Security – Nadim Kobeissi 8 PGP works in a similar way (but with RSA.) Ask Bsk A B pk Apk pk Bpk c = RSAENC(Bpk, m) s = RSASIG(Ask, c) (true|false) = RSAVER(Apk, c) m = RSADEC(Bsk, c) RSA can be used for both public key encryption and for public key signatures.
    [Show full text]
  • SSL Virtual Clean Room Security Architecture 1 Problem Statement 2 Technology Overview
    WHITEPAPER SSL Virtual Clean Room Security Architecture 1 Problem Statement A local area network (LAN) is currently isolated from the public internet. Any access into this LAN is physical i.e. a user is to be physically located in the LAN site. It would be more convenient to be able to securely access various services on the LAN through trusted clients on the public internet. This document presents technologies that can be used to achieve this goal and outlines an end-to-end solution towards it. 2 Technology Overview 2.1 VPN A virtual private network (VPN) extends a private network across a public network, and enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network [1]. A VPN is created by establishing a virtual point-to-point connection through the use of dedicated connections, virtual tunneling protocols, or traffic encryption. From a user perspective, the resources available within the private network can be accessed remotely [1]. Traditional VPNs are characterized by a point-to-point topology, and they do not tend to support or connect broadcast domains. Designers have developed VPN variants, such as Virtual Private LAN Service (VPLS), and layer-2 tunneling protocols, to overcome this limitation. Best Practices 1. Plan out a comprehensive network security policy. Factor in the following questions: a. What are the classes of users? b. What level of access is allowed to a class? c. Which devices are allowed to connect to the corporate network through a VPN? d.
    [Show full text]
  • Pervasive Internet-Wide Low-Latency Authentication
    Pervasive Internet-Wide Low-Latency Authentication Cyrill Krahenb¨ uhl¨ ∗, Markus Legnery, Silvan Bitterliz, and Adrian Perrigx Department of Computer Science, ETH Zurich, Switzerland Email: ∗[email protected], [email protected], [email protected], [email protected] Abstract—In a world with increasing simplicity to store, than client–server communication, such as peer-to-peer com- transfer, and analyze large volumes of data, it becomes more munication, or cases where setting up DNS entries for all and more important that data confidentiality and integrity be devices is infeasible, such as Internet-of-Things (IoT) settings. preserved in transit by default. Unfortunately, a large security gap exists between unprotected or low-security communication, Additionally, DNS resolvers, SSH servers, and IoT devices are such as opportunistic encryption and trust-on-first-use (TOFU) often identified by their IP address which precludes domain- security, and high-security communication, such as TLS using based authentication. server certificates or DNSSEC. Our goal is to reduce this gap We propose pervasive Internet-wide low-latency and achieve a base layer for authentication and secrecy that is authentication (PILA), a system to reduce the gap between strictly better than TOFU security. We achieve this by designing PILA, a novel authentication method with dynamic trust anchors, TOFU security and strong authentication mechanisms (Web which leverages irrefutable cryptographic proof of misbehavior to PKI and DANE). The goal is to create a mechanism that is incentivize benign behavior. We implement PILA extensions for orthogonal to existing strong authentication mechanisms and SSH, TLS, and DNS and show that the overhead for a typical not to replace them.
    [Show full text]