
IKEv2, ikeext.dll, CVE-2026-33824, double libération, grooming du tas, ROP, fragmentation SKF, exploit Windows, anti-débogage, obfuscation, crochetage d'API, shellcode, shell inversé
⚠️ Projet en cours de finalisation. NON entièrement fonctionnel dans l'état actuel.
EpSiLoNPoInTIkEv2.cpp est un prototype d'exploit C/C++ ciblant Windows, développé autour d'une exploitation
de type double-free dans ikeext.dll (driver IKEv2 de Windows), référencé
en cours de recherche sous CVE-2026-33824.
Le projet regroupe :
EpSi_OBF_ENDL / obfusheader inspiré)Le code utilise une couche d'obfuscation lourde activée à la compilation via #define EpSi_OBF_ENDL.
Basé sur obfusheader.h, adapté et étendu.
FAKE_SIGNS == 1)Des sections PE personnalisées sont injectées dans le binaire pour tromper les scanners de protecteurs connus :
.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), etc.0x45,0x6e,0x69,...), Denuvo (0x64,0x65,0x6E,...).FAKE_DONGLE[] imitant des dongles matériels : skeydrv.dll, HASPDOSDRV,
MARXDEV1.SYS, WIBUKEY, SNTNLUSB, RNBOspro, etc.VIRT == 1)Toutes les opérations arithmétiques et logiques peuvent être routées dans une VM interne
(Obfh_VirtualMachine) :
OP__ADD, OP__SUB, ..., OP__NOP) sont générés aléatoirement à la
compilation via __COUNTER__ et RND()._VM_ENCRYPT_INT(value) = (value - _VM_MUTATOR_KEY) * ~SALT_CMD.* -1), et passés avec des junk values.goto, de faux case négatifs, de BREAK_STACK_* (inline ASM
xor; jz; .byte 0xE8; cpuid), de faux JMP (.byte 0xFF, 0x25) et de blocs de faux code
x86_64 pour tromper les décompilateurs.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, etc.NO_CFLOW != 1)#define if(cond) : chaque if injecte un appel __s_rdtsc() et un BAD_CALL mort.#define else : injecte un else if (0) { BAD_CALL; } mort avant le vrai else.#define while(...) : conditionné par __s_rdtsc() != 0.1 et un check de pointeur absurde.#define for(...) : conditionné par OBFUS_CONDITION_BLOCK.#define switch(...) : conditionné par OBFUS_CONDITION_BLOCK.#define break : injecte if (OBFUS_CONDITION_BLOCK) BREAK_STACK_1 avant chaque break.HIDE_STRING)STACK_STRING(str) : pousse la string sur la stack via compound literal.HIDE_STRING(str) : combine obfh_process_hidden_string() + __s_rdtsc() avec BAD_JMP
mort pour masquer la string dans le binaire.Toutes les fonctions CRT et Win32 sont redirigées :
GetProcAddress(LoadLibraryA("msvcrt"), ...) dynamique : 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() sur tous les paramètres : 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 remplacé par GetProcAddress_custom : parcours manuel de l'IMAGE_EXPORT_DIRECTORY
(parse PE : e_lfanew, IMAGE_NT_HEADERS, IMAGE_DIRECTORY_ENTRY_EXPORT, AddressOfFunctions,
AddressOfNames, AddressOfNameOrdinals).LoadLibraryA obfusqué en chaîne de 6 wrappers imbriqués (LoadLibraryA_0 à LoadLibraryA_proxy),
avec reconstruction du nom de la DLL caractère par caractère via les variables volatiles
_k, _e, _r, _n, _e, _l et sprintf.ANTI_DEBUG_V2 == 1)ThreadCompareDRs) : SuspendThread sur le thread principal, GetThreadContext
avec CONTEXT_DEBUG_REGISTERS, vérification de Dr0–Dr3, Dr7, zeroing via ad_ZeroDRs.IsDebuggerPresent_proxy : charge kernel32.dll dynamiquement, reconstruit le nom de la
fonction IsDebuggerPresent caractère par caractère via les variables volatiles (_I, _s, _D, _e, _b, _u, _g, _g, _e, _r, _P, _r, _e, _s, _e, _n, _t), appel via GetProcAddress.ANTI_DEBUG : double check IsDebuggerPresent() || IsDebuggerPresent_proxy(),
déclenche loop() (boucle infinie), .byte 0xED (IN privilegié), BREAK_STACK_1, ret ASM,
puis crash() (int $3 + .byte 0xED, 0x00).9 variantes de séquences inline ASM insérées dans les fonctions sensibles :
xor; jz; .byte 0xE8; cpuid (variations sur eax, ebx, edx), faux opcodes 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 bytes nonce), IKE_KEY_EXCHANGE_PAYLOAD (DH 256 bytes),
IKE_NOTIFY_PAYLOAD, IKE_VENDOR_ID_PAYLOAD, IKE_SKF_FRAGMENT_PAYLOAD.
Transforms configurés : AES-CBC-128 (12), PRF HMAC-SHA2-256 (5),
INTEG HMAC-SHA2-256-128 (12), DH MODP-2048 (14).
IKE_DDOS_AMPLIFIER_PAYLOAD : facteur d'amplification + 64 octets trigger.IKE_DDOS_LOOP_PAYLOAD : compteur de boucle + 32 octets loop_code.IKE_DDOS_MEMORY_PAYLOAD : taille/count allocation + 64 octets heap spray data.