C2 Agent for Mythic with advanced evasion capabilities, supporting dotnet/powershell/shellcode/BOF memory execution, lateral movement, pivoting, and more. Kharon is a fully Position-Independent Code (PIC) shellcode.
Important
This project is under development.
- Token Manipulation (fix)
- Beacon SMB
- Socks
- Upload/Download
- WinRM Exec
- HTTP/S: Web-based encrypted communication
- SMB: Named pipe-based C2 channel
- Uses hardware breakpoints to bypass AMSI/ETW.
- Sleep obfuscation via timers.
- Heap obfuscation during sleep (XOR).
- Indirect syscalls.
- Call stack spoofing.
Supports injection of dotnet assembly, shellcode, and Beacon Object File (BOF). All execution is inline with exception of the shellcode for a while.
Allows customization of injection techniques, including:
- Allocation: DripAlloc or standard allocation.
- Writing: WriteMemoryAPC or standard memory writing (for inline is just used custom memcpy).
- Dotnet: Can inject .NET assembly and execution in memory.
- Powershell: Its using PowerPick, you can pass the command for execution.
- Shellcode: Standard shellcode execution in memory, Support to use your own shellcode to execute post-ex operations.
- BOF (Beacon Object File): Beyond standard BOF execution, the agent provides custom APIs such as metioned in documentation. Future updates may include more APIs. The advantage of using these APIs is that they execute in the preferred context with stack spoofing and/or indirect syscalls.
Advanced movement techniques:
- WMI: Windows Management Instrumentation execution
- SCM: Service-based execution with custom implementation
- WinRM: Windows Remote Management execution via COM without spawn powershell binary
- PPID Spoofing: Masquerade as child of legitimate processes (explorer.exe, svchost.exe, etc.)
- BlockDLL Enforcement: Restrict non-Microsoft DLL injection
Some command to kerberos interaction like klist, ptt, describe, triage, s4u and more.
- Registry Interaction
- SCM Interaction
- Token Manipulation
- Some Netapi32 commands
- Slack cookie dump
- ipconfig, whoami, env, arp, dns cache and uptime
Check the References!
