0Pricing
Reverse Engineering & Binary Analysis Basics · Lección

Mitigaciones modernas de exploits y sus evasiones

Comprenda las defensas que se interponen entre una vulnerabilidad y un exploit funcional: ASLR, DEP/NX, canarios de pila y CFG, así como las ideas generales para evadirlas.

Mitigaciones modernas de exploits y sus evasiones es una lección gratuita de Reverse Engineering & Binary Analysis Basics en CoddyKit. Esta es la lección 4 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Reverse Engineering & Binary Analysis Basics, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Reverse Engineering & Binary Analysis Basics incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

Why Exploits Got Harder

You can identify binary vulnerabilities, fuzz for bugs, and understand exploit primitives. Modern systems add mitigations that turn an easy bug into a hard one.

Knowing these defenses tells you what a working exploit must overcome.

Data Execution Prevention (DEP/NX)

DEP (a.k.a. the NX bit) marks memory as non-executable. Code injected onto the stack will not run.

This killed classic 'shellcode on the stack' attacks and pushed exploiters toward code reuse.

Return-Oriented Programming

To bypass DEP, attackers reuse existing executable code. ROP chains together short instruction sequences (gadgets) ending in ret to perform arbitrary actions without injecting code.

; a gadget
pop rdi
ret
; chained: set rdi, then call a real function

Address Space Layout Randomization

ASLR randomizes where modules, stack, and heap load each run, so attackers cannot hardcode addresses.

Without a known address, both shellcode and ROP gadgets are hard to target.

Defeating ASLR with Leaks

ASLR is bypassed with an information leak: a bug that discloses a real runtime address. From one leaked pointer you compute the module base and locate your gadgets.

Many modern exploits are really 'leak then exploit' two-stage attacks.

Stack Canaries

A stack canary is a random value placed before the saved return address. A linear stack overflow overwrites it, and the function aborts on mismatch.

; epilogue check
mov rax, [rbp-8]
xor rax, fs:[0x28]
jne __stack_chk_fail

Bypassing Canaries

Canaries are defeated by:

  • Leaking the canary value, then writing it back unchanged
  • Overwriting structures that skip the check (e.g. a non-linear write)

This is why info leaks are so valuable.

Control-Flow Integrity

CFI and Windows' CFG validate indirect calls and returns against a set of legitimate targets, breaking many ROP chains.

Hardware features like Intel CET add a shadow stack to protect return addresses.

RELRO and Fortify

Other hardening you will encounter:

  • Full RELRO makes the GOT read-only, blocking GOT-overwrite tricks
  • FORTIFY_SOURCE adds bounds checks to common functions

Check which are enabled before planning an approach.

checksec --file=./target
# RELRO: Full   Canary: Yes   NX: Yes   PIE: Yes

The Mitigation Mindset

Exploit development is an enumerate-then-bypass process: list active mitigations, then find the bug or leak that neutralizes each. Strong defenses do not make exploitation impossible, only more demanding.

PIE and Position Independence

PIE (Position Independent Executable) lets ASLR randomize the main binary itself, not just libraries. Without PIE, the executable loads at a fixed base, giving attackers reliable gadget addresses.

checksec reporting 'PIE: No' is a meaningful weakness worth noting.

Quick Check

Which technique is specifically designed to bypass DEP/NX by reusing existing executable code instead of injecting new code?

Recap

You now map the modern defensive landscape:

  • DEP/NX blocks injected code; ROP reuses existing code
  • ASLR randomizes addresses; info leaks defeat it
  • Canaries, CFI/CFG, RELRO add further hurdles

Real exploitation means enumerating these and chaining bugs to bypass each.

Preguntas frecuentes

¿La lección «Mitigaciones modernas de exploits y sus evasiones» es gratis?

Sí — el texto completo de «Mitigaciones modernas de exploits y sus evasiones» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Reverse Engineering & Binary Analysis Basics, actualiza a CoddyKit PRO. El curso de Reverse Engineering & Binary Analysis Basics incluye 4 lecciones en total.

¿Qué aprenderé en «Mitigaciones modernas de exploits y sus evasiones»?

Comprenda las defensas que se interponen entre una vulnerabilidad y un exploit funcional: ASLR, DEP/NX, canarios de pila y CFG, así como las ideas generales para evadirlas. Practicas Reverse Engineering & Binary Analysis Basics con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar Reverse Engineering & Binary Analysis Basics?

No se requiere experiencia previa. Reverse Engineering & Binary Analysis Basics en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 4 de 4.

¿Cuánto tiempo toma la lección «Mitigaciones modernas de exploits y sus evasiones»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de Reverse Engineering & Binary Analysis Basics?

Sí. Cada lección de Reverse Engineering & Binary Analysis Basics incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. Identificación de vulnerabilidades en binarios
  2. Introducción al fuzzing
  3. Panorama de las primitivas de explotación
  4. Mitigaciones modernas de exploits y sus evasiones
← Volver a Reverse Engineering & Binary Analysis Basics