Git Product home page Git Product logo

samsung-npu's Introduction

Reversing and Exploiting Samsung's Neural Processing Unit

Companion repository for the Reversing and Exploiting Samsung's Neural Processing Unit article on Longterm Security's blog.

Repository

This repository is organised as follows:

  • binaries/
    • npu_sXX_binary.bin
    • npu_sXX_dump.bin
      • Dumps of the NPU firmwares from running phones. These are the binaries we used in the blogpost to reverse engineer the NPU.
  • exploit/
    • PoCs to get code execution in the NPU and trigger the stack buffer overflow in the Android kernel.
  • patches/
    • Kernel patch to re-enable memory dumps of the NPU from the kernel. The Samsung kernel version we used as a base is G980FXXU5CTL1.
  • reverse/
    • Files containing our reverse engineered comprehension of the NPU. They detail:
      • the initialization of the NPU;
      • components such as the heap, events, semaphores, timers, events, etc.;
      • tasks and the scheduling algorithm;
      • the implementation of the mailbox used to communicate between the NPU and the kernel.
  • tools/
    • npu_sram_dumper
      • Tool to dump the NPU from a running phone.
    • npu_firmware_extractor
      • Tool to extract the NPU firmware from a boot image.

References

samsung-npu's People

Contributors

0xlyte avatar

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.