病毒分析
点击放大

$ git clone :elfmaster/libelfmaster
$ cd libelfmaster/src
$ make
$ sudo make install
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-de
$ make musl
$ sudo make musl-install
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 inno in its ability to be user-friendly, secure, and
provide a 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, to compile two seperate libs for each
architecture. The downfall ob 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
which is ad the state of Linux/UNIX binary forensics and HIDS.
As I build Arcana, more edge cases come up.
1. Userland debugging (non-ptrace) API similar to eresi e2dbg
2. ELF patching, and injection. i.e. relocatable code injection + function hijacking etc.
3. Dwarf injection similar to Sergey Bratus and James Oakley's Katana project
4. Continuous ad of forensically reconstructing all edge cases of broken binaries
5. Explicit support for FreeBSD
6. Explicit support for sparc, mips, arm, etc. Currently it implicitly supports many of the features
7. A regression test suite
8. Better Support for core-files, i.e. forensics reconstruction
9. API Documentation
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 ha their fuzzing efforts. I will create a
proper area to name those who should be listed as contributors (Perhaps an Authors file).
NetBSD coding style, submit a PR for review.
The best documentation is to read the code in libelfmaster/examples.
elfparse.c is a simple of readelf, but does not utilize every
API function so make sure to look at all examples. This API needs someone
to document it.
开发语言:C
Star 数:456
该项目属于病毒分析方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Secure ELF parsing/loading library for forensics reconstruction of malware, and robust reverse engineering tools展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | libelfmaster - Secure ELF parsing/loading library for forensics r |
| 所属分类 | 病毒分析 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 23:19:29 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 473 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |