
IKEv2, ikeext.dll, CVE-2026-33824, double free, heap grooming, ROP, frammentazione SKF, exploit per Windows, anti-debug, offuscamento, API hooking, shellcode, reverse shell
⚠️ Progetto in fase di finalizzazione. NON completamente funzionante nello stato attuale.
EpSiLoNPoInTIkEv2.cpp è un prototipo di exploit C/C++ che prende di mira Windows, sviluppato attorno a uno sfruttamento
di tipo double-free in ikeext.dll (driver IKEv2 di Windows), referenziato
nel corso della ricerca come CVE-2026-33824.
Il progetto comprende:
EpSi_OBF_ENDL / obfusheader ispirato)Il codice utilizza un livello di offuscamento pesante attivato in fase di compilazione tramite #define EpSi_OBF_ENDL.
Basato su obfusheader.h, adattato ed esteso.
FAKE_SIGNS == 1)Sezioni PE personalizzate vengono iniettate nel binario per ingannare gli scanner di protettori noti:
.vmp0, .vmp1, .vmp2 → VMProtectUPX0 → UPX.enigma1, .enigma2 → Enigma Protector.winlice → Themida.petite, .aspack, .adata, .rlp, .vlizer, .arch, .alien, .pwdprot,
.dsstext, logicoma, __wibu00, __wibu01, PETETRIS, .tw, .rdata (Nuitka), .text (Screen2Exe), ecc.0x45,0x6e,0x69,...), Denuvo (0x64,0x65,0x6E,...).FAKE_DONGLE[] che imita dongle hardware: skeydrv.dll, HASPDOSDRV,
MARXDEV1.SYS, WIBUKEY, SNTNLUSB, RNBOspro, ecc.VIRT == 1)Tutte le operazioni aritmetiche e logiche possono essere instradate in una VM interna
(Obfh_VirtualMachine):
OP__ADD, OP__SUB, ..., OP__NOP) vengono generati casualmente in fase di
compilazione tramite __COUNTER__ e RND()._VM_ENCRYPT_INT(value) = (value - _VM_MUTATOR_KEY) * ~SALT_CMD.* -1) e passati con junk values.goto, falsi case negativi, BREAK_STACK_* (inline ASM
xor; jz; .byte 0xE8; cpuid), falsi JMP (.byte 0xFF, 0x25) e blocchi di falso codice
x86_64 per ingannare i decompilatori.VM_ADD, VM_SUB, VM_MUL, VM_DIV, VM_MOD, VM_EQU, VM_NEQ,
VM_LSS, VM_GTR, VM_LEQ, VM_GEQ, VM_OBF_INT, VM_ADD_DBL, VM_MUL_DBL, ecc.NO_CFLOW != 1)#define if(cond): ogni if inietta una chiamata __s_rdtsc() e un BAD_CALL morto.#define else: inietta un else if (0) { BAD_CALL; } morto prima del vero else.#define while(...): condizionato da __s_rdtsc() != 0.1 e da un controllo del puntatore assurdo.#define for(...): condizionato da OBFUS_CONDITION_BLOCK.#define switch(...): condizionato da OBFUS_CONDITION_BLOCK.#define break: inietta if (OBFUS_CONDITION_BLOCK) BREAK_STACK_1 prima di ogni break.HIDE_STRING)STACK_STRING(str): spinge la stringa sullo stack tramite compound literal.HIDE_STRING(str): combina obfh_process_hidden_string() + __s_rdtsc() con BAD_JMP
morto per mascherare la stringa nel binario.Tutte le funzioni CRT e Win32 vengono reindirizzate:
GetProcAddress(LoadLibraryA("msvcrt"), ...) dinamico: printf, scanf,
sprintf, strlen, strcmp, strcpy, strtok, memset, memcpy, strchr, strrchr,
rand, realloc, calloc, fopen, fclose, fread, fwrite, exit, snprintf,
vsprintf, vsnprintf, getenv, system, abort, atexit, getcwd, tolower, toupper.obfh_int_proxy() su tutti i parametri: CreateFile,
ReadFile, WriteFile, CloseHandle, VirtualAlloc, VirtualFree, CreateThread,
WaitForSingleObject, WaitForMultipleObjects, ExitProcess, GetModuleHandle,
GetModuleFileName, HeapCreate, HeapAlloc, HeapFree, GlobalAlloc, GlobalFree,
GetTempPath, SetEvent, ResetEvent, Sleep, memmove, GetParent, GetWindowRect,
GetClientRect, SetWindowPos, SetConsoleTextAttribute, GetDesktopWindow, GetStockObject.GetProcAddress sostituito da GetProcAddress_custom: scansione manuale di IMAGE_EXPORT_DIRECTORY
(parse PE: e_lfanew, IMAGE_NT_HEADERS, IMAGE_DIRECTORY_ENTRY_EXPORT, AddressOfFunctions,
AddressOfNames, AddressOfNameOrdinals).LoadLibraryA offuscato in una catena di 6 wrapper annidati (da LoadLibraryA_0 a LoadLibraryA_proxy),
con ricostruzione del nome della DLL carattere per carattere tramite le variabili volatili
_k, _e, _r, _n, _e, _l e sprintf.ANTI_DEBUG_V2 == 1)ThreadCompareDRs): SuspendThread sul thread principale, GetThreadContext
con CONTEXT_DEBUG_REGISTERS, verifica di Dr0–Dr3, Dr7, azzeramento tramite ad_ZeroDRs.IsDebuggerPresent_proxy: carica kernel32.dll dinamicamente, ricostruisce il nome della
funzione IsDebuggerPresent carattere per carattere tramite le variabili volatili (_I, _s, _D, _e, _b, _u, _g, _g, _e, _r, _P, _r, _e, _s, _e, _n, _t), chiamata tramite GetProcAddress.ANTI_DEBUG: doppio check IsDebuggerPresent() || IsDebuggerPresent_proxy(),
attiva loop() (ciclo infinito), .byte 0xED (IN privilegiato), BREAK_STACK_1, ret ASM,
poi crash() (int $3 + .byte 0xED, 0x00).9 varianti di sequenze inline ASM inserite nelle funzioni sensibili:
xor; jz; .byte 0xE8; cpuid (variazioni su eax, ebx, edx), falsi opcode 0x50, 0x20,
0x00, 0xEB, 0xE1 (x86), 0xFF, 0x25, 0xF1, 0xF2, 0xF3, 0xF4 (x86_64).
#include "runassys/ntnative.h"
#include "runassys/runassys.h"
#include "runassys/ntdll-stubs/ntdll-stubs.c"
#include "runassys/ntdll-stubs/ntdll.def.c"
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "iphlpapi.lib")
#pragma comment(lib, "bcrypt.lib")
#pragma comment(lib, "Version.lib")
IKEEXT_BASE_ADDRESS = 0x180000000g_IkeextDoubleFreeOffset = 0x12B960g_IkeextProcessIkePayload = 0x522200x1790A0), Import (0x179110), Exception (0x183000),
Reloc (0x18C000), LoadConfig (0x12AE70), Debug (0x155CD0).g_Offset_MMSA_SecurityRealmBlob = 0x208,
g_Offset_PacketContext_Blob = 0xC8.500 (UDP), shell callback: 4444.IKE_HEADER, IKE_SA_PAYLOAD, IKE_PROPOSAL_PAYLOAD, IKE_TRANSFORM_PAYLOAD,
IKE_NONCE_PAYLOAD (32 byte nonce), IKE_KEY_EXCHANGE_PAYLOAD (DH 256 byte),
IKE_NOTIFY_PAYLOAD, IKE_VENDOR_ID_PAYLOAD, IKE_SKF_FRAGMENT_PAYLOAD.
Transform configurati: AES-CBC-128 (12), PRF HMAC-SHA2-256 (5),
INTEG HMAC-SHA2-256-128 (12), DH MODP-2048 (14).
IKE_DDOS_AMPLIFIER_PAYLOAD: fattore di amplificazione + 64 byte trigger.IKE_DDOS_LOOP_PAYLOAD: contatore di loop + 32 byte loop_code.IKE_DDOS_MEMORY_PAYLOAD: dimensione/conteggio allocazione + 64 byte heap spray data.