Hijacking the Boot Process, Ransomware Style
summary
Explains how Petya replaces the first sector (MBR or GPT protective MBR) with malicious boot code, XORs the original MBR with XOR 0x37, writes a tiny kernel beginning at writes kernel from sector 22, then reboots to run kernel-mode code that encrypts the NTFS MFT (not individual files). Demonstrates the filesystem and disk I/O calls (CreateFile + DeviceIoControl), shows sector size 0x200 and markers, and debugs the boot code live with uses Bochs and HDHacker to prove the attack and recovery window before reboot.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 2:05Disk architecture basics
- 7:45Malware analysis overview
- 10:22Analyzing Petya infection
- 14:45Encryption of boot sectors
- 17:24Using forensic tools
- 21:09Infection and recovery
- 26:05Debugging the boot process
- 33:36Master file table encryption
- 37:15Ransomware display and logic
- 45:36Summary and Q&A
