elfmaster/libelfmaster
关于
用于恶意软件取证重建的安全 ELF 解析与加载库,以及稳健的逆向分析工具
安全与隐私实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文libelfmaster
Standard build
GIT clone it
$ git clone [email protected]:elfmaster/libelfmaster $ cd libelfmaster/src
Build it
$ make $ sudo make install
musl build
libelfmaster can also be built with MUSL. Shiva is built with MUSL Libc and requires a musl libelfmaster on newer builds.
$ sudo apt-get install musl musl-dev musl-tools $ make musl $ sudo make musl-install
Update as of 11/17/18 -- I have a local branch with many new fixes that will be finished and committed by the end of December, been very busy.
Secure ELF parsing library
libelfmaster is a C library for loading and parsing ELF objects of any type. The goal of this project was to create an API that is innovative in its ability to be user-friendly, secure, and provide a variety of creative and useful ways to access an ELF object. Not only that, but this library was largley created for designing reverse engineering applications. This library is capable of loading binaries with corrupted section headers and it will forensically reconstruct section headers and symbol tables using state-of-the-art techniques, such as PT_GNU_EH_FRAME reconstruction for .symtab functions. This library is also capable of seamlessly loading both 32bit and 64bit ELF objects, vs. having to compile two seperate libs for each architecture. The downfall obviously being that this won't compile on 32bit machines. I am now a guide on this project, as I put it into the hands of the security and reverse engineering community. I am currently using it to build https://github.com/elfmaster/elf.arcana which is advancing the state of Linux/UNIX binary forensics and HIDS. As I build Arcana, more edge cases come up.
Future Goals
- Userland debugging (non-ptrace) API similar to eresi e2dbg
- ELF patching, and injection. i.e. relocatable code injection + function hijacking etc.
- Dwarf VM bytecode injection similar to Sergey Bratus and James Oakley's Katana project
- Continuous advancement of forensically reconstructing all edge cases of broken binaries
- Explicit support for FreeBSD
- Explicit support for sparc, mips, arm, etc. Currently it implicitly supports many of the features
- A regression test suite
- Better Support for core-files, i.e. forensics reconstruction
- API Documentation
Current status
Work in progress. Not fully fuzzed or tested. Needs adept ELF hackers and reverse engineers with a strong C skills. Has undergone several iterations of fuzzing done with AFL. Currently I am fixing and patching the code and a new alpha release tag will be committed pushed soon (By mid October 2018) Thank you to all who have contributed their fuzzing efforts. I will create a proper area to name those who should be listed as contributors (Perhaps an Authors file).
Rules of development
NetBSD coding style, submit a PR for review.
API Documentation
The best documentation is to read the code in libelfmaster/examples. elfparse.c is a simple version of readelf, but does not utilize every API function so make sure to look at all examples. This API needs someone to document it.
探索相关项目
加载中…