Git Product home page Git Product logo

smash's Introduction

SMASH: Synchronized Many-sided Rowhammer Attacks from JavaScript

Script to trigger (Rowhammer) bit flips on TRR-enabled DDR4 SDRAM through Firefox. Will only work with THP enabled and after having set the target-specific parameters (see comment in source).

The exploitation component (see paper) has been left out.

A demo is available here. The paper can be found here.

The src directory contains the source code of our native implementation. Please note: highly experimental and poorly documented.

smash's People

Contributors

finn4096 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smash's Issues

Uncaught TypeError: bufbuf32[(low >> 10)] is undefined

Is the following error because of wrong configuration for the target machine or how can I fix it?

First huge page in ArrayBuffer is at 1 MB smash.js:694:9
Looking for first eviction set... smash.js:181:11
Done. 1454.66 s smash.js:64:13
Learning slice color of 100 huge pages... smash.js:236:11
Done. 1488.56 s smash.js:64:13
Verifying whether aggressors are self-evicting... smash.js:311:11
WARNING: aggressors are NOT self-evicting 10 smash.js:340:15
Aggressors are self-evicting smash.js:344:11
Done. 1488.97 s smash.js:64:13
Soft sync... (XORs, tREFI/t) smash.js:750:13
(1000, 3.28) smash.js:759:15
(1080, 3.39) smash.js:759:15
(1144, 3.26) smash.js:759:15
(1195, 3.28) smash.js:759:15
(1236, 3.15) smash.js:759:15
(1269, 2.75) smash.js:759:15
(1295, 2.69) smash.js:759:15
(1316, 2.72) smash.js:759:15
(1336, 2.70) smash.js:759:15
(1356, 2.64) smash.js:759:15
(1376, 2.57) smash.js:759:15
(1396, 2.62) smash.js:759:15
Uncaught TypeError: bufbuf32[(low >> 10)] is undefined
    hammerBench file:///home/aasgarik/Desktop/Code/smash/smash.js:595
    <anonymous> file:///home/aasgarik/Desktop/Code/smash/smash.js:756
smash.js:595:9

My system:

$ sudo cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never

$ sudo cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

$ sudo lshw | grep DDR
             description: DIMM DDR3 Synchronous 1866 MHz (0.5 ns)
             description: DIMM DDR3 Synchronous 1866 MHz (0.5 ns)

$ firefox --version
Mozilla Firefox 90.0.2

How to learn offset functions?

In order to use this code I figured out I need to validate/write the ot* functions as well. Would you mind sharing a resource on how to reverse engineer those functions?

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.