founder moonsols sarl
play

Founder, MoonSols SARL msuiche@moonsols.com Founder of MoonSols - PowerPoint PPT Presentation

Matthieu Suiche Founder, MoonSols SARL msuiche@moonsols.com Founder of MoonSols SARL, based in France Various security services, Forensics Products, Trainings , Kernel code consulting Co-Organizer of Hackito Ergo Sum (April 2011, Paris


  1. Matthieu Suiche Founder, MoonSols SARL msuiche@moonsols.com

  2. Founder of MoonSols SARL, based in France Various security services, Forensics Products, Trainings , Kernel code consulting Co-Organizer of Hackito Ergo Sum (April 2011, Paris – France) Author of SandMan (Windows Hibernation File) Win 32/64 dd (Windows Memory Acquisition) Mac OS X Physical Memory Analysis Research MoonSols Windows Memory Toolkit LiveCloudKd http://msdn.moonsols.com (Online resource for undocumented structure definition) BlackHat, PacSec, CanSecWest etc. speakers.

  3. • New vulnerabilities • 0days • About guest to host escalation – It’s more about host to guest descalation • Free beers • Hot chicks

  4. • A Tool – Hyper-V – VMWare • Using physical memory of virtual machine as interface • Offensive / Defensive / Offensics / Forensics / Rootkits / Utilities / • MoonSols LiveCloudKd

  5. – Kernel developers – Kernel troubleshooters – Bug hunter – Investigator – Forensic Expert – Malware Analyst – Incident Responder

  6. • Your physical memory in a nutshell – Debugger – Read / Write access ? • New generation of Rootkits

  7. Remember when folks got excited about Ring - 1 Rootkit (BluePill, Vitriol, ...) ?

  8. Taking over the existing Hypervisor The physical memory

  9. • Since virtualization is widely used for servers. • Most of Hypervisors do have an “pause”/ ”suspend” feature of the state of the virtual machine. – State is saved and/or maintained on disk. – E.g. .vmem file with VMWare Workstation – E.g. .bin file with Microsoft Hyper-V

  10. 0.00 GB BIOS reserved 4096 B 2 GB 2.00 GB 512 MB RAM 2.50 GB Device Memory (MMIO) 1 GB 3.50 GB 512 MB 4.00 GB 2 GB 6.00 GB

  11. X 0 MB 0x1000 bytes on 32-bits system. Microsoft Crash Dump Header X 1 MB 0x2000 bytes on 64-bits system. X 1 MB X 2 MB X 3 MB X 3 MB X 4 MB X 5 MB X 5 MB

  12. • Bin2dmp – The Professional Edition can work with running VMWare Workstation Virtual Machine on vmem files. • MoonSols LiveCloudKd – Works with Microsoft Hyper-V R2 Virtual Machines.

  13. • Physical Memory • VMWare Workstation – .vmem files (raw mapping) • Microsoft Hyper-V – VM Infrastructure Driver (Vid.sys)

  14. • Hypervisor APIs has APIs to – Write Memory – Modify the processor state • EIP/RIP registers. • Half-documented kernel functions (winhv.sys) Hypervisor C-Language Functions http://msdn.microsoft.com/en-us/library/ff543229%28VS.85%29.aspx But mentioned functions do not exist … And there is no library in the WDK. (Create your own winhv.lib) HvWriteGpa -> WinHvWriteGpa Vid.h VidDefs.h (Singularity Version – Google it) Not in the WDK – Interface for vid.sys It looks like an intern copied the wrong files 

  15. • Administrator rights access required on the Microsoft Hyper-V hypervisor, to use these APIs. – Not with vmem file (SHARE_READ)

  16. • Works for Hyper-V Hypervisor and VMWare – Make possible to crash dump analyze VM – No debug mode required – Can also create either a raw or a Microsoft memory crash dump. – Windbg/Kd Write commands (eb/ed/e*) works! • In other words you can modify the guest memory if you want. – LiveKd 5 update (Hyper-V Only, Read Access only)

  17. User Interface Parent Partition (Host Machine) MoonSols DLL Information (Processes, …) VirtualMemory (HIBR, DMP, ..) VM 1 VM n VM 0 VM 2 Physical Memory Physical Memory Physical Memory Physical Memory

  18. Evil Virtual Machine Manager Code injection Code injection Code injection VM1 VM2 VM3

  19. • Be lazy, be efficient. • Forensic based research of memory analysis can be now used for a lot of things.

  20. Twitter: MoonSols or msuiche Email: msuiche@moonsols.com Web: http://www.moonsols.com Download LiveCloudKd @ www.moonsols.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend