Giter Club home page Giter Club logo

domtegrity's Introduction

DOMtegrity

Overview

This project proposes a novel idea to ensure web page's source code integrity in presence of a malicious browser extension. Our solution does not need modifications to the browser engine, installing third-party softwares or use of external hardware tokens for such protection.

Here, we leveraged the new capabilities of JavaScript APIs and the homogenous architecture of browser extensions development in mainstream modern browsers.

DOMtegrity is a cryptographic protocol to ensure web page's integrity. Our solution works by exploiting subtle differences between browser extensions and in-line JavaScript code in terms of their rights to access Websocket channels, as well as leveraging the latest Web Crypto API support added in modern browsers.

Detailed description of the protocol here.

Setup

On the client side, all you need to do, is to embed the DOmtegrity source code inside <script> tag before any other HTML tags.

We developed DOMtegrity serverusing node.js. You just need to run the following command to set up the server.

node domtegrity-server.js

The server is set listen to port 8080 by default.

When browsed to request index.html, DOMtegrity implemetation on the client side (a.k.a pid.js) will request a websocket connection from DOMtegrity server and requests secret key.

The client has the option to start the verification process at anytime. They just need to call the following function:

document.pid.request()

Subsequently, the Page IDentifier (PID) is generated and its HMAC tag is transmitted to server for verification. The results could be accept in case of no malicious madifications and reject when an extension maliciously changed the web page.

This project is developed by Ehsan Toreini in Newcastle University.

domtegrity's People

Contributors

toreini avatar

Stargazers

pique-sel avatar Jakub Tomana avatar Zach Collier avatar Viktor Brech avatar Matt Mc avatar Kevin Heraud avatar Rishi avatar Tanzeel Hassan avatar Paolo Bozzola avatar

Watchers

 avatar Viktor Brech avatar

domtegrity'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.