TheMalwareGuardian/Bootkits-Rootkits-Development-Environment

GitHub: TheMalwareGuardian/Bootkits-Rootkits-Development-Environment

该项目提供自动化脚本,用于在 Windows 和 Linux 上快速搭建 UEFI Bootkit 与内核 Rootkit 的底层安全开发环境。

Stars: 42 | Forks: 5

# ***🏴‍☠️ Bootkits & Rootkits 开发环境*** ![DEF CON 33 主舞台演讲](https://img.shields.io/badge/DEF%20CON%2033-Main%20Stage%20Talk-informational?style=for-the-badge&logo=hackaday) 本仓库是我致力于让 Bootkit 和 Rootkit 开发变得更易上手的一部分。为底层开发搭建合适的环境可能既繁琐又耗时,因此这里提供的脚本将自动化搭建过程,使得配置和开始尝试开发 Bootkits 和 Rootkits 变得更加容易。

## ***📑 目录*** * [在 Windows 上搭建 Bootkits 和 Rootkits 开发环境](#environmentwindows) * [在 Linux 上搭建 Bootkits 和 Rootkits 开发环境](#environmentlinux) * [额外资源](#additionalresources) * [示例项目](#exampleprojects) * [联系方式](#contact)
## ***🖥️ 在 Windows 上搭建 Bootkits 和 Rootkits 开发环境*** 这个 [PowerShell 脚本](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Development-Environment/blob/main/Scripts/Setup_Development_Environment_Windows.ps1) 经过精心编写,能够自动化搭建专为在 Windows 上创建 [UEFI](https://wiki.osdev.org/UEFI) Bootkits 和 [内核](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/) Rootkits 而设计的开发环境。它简化了原本手动且耗时的工具安装以及 [TianoCore](https://www.tianocore.org/) [EDK2](https://github.com/tianocore/edk2)(EFI 开发包)和 [WDK](https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk)(Windows 驱动程序工具包)的配置任务,让开发者能够将更多精力投入到 Bootkits/Rootkits 的创新上,而不是环境搭建上 😉。 ### ***▶️ 快速入门*** 要自动化创建和设置您的开发环境,请按照以下步骤操作: 1. 打开 PowerShell(某些选项需要管理员权限): - 在“开始”菜单中搜索 PowerShell 将其打开。 - 如需管理员权限,请右键点击 PowerShell 并选择“以管理员身份运行”。 2. 设置执行策略(可选): - 如果您遇到与脚本执行相关的错误,可以通过运行 'Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass' 来临时更改执行策略。这允许脚本在当前会话中运行,而不会永久更改系统设置。或者,要移除所有限制,请使用:'Set-ExecutionPolicy Unrestricted'。 3. 导航到脚本目录: - 使用 cd 命令导航到包含脚本的文件夹。 4. 执行脚本: - 输入 '.\Setup_Development_Environment_Windows.ps1' 运行脚本。 5. 按照提示操作: - 响应屏幕上的提示以选择您想要的操作。 ### ***🧪 示例用法*** 该脚本简化了以下步骤: ``` ============================================================================================== Overview: - PowerShell Script for Automating Bootkits/Rootkits Development Environment Setup in Windows Note: - All options have been tested on the latest version of Windows 11 25H2 LinkedIn: - https://www.linkedin.com/in/vazquez-vazquez-alejandro/ Github: - https://github.com/TheMalwareGuardian/ ============================================================================================== ------------------------------------------- MENU --------------------------------------------- BOOTKITS 1a. Bootkits - Requirements -> Visual Studio 2019 Community + Git + Python + NASM + ASL 1b. Bootkits - Set Up Environment -> EDK2 1c. Bootkits - Tools -> UEFITool + HxD + OpenSSL 1d. Bootkits - PoCs -> UEFI Applications + DXE Runtime Drivers [Windows / Linux] 1e. Bootkits - RE -> Windows Boot Process DEBUGGING 2a. Debugging - Requirements -> WinDbg 2b. Debugging - Set Up Environment -> Enable Debugging 2c. Debugging - Tools -> Microsoft Sysinternals Suite + Process Hacker 2d. Debugging - Scripting -> PoCs - WinDbg Classic + JavaScript + Python PYKD + WinDbg Extensions 2e. Debugging - Debugging Diagram -> Host (Debugger) + Target (Debugee) ROOTKITS 3a. Rootkits - Requirements -> Visual Studio 2022 Community + SDK + WDK + Visual Studio Code 3b. Rootkits - Set Up Environment -> Enable Test Mode + Disable Integrity Checks 3c. Rootkits - Tools -> OSR Driver Loader + Ghidra + IDA Free 3d. Rootkits - PoCs -> Kernel Mode Drivers & Console Applications RESOURCES 4a. Resources - My Repositories -> A compilation of resources dedicated to bootkit and rootkit development PROGRAM TERMINATION Q. Exit ---------------------------------------------------------------------------------------------- Choose an option 1a You have selected the option 'Bootkits - Requirements -> Visual Studio 2019 Community + Git + Python + NASM + ASL + OpenSSL' Do you want to proceed? (Press 'Y'): ``` ### ***🎬 视频演示*** 为了让操作更加简单,我准备了一份完整的视频演示,逐步展示了如何使用该安装脚本。从安装依赖项到运行您的第一个 Bootkit 和 Rootkit 构建,所有内容都进行了直观的演示。请在此处[观看完整视频](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Development-Environment/tree/main/Videos/Setup_Environment_Windows.mp4)。
## ***🖥️ 在 Linux 上搭建 Bootkits 和 Rootkits 开发环境*** 这个 [Bash 脚本](https://github.com/TheMalwareGuardian/Bootkits-Rootkits-Development-Environment/blob/main/Scripts/Setup_Development_Environment_Linux.sh) 经过精心编写,能够自动化搭建专为在 Linux 上创建 [UEFI](https://wiki.osdev.org/UEFI) Bootkits 和 [内核](https://linux-kernel-labs.github.io/refs/heads/master/labs/kernel_modules.html) Rootkits 而设计的开发环境。它简化了原本手动且耗时的工具安装以及 [TianoCore](https://www.tianocore.org/) [EDK2](https://github.com/tianocore/edk2)(EFI 开发包)的配置任务,让开发者能够将更多精力投入到 Bootkits/Rootkits 的创新上,而不是环境搭建上 😉。 | 功能 | 状态 | |------------------------|-----------------| | 环境设置 | 🔄 进行中 | | 文档 | 🔄 进行中 | | 恶意软件示例 | ⏳ 研究中 | ### ***▶️ 快速入门*** 要自动化创建和设置您的开发环境,请按照以下步骤操作: 1. 打开终端 - 您可以按 Ctrl+Alt+T 或启动您的终端应用程序来执行此操作。 2. 导航到脚本目录 - 使用 cd 命令进入脚本所在的文件夹。 3. 使脚本可执行 - 首次运行脚本之前,您可能需要设置可执行权限:chmod +x Setup_Development_Environment_Linux.sh 4. 执行脚本 - 输入 ./Setup_Development_Environment_Linux.sh 运行脚本。 5. 按照提示操作 - 脚本可能会提供一个菜单或提示选项。请根据您的设置需求进行选择。 ### ***🧪 示例用法*** 该脚本简化了以下步骤: ``` ============================================================================================== Overview: - Bash Script for Automating Bootkits/Rootkits Development Environment Setup in Linux Note: - All options have been tested on Ubuntu 24.04 LTS LinkedIn: - https://www.linkedin.com/in/vazquez-vazquez-alejandro/ Github: - https://github.com/TheMalwareGuardian/ ============================================================================================== ------------------------------------------- MENU --------------------------------------------- BOOTKITS 1a. Bootkits - Requirements -> GCC + Git + Python + NASM + ASL 1b. Bootkits - Set Up Environment -> EDK2 1c. Bootkits - Tools -> OpenSSL + efitools + sbsigntools 1d. Bootkits - PoCs -> UEFI Applications + DXE Runtime Drivers [Windows / Linux] 1e. Bootkits - Keys -> Generate test keys and certificates 1f. Bootkits - RE -> GRUB2 1g. Bootkits - RE -> Linux Kernel 1h. Bootkits - RE -> Linux Boot Process [ESP + SHIM + GRUB + vmlinuz + vmlinux] ROOTKITS 3a. Rootkits - Requirements -> linux-headers + libbpf 3b. Rootkits - PoCs -> LKM Rootkits & eBPF Programs RESOURCES 4a. Resources - My Repositories -> A compilation of resources dedicated to bootkit and rootkit development PROGRAM TERMINATION Q. Exit ---------------------------------------------------------------------------------------------- Choose an option: 1a [!] You have selected the option 'Bootkits - Requirements -> GCC + Git + Python + NASM + ASL' [?] Do you want to proceed? (Press 'Y'): ```
## 📚 额外资源 为了帮助新手和有经验的开发者,我还整理了一系列有用的资料,包括视频、文章、恶意软件示例和其他资源,以加深您对 Bootkits 和 Rootkits 的理解: 📌 [TheMalwareGuardian:Awesome Bootkits & Rootkits 开发资源](https://github.com/TheMalwareGuardian/Awesome-Bootkits-Rootkits-Development)
## 🚀 示例项目 如果您正在寻找简单的 Bootkit 和 Rootkit 项目作为入门,请查看这些仓库,我在其中分享了基础示例,以帮助您构建自己的项目: 📌 [TheMalwareGuardian:Abyss - Windows UEFI Bootkit](https://github.com/TheMalwareGuardian/Abyss) 📌 [TheMalwareGuardian:Antarctic - Linux UEFI Bootkit](https://github.com/TheMalwareGuardian/Antarctic) 📌 [TheMalwareGuardian:Benthic - Windows 内核态 Rootkit](https://github.com/TheMalwareGuardian/Benthic) 📌 [TheMalwareGuardian:Gillyweed - Linux LKM Rootkit](https://github.com/TheMalwareGuardian/Gillyweed)
## 📬 联系方式 如果您有任何问题、需要进一步说明,或者对合作感兴趣,请随时通过 [LinkedIn](https://www.linkedin.com/in/vazquez-vazquez-alejandro/) 与我联系。
标签:AI合规, Libemu, UEFI开发, 中高交互蜜罐, 内核级开发, 应用安全, 底层开发, 恶意软件开发, 自动化环境配置, 逆向工具