Git Product home page Git Product logo

trust_video's Introduction

Script

Usually when a computer executes a program, this program first came from a compilation pipeline and what we execute in our computer is an instantiation of the generated binary. Exactly the same instructions and exactly the same behavior are executed in the client computers. In a world scale, we have several million binaries copies distributed to the clients. This phenomenom is called "Software monoculture".

Software monoculture has several benefits, such as maintenance, interroperability and certifications since you only need to make the changes to your application one time and then distribute the binary. However, when you distribute the same binary along all your computers, you are also distribution unknown security flaws. A potential attacker can analyze this code, discover theese flaws and then create and attack. And following the same idea, the attack can be delivered to the million deployed instances, exfiltrating data, for example. We call "Break once Break everywhere" to this kind of attacks.

How can we mitigate this threat ? If we distribute a different binary, yet with the same functionality, we can break potential attacks. For example, if we distribute different instructions making the same functionality of the orginal program, signature based attacks could be ineffective. The main limitation of this technique is that you need to scale the number of different variants to a real world scale as fast as a potential attacker can analyze and discover new flaws. Besides, you need to take care about creating new vulnerabilities. The programs generation needs to be safe and sound. We call this defense technique, "Software Diversification"

The web context is probably the greatest example of what a monoculture is. Every time you load a page, this page contains the same resources gathered from a server. All of them are executed the same way with the same expected functionality. In 2017 a new language was added to this context, WebAssembly. WebAssembly is meant to be used as a fast language, fast enough to have native performance in the web. It is also meant to be safe, but recent works showed that WebAssembly is not exempt of vulnerabilities.

The software community is growing its adoption and several languages and frameworks are being migrated to WebAssembly. C, C++, Go and Rust code can be compiled to WebAssembly. We created a tool, that replaces equivalent code in different parts of the original program during the compilation stage. Our approach is to tackle, yet undiscovered, potential vulnerabilities, by providing several WebAssembly variants given a program source code. As a result, the generated programs are statically different and functionally equivalent.

Going back to how the Web works, every time that a client ask for a WebAssembly program, we serve a different variant. The variants that we serve, are statically different hardening the static analysis of the WebAssembly binaries. We also ensure to leave different fingerprints on the execution environment traces. This is the goal of our approach. To provide software diversiy to the web through WebAssembly diversification.

trust_video's People

Contributors

jacarte avatar

Watchers

James Cloos avatar  avatar

trust_video's Issues

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.