Coder Social home page Coder Social logo

appcoreopc / kenali-kernel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sslab-gatech/kenali-kernel

0.0 2.0 0.0 129.63 MB

Modified Nexus 9 kernel for Kenali Project

Makefile 0.30% C 95.23% Assembly 2.03% C++ 1.95% Objective-C 0.25% Shell 0.04% Awk 0.01% Python 0.03% GDB 0.01% SourcePawn 0.01% Perl 0.10% Yacc 0.02% Lex 0.01% M4 0.01% Groff 0.01% UnrealScript 0.01% Scilab 0.01% ASP 0.01% XS 0.01% Perl 6 0.01%

kenali-kernel's Introduction

Kenali: Enforcing Kernel Security Invariants with Data Flow Integrity

Kenali is a project aims to prevent memory-corruption-based kernel privilege escalation attacks. It includes three major components: kernel patches, analysis, and instrumentation. This is the prototype kernel for the Nexus 9 device, forked from android-tegra-flounder-3.10-lollipop-release.

Technical Details

Please check out paper for more details.

Notes

  • It's just a proof-of-concept prototype, so try at your own risk.
  • You'll need all three components to fully utilize the protection from Kenali, I'll push the other two components into other repos (later).

Build

This kernel has been tailored to be built by clang (v3.6 or higher), with patches and scripts from the LLVMLinux projects.

To build into bootable kernel binary (tested with Google GCC toolchain):

make ARCH=arm64 \
    CROSS_COMPILE=${PATH_TO_GCC_BIN}/aarch64-linux-android- \
    GCC_TOOLCHAIN=${PATH_TO_GCC_BIN} \
    HOSTCC=clang CC=clang

To build into LLVM bitcode for static analysis:

make ARCH=arm64 \
    CROSS_COMPILE=${PATH_TO_GCC_BIN}/aarch64-linux-android- \
    GCC_TOOLCHAIN=${PATH_TO_GCC_BIN} \
    HOSTCC=clang-emit-bc.sh CC=clang LLVM_IR=1

You can download clang-emit-bc.sh here. You may need to patch this script based on the output of file $BC_FILE, if it's "LLVM bitcode", you're good; if it's "LLVM IR bitcode", then you need to replace the grep parameter.

To pack the kernel arch/arm64/boot/Image.gz-dtb into a flashable bootimg, check the tutorial widely available online.

Publications

Paper

Enforcing Kernel Security Invariants with Data Flow Integrity
Chengyu Song, Byoungyoung Lee, Kangjie Lu, William R. Harris, Taesoo Kim, and Wenke Lee
NDSS 2016

@inproceedings{song:kenali,
  title        = {{Enforcing Kernel Security Invariants with Data Flow Integrity}},
  author       = {Chengyu Song and Byoungyoung Lee and Kangjie Lu and William R. Harris and Taesoo Kim and Wenke Lee},
  booktitle    = {Proceedings of the 2016 Annual Network and Distributed System Security Symposium (NDSS)},
  month        = feb,
  year         = 2016,
  address      = {San Diego, CA},
}

kenali-kernel's People

Contributors

behanw avatar chengyusong avatar dl9pf avatar lifeasageek avatar mcharleb avatar tsgates avatar

Watchers

 avatar  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.