CT-Wasm:Web生态系统的类型驱动安全加密
CT-Wasm: Type-Driven Secure Cryptography for the Web Ecosystem
摘要:
大量的客户端和服务器端加密都是在JavaScript中实现的。尽管人们普遍担心它的安全性,但没有其他语言能够与它在“网络生态系统”上无处不在的支持所带来的便利相匹配-各种各样的技术共同支撑着现代万维网。随着WebAssembly字节码语言(Wasm)新引入Web生态系统,我们有一个独特的机会来推进现有JavaScript加密用例的原则性替代方案,而不会损害这种便利性。我们提出了恒定时间WebAssembly(CT-Wasm),一个类型驱动的严格扩展WebAssembly,它有利于可验证安全的加密算法的实现。CT-Wasm的类型系统确保了用CT-Wasm编写的代码是信息流安全的,并且能够抵抗定时侧信道攻击;与基本Wasm一样,这些保证在线性时间内是可验证的。在现有的WASM机械化的基础上,我们机械化了完整的CT-WASM规范,证明了扩展类型系统的可靠性,实现了经过验证的类型检查器,并给出了该语言的安全属性的几个证明。我们提供了CT-Wasm的两个实现:一个OCaml参考解释器和一个Node.js和Chromium的本地实现,它扩展了Google的V8引擎。我们还实现了一个CT-Wasm到Wasm的重写工具,允许开发人员在为基础Wasm环境开发加密算法的同时,从CT-Wasm的类型系统中获益。我们评估的语言,我们的实现,并通过移植几个加密原语支持工具-Salsa 20,SHA-256和TEA -和完整的TweetNaCl库。我们发现CT-Wasm是快速的,富有表现力的,并生成我们实验测量为恒定时间的代码。
英文摘要:
A significant amount of both client and server-side cryptography is implemented in JavaScript. Despite widespread concerns about its security, no other language has been able to match the convenience that comes from its ubiquitous support on the "web ecosystem" - the wide variety of technologies that collectively underpins the modern World Wide Web. With the new introduction of the WebAssembly bytecode language (Wasm) into the web ecosystem, we have a unique opportunity to advance a principled alternative to existing JavaScript cryptography use cases which does not compromise this convenience. We present Constant-Time WebAssembly (CT-Wasm), a type-driven strict extension to WebAssembly which facilitates the verifiably secure implementation of cryptographic algorithms. CT-Wasm's type system ensures that code written in CT-Wasm is both information flow secure and resistant to timing side channel attacks; like base Wasm, these guarantees are verifiable in linear time. Building on an existing Wasm mechanization, we mechanize the full CT-Wasm specification, prove soundness of the extended type system, implement a verified type checker, and give several proofs of the language's security properties. We provide two implementations of CT-Wasm: an OCaml reference interpreter and a native implementation for Node.js and Chromium that extends Google's V8 engine. We also implement a CT-Wasm to Wasm rewrite tool that allows developers to reap the benefits of CT-Wasm's type system today, while developing cryptographic algorithms for base Wasm environments. We evaluate the language, our implementations, and supporting tools by porting several cryptographic primitives - Salsa20, SHA-256, and TEA - and the full TweetNaCl library. We find that CT-Wasm is fast, expressive, and generates code that we experimentally measure to be constant-time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。