Giter Site home page Giter Site logo

jonastheis / glitch Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 52.73 MB

Implementation of the GLitch hardware exploit: A remote rowhammer attack on ARM via JavaScript & WebGL

License: Apache License 2.0

CMake 1.06% Makefile 6.42% C 9.33% C++ 50.70% GLSL 0.92% Shell 2.63% Python 5.32% JavaScript 21.90% HTML 1.71%

glitch's Introduction

GLitch - remote rowhammer on ARM via JavaScript & WebGL

GLitch is a remote rowhammer exploit on ARM Android devices. In order to do so it makes use of the WebGL interface in JavaScript to use the GPU to do the actual hammering. It does not rely on any software bug to obtain remote code execution. As a response to the publication of GLitch browsers have disabled specific timer functionality.

The exploit in this repository was implemented in the course Hardware Security lectured by Kaveh Razavi at Vrije Universiteit Amsterdam in Period 2 of the academic year 2018/2019. The focus of the course was to obtain in-depth knowledge of state of the art hardware exploits of various sorts (exploitation, leaking data, defenses).

As a result of university course work the exploit in this repository is not completely end-to-end as it is described in the paper. Because of time constraints we skipped the detection of contiguous memory using a timing side-channel and obtained the information directly from /proc/{pid}/pagemap. Furthermore, the repository is structured in several weeks of consecutive steps to first get familiar with OpenGL and the GPU with Android's NDK, implement cache eviction and hammering pattern with GLSL and finally translate everything to JavaScript and WebGL.

Week 1: Building tools

Week 2: Understanding the GPU architecture

Week 3: Native bit flips

Week 4: Porting to JavaScript

License

This project is licensed under the Apache Software License, Version 2.0.

See LICENSE for more information.

Copyright 2018 Kian Peymani, Jonas Theis

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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.