~/talk

Dissecting a ransomware-infected MBR

Talkat Hack in Paris 2017 · 2017-06-22..06-23· [security]
links:none on file
slides:none on file

Walkthrough of Petya’s MBR attack shows the ransomware opens \\.\PhysicalDrive0 via CreateFile and DeviceIoControl, reads sector 0, XORs the data with 0x37 and writes a new MBR plus a tiny kernel starting at sector 0x22 that spans 16 sectors, then forces a reboot and encrypts the NTFS MFT rather than individual files. Analysis uses Process Monitor, WinObj, HDHacker and Bochs for BIOS-level debugging (no Win API available), and demonstrates the overwrite, kernel execution and Bitcoin ransom screen working end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08About me
  3. 1:50Smallpox
  4. 4:00MBR vs GPT
  5. 6:37GPT
  6. 7:58Pecha
  7. 8:15Execution flow
  8. 8:53Resolving normal malware
  9. 10:05Resolving xx section
  10. 11:56Device IO Control API
  11. 13:00Physical Drive Zero
  12. 14:14Winobj
  13. 15:40Process Monitor
  14. 16:31MBR
  15. 17:48Boot Sector Marker
  16. 18:31Overwrite MBR
  17. 21:51New MBR
  18. 25:10Debugging the MBR
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.