Stealthy Code Execution: Exploiting Continue Handlers and Data Corruption to Evade Windows Defence

In this presentation, we unveil novel code execution primitives and memory evasion techniques that bypass Windows security mitigations such as Control Flow Guard (CFG), eXtended Flow Guard (XFG), and mainstream antivirus (AV) and Endpoint Detection and Response (EDR) solutions. We introduce innovative methods leveraging Vectored Exception Handlers (VEH), Vectored Continue Handlers (VCH), hardware breakpoints, and page guards (PG) to execute arbitrary code while evading memory scanners and detection mechanisms. Additionally, we present a new data corruption attack that exploits writable virtual method table (VMT) pointers in the .data section of legitimate modules, enabling stealthy, threadless code execution in remote processes without generating classic indicators of compromise (IoCs) or using thread creation or memory protection alterations. Our research includes the development of a binary generator, a multi-layered evasion tool that integrates these techniques, demonstrating their effectiveness against prominent AV and EDR products. The new version of this tool will be released in due course. We discuss the implications of these findings on current defensive strategies and propose potential countermeasures to enhance system security.

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2024-11-06
DOI
https://doi.org/10.5281/zenodo.14047756
Primary Topic
Advanced Research in Science and Engineering
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Stealthy Code Execution: Exploiting Continue Handlers and Data Corruption to Evade Windows Defence

Zenodo (CERN European Organization for Nuclear Research)
Advanced Research in Science and Engineering
article

Stealthy Code Execution: Exploiting Continue Handlers and Data Corruption to Evade Windows Defence

article en

Abstract

In this presentation, we unveil novel code execution primitives and memory evasion techniques that bypass Windows security mitigations such as Control Flow Guard (CFG), eXtended Flow Guard (XFG), and mainstream antivirus (AV) and Endpoint Detection and Response (EDR) solutions. We introduce innovative methods leveraging Vectored Exception Handlers (VEH), Vectored Continue Handlers (VCH), hardware breakpoints, and page guards (PG) to execute arbitrary code while evading memory scanners and detection mechanisms. Additionally, we present a new data corruption attack that exploits writable virtual method table (VMT) pointers in the .data section of legitimate modules, enabling stealthy, threadless code execution in remote processes without generating classic indicators of compromise (IoCs) or using thread creation or memory protection alterations. Our research includes the development of a binary generator, a multi-layered evasion tool that integrates these techniques, demonstrating their effectiveness against prominent AV and EDR products. The new version of this tool will be released in due course. We discuss the implications of these findings on current defensive strategies and propose potential countermeasures to enhance system security.

Zenodo (CERN European Organization for Nuclear Research)
Peace, Justice and strong institutions
Openalex Percentile: Top 58%
Advanced Research in Science and Engineering
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.