Lack of System Registers and two simple anti-forensic attacks - AVTokyo 2009

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Lack of System Registers and two simple anti-forensic attacks - AVTokyo 2009 - Presentation Transcript

    1. Lack of System Registers and two simple anti-forensic attacks Tsukasa Ooi <li@livegrid.org> Lead Analyst, Livegrid Incorporated
    2. Related Topics • Live Memory Forensics • Anti-forensics • Rootkits
    3. What is “anti-forensics”? • The way to prevent forensics • Not only attackers! – Anti-forensics is also useful for bad guys to prevent OWN MACHINE to be forensically analyzed • But forget it. – I’m not talking about this…
    4. I will be Taking at: • PacSec 2009 Stealthy Rootkit – How bad guy fools live memory forensics?
    5. Live Memory Forensics/Imaging • Forensics based on memory of running machine • Done by Memory Acquisition Tools – EnCase – dd –…
    6. What Physical Memory Acquisition Tools Do? • Acquire contents of Physical Memory • Acquire System Registers (optional) Really, “optional”?
    7. What rootkits can do? • Can fake forensics software without acquiring contents of System Registers.
    8. Really? • Many software does! – EnCase – (RAW) dd – Memoryze – WinEN – FastDump – …
    9. Way to attack – part one (1) • Modify CR3 Registers (Pointer to Paging Structure)
    10. Way to attack – part one (2) CR3 that forensic software recognized Kernel Kernel Kernel (unmodified) (malicious) real CR3
    11. Way to attack – part one (3) • If System Registers are missing, forensic software finds signatures of system. • But these mechanism are very easy to fool.
    12. Way to attack – part one (4) • Keep system (physical) memory range unmodified • Create backup region • Copy part of kernel and patch backup • Change CR3 to rootkit’s one
    13. Way to attack – part one (5) CR3 that forensic software recognized Kernel Kernel Kernel (unmodified) (malicious) real CR3
    14. Way to attack – part one (6) • But this attack is a bit difficult because rootkit must manage its own page table. • There is one more way that is very easy!
    15. Way to attack – part two (1) IDTR/IA32_SYSENTER_EIP recognized Kernel Kernel Rootkit (unmodified) Code real IDTR/IA32_SYSENTER_EIP
    16. Way to attack – part two (2) • IDTR is a system register managing interrupts and exceptions – Including page faults • IA32_SYSENTER_EIP MSR / LSTAR_MSR is a pointer to system call entry – Can hook/modify system calls
    17. Way to attack – part two (3) • Way to implement: <Begin> Change these registers <End> Very easy right? • These are widely used by current rootkits but also useful for anti-forensics – If attacker hide rootkit somewhere in the memory, there are no general ways to detect these attacks!
    18. Way to prevent these attacks (1) • Acquire these system registers – CR3 – IDTR – IA32_SYSENTER_EIP MSR – LSTAR_MSR • (If rootkit use CR3/IDTR) Check physical and logical memory layout
    19. Way to prevent these attacks (2) • Interrupt Descriptor Table layout and Page Table layout are easy to detect • So… – Find these tables – Check if these tables are “malicious”
    20. Conclusion • Acquire system registers as possible • New approach for forensics is needed
    21. Have any questions? THANK YOU Tsukasa Ooi <li@livegrid.org> Livegrid Incorporated, Lead Analyst
    22. Technical Articles and Sources • … will be available December, 2009 • at http://a4lg.com/
    SlideShare Zeitgeist 2009

    + Tsukasa OoiTsukasa Ooi Nominate

    custom

    64 views, 0 favs, 0 embeds more stats

    More info about this document

    CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

    Go to text version

    • Total Views 64
      • 64 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories