Refinement types for secure implementations
Jesper Bengtson, Karthikeyan Bhargavan, Cédric Fournet A et al. · ACM Transactions on Programming Languages and Systems · 2011
We present the design and implementation of a typechecker for verifying security properties of the source code of cryptographic protocols and access control mechanisms. The underlying type theory is a λ-calculus equipped with refinement types for expressing pre- and post-conditions within first-order logic. We derive formal cryptographic primitives and represent active adversaries within the type theory. Well-typed programs enjoy assertion-based security properties, with respect to a realistic threat model including key compromise. The implementation amounts to an enhanced typechecker for the general-purpose functional language F # ; typechecking generates verification conditions that are passed to an SMT solver. We describe a series of checked examples. This is the first tool to verify authentication properties of cryptographic protocols by typechecking their source code.
Cited by 224 works. doi:10.1145/1890028.1890031 Open-access PDF
Authors
References
- Lecture Notes in Computer Science 1205
- Using encryption for authentication in large networks of computers
- Random oracles are practical
- On the security of public key protocols
- Z3: An Efficient SMT Solver
- Protection in programming languages
- Extended static checking for Java
- Java Security: From HotJava to Netscape and Beyond
- Prudent engineering practice for cryptographic protocols
- Intuitionistic type theory