Giter Site home page Giter Site logo

binaryninja-xnu's Introduction

binaryninja-xnu

Early WIP

this will expand as I continue to burrow through kernel documentation/write-ups/code in an effort to understand everything I'm doing here.

Build

mkdir -p build && cd build
# For headless builds, omit -DUI_BUILD=ON argument entirely or set it to OFF
cmake -DCMAKE_BUILD_TYPE=Release -DUI_BUILD=ON ../
cmake --build . --target=install -j 8 

Current Feature Set

Type Helper:
  • Single-interaction helper for external methods

This component strives to give developers the tools to quickly type methods appropriately.

Available under the command palette (and keybindable) as "XNU Tools - Types - "

Workflow (core.function.darwinKernel) for:
  • Consolidating vreg initialization (1 LLIL+ line instead of 16)
  • Removing PAC intrinsics from LLIL onward
  • (hackily?) Hotfixing tailcalls to unknown destinations (e.g. this->someVirtFunc(blah) getting lifted as HLIL jump(x6) instead becomes a proper and typeable call)

Future

A lot of automatic type generation and naming via libkern's introspection APIs is possible.

Following in the footsteps of iometa's with automated dumping of this information and applying it to individual kexts (where possible) or kernelcaches will elevate kernel RE heavily.

Automatic detection

Plugin should detect when:

  • A BinaryView of any BinaryViewType is of some sort of xnu-kernel related object
  • It has not had an initial config pass ran on it

It should ask to enable certain features, prompt if the workflow isn't enabled, and run initial passes.

Workflow

A workflow action should eventually be added to rewrite calls made to vtable methods when we know what code the virtual call will hit.

Typing

Huge swaths of IOKit and the kernel itself are open source, and type information publicly available should be automatically defined in applicable BinaryViews


vri

plugin by cynder

part of the ksuite toolkit

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.