
项目说明
<p align="center">
<img src="agent_icons/ErebusBannerText.png" alt="Erebus Banner" style="width: 800px;"/>
</p>
Erebus
Erebus is a modern initial access wrapper aimed at decreasing the de to deployment time, when preparing for intrusion operations. Erebus comes with multiple techniques out of the box to craft complex chains, and assist in bypassing the toughest security measures.
This project is meant to be an extension to your offensi, and is by no means a sil against all en. If you would like to add your own techniques or modify the existing ones then check out the project's documentation page for more info.
How to Install
Within Mythic you can run the mythic-cli binary to install this in one of three ways:
* sudo ./mythic-cli install github to install the main branch
* sudo ./mythic-cli install github branchname to install a specific branch of that repo
* sudo ./mythic-cli install folder /path/to/local/folder/cloned/from/github to install from an already cloned down of an agent repo
If Mythic is already running, start the container with:
Documentation
View the rendered documentation by clicking on Docs -> Agent Documentation in the upper right-hand corner of the Mythic interface.
Features
Loaders
Shellcode Loader - Native C++ loader (exe/dll/xll) with 11 injection techniques, indirect syscalls, callstack spoofing, and compile-time guardrailsClickOnce - .NET 7 single-file publish with 7 injection methods - RISC loader with per-build randomised opcodes, XOR key deri, and encrypted instruction set. Supports 3 self-injection typesDLL Hijacking - Proxy DLL generation with export forwarding from any target DLL for sideloading chainsLinux Loaders - ELF executable and shared object (.so) for LD_PRELOAD delivery, with 4 injection techniquesmacOS Loaders - Mach-O executable and dylib with MAP_JIT and Mach thread injectionInjection Techniques
| # | Technique | Type |
|---|-----------|------|
| 1 | NtMap | Remote |
| 2 | CreateFiber | Self |
| 3 | EarlyCascade | Remote |
| 4 | PoolParty (RemoteTpDirectInsertion) | Remote |
| 5 | NtQueueApcThread | Remote |
| 6 | ModuleStomp | Self |
| 7 | KernelCallbackTable | Self |
| 8 | TxfHollow | Remote |
| 9 | PoolPartyJobApc (RemoteTpJobDirectInsertion) | Remote |
| 10 | ProcessHollow | Remote |
| 11 | FunctionStomp | Self |
Linux supports mmap_thread, memfd_exec, process_, and ptrace injection. macOS supports mmap_pthread (MAP_JIT) and mach_thread.
Triggers
Windows (23): LNK, BAT, MSI, MSC, HTA, URL, JScript/WSF, CHM, HTML Smuggling, HTML Encrypted (PBKDF2 password-gated), HTML Geofenced (country-code filtering), S, ClickFix (clipboard-lure CAPTCHA), SearchMS, UDL, QR, AppDomain, Extension (.vsix), OneNote, CMSTP, Regsvr32/Squiblydoo, XSL Transform, InstallUtil
Linux (4): Bash, XDG Desktop, HTML Smuggling, QR
macOS (8): .command, AppleScript, PKG Installer, App Bundle (unsigned), App Bundle (ad-hoc signed), DMG, HTML Smuggling, QR
Containers
ISO,
VHD,
7z,
Zip,
MSI,
Electron (fake NSIS installer with interaction-gated guardrails),
AppInstaller/
MSIXAny inner container can be wrapped in an outer ISO, VHD, ZIP, or 7z transport for two-layer delivery chains.
MalDocs
Excel: XLSM, XLSX, XLAM, XLL Add-In DLLWord: DOCM, DOC, DOCX with remote template injection (DOTM fetch on open)PowerPoint: PPTM, PPAM Add-In4 techniques: +CreateThread, EnumSystemLocalesA, QueueUserAPC, Process Hollowing natively on Linux without Office installedHTTP shellcode staging: RC4-encrypted shellcode uploaded to Mythic file store at build time, fetched and decrypted by VBA at runtime. No shellcode bytes or plaintext URLs in the documentObfuscation Pipeline
Shellcrypt chain: compression (
LZNT1/
RLE) -> encryption (
RC4/
XOR/
AES-ECB/
AES-CBC) -> encoding (
BASE64/
ASCII85/
ALPHA32/
WORDS256) with per-build auto-generated or operator-supplied keys.
E Stack
Indirect Syscalls - TartarusGate (default, x64), SysWhispers3 (x64), Heaven's Gate (x86 WoW64, 32-bit process issuing nati syscalls)Callstack Spoofing - Configurable gadget-host module list (defaults to ntdll/kernel32/kernelbase)NTDLL Unhook - 4 levels from disabled to selective Nt* function unhookingAMSI Bypass - 5 tiers (0-4) including a patchless hardware breakpoint + that writes no bytes to amsi.dllETW Bypass - 4 tiers (0-3) including EtwE, EtwE, and provider unregistrationSleep Obfuscation - 5 modes: None, WaitableTimer, Ekko-lite (XOR PE sections), Exhaustion (Fibonacci burn + API hammering + memory touch), Full Ekko (Ekko-lite + stack XOR + PE header wipe)Compile-time Guardrails - IsDebuggerPresent, remote debugger, debugger processes, hardware breakpoints, timing anomalies, sandbox en checks, host/user/IP/domain allowlistsPE Sanitisation - Strips MinGW fingerprints, rich header, PE timestamp, debug directorySelf-Hunt Rules - Per-build YARA + Sigma rule generation for operator Code Signing
Self-signed, URL-spoofed (clone a legitimate website's cert details), or operator-provided PFX/P12 certificates applied via
osslsigncode.
Persistence
Electron container: Registry Run Key, RunOnce, Startup Folder, Scheduled Task
Standalone plugins: COM Hijacking (T1546.015), WMI Event Subscription (T1546.003), macOS LaunchAgent (T1543.001)
Additional Capabilities
Shellcode Sources - Mythic-wrapped C2 agent or any external C2 (Cobalt Strike, Havoc, Sliver, msfvenom) shellcode uploadDonut Integration - Convert PE/.NET assemblies to shellcodeMSI Backdooring - Inject payload into existing MSI installersRedirector Config Generation - Apache .htaccess, Nginx, Caddyfile, Terraform stubsPhishing Page Generation - Credential capture page with redirect and GoPhish webhook supportDecoy Documents - Custom decoy file inclusion for social engineeringIOC Tracking - Automated hash collection and IOC report generationBuild All Configurations - Matrix build of all trigger/container combinationsPlugin System - Drop-in Python plugins for triggers, containers, loaders, and persistence. No core code changes neededKnown Issues
of Entry Point injection is not functional as of v0.1.0DLL hijacking may skip mangled C++ export names during proxy generationCHM and OneNote triggers require Erebus.Helper (deferred build on Windows)Bug Fixes
[v0.2.0]
Switched to async build calls to prevent container appearing offline during payload compilationFixed DLL proxy generation issues with ordinal-only exportsFixed DLL hijacking payload builderFixed shellcrypt option bugFixed extension trigger (switched to spawn process)Added patchless AMSI bypass (HW-BP + VEH)Added extension (.vsix) trigger pluginAdded OneNote trigger pluginAdded LOLBAS triggers (CMSTP, Regsvr32, XSL Transform, InstallUtil)Added injection types 9-11 (PoolPartyJobApc, ProcessHollow, FunctionStomp)Added standalone persistence plugins (COM Hijack, WMI Subscription, LaunchAgent)Added Full Ekko sleep obfuscation with stack XOR and PE header wipeFixed docs container crashing on ambiguous page references[v0.1.0]
Fixed and added staged loader Direct Files DownloadAdded Electron fake-installer container with interaction-gated guardrailsAdded HTML smuggling, S, ClickFix triggersAdded callstack spoofing (configurable gadget-host modules)Added SysWhispers3 and Heaven's Gate syscall implementationsAdded PE sanitisation and self-hunt rule generationAdded DOCM, DOC, PPTM, PPAM, remote template injection maldocsAdded compile-time execution guardrailsAdded Linux and macOS loader supportRefactored codebase for plugin architecture[v0.0.2]
Fixed issues with XLL source code savingGenerated build_xll.bat for nati recompilationImpro handling and output messages during build processFixed MSI Backdoor injectorAdded MSC GrimReaper triggerAdded support for larger shellcodes (Apollo, Athena, etc.)[v0.0.1]
Minor issues with build stepsLoader decompression bugsContributions
This project would not be possible without the awesome support and tooling from these operators, thank you all!
Mariusz Banach (Mgeeky)Jordan Jay (0xLegacyy): - Shellcrypt
Cody Thomas (its-a-feature): - Mythic Red Team Framework
- Apollo Agent
- Service Wrapper
- Helping out with my silly questions
项目信息
开发语言:Python
Star 数:229
技术要点
该项目属于病毒分析方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Erebus is an Initial Access wrapper for the Mythic Command & Control Server. It converts shellcode into payloads specifically used for phishing and IA operations.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
使用与学习建议
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
免责声明
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。