caret analysis of multithreaded programs
play

CARET analysis of multithreaded programs Huu-Vu Nguyen 1 , Tayssir - PowerPoint PPT Presentation

CARET analysis of multithreaded programs Huu-Vu Nguyen 1 , Tayssir Touili 2 1 University Paris Diderot and LIPN 2 LIPN, CNRS and University Paris 13 Motivation Malware detection is a big challenge. Existing Techniques (not robust)


  1. CARET analysis of multithreaded programs Huu-Vu Nguyen 1 , Tayssir Touili 2 1 University Paris Diderot and LIPN 2 LIPN, CNRS and University Paris 13

  2. Motivation Malware detection is a big challenge. Existing Techniques (not robust) Signature-matching based technique: can easily be overcome by obfuscation techniques Code emulation based techniques: limitation in execution time CARET analysis of multithreaded programs 2 / 42

  3. Motivation Malware detection is a big challenge. Existing Techniques (not robust) Signature-matching based technique: can easily be overcome by obfuscation techniques Code emulation based techniques: limitation in execution time Solution to have a robust technique Model-checking for malware detection allow us to analyse the behaviors (not the syntax) of the program without executing it CARET analysis of multithreaded programs 2 / 42

  4. Model-checking for Malware Detection CARET analysis of multithreaded programs 3 / 42

  5. Model-checking for Malware Detection CARET analysis of multithreaded programs 4 / 42

  6. Model-checking for Malware Detection CARET analysis of multithreaded programs 5 / 42

  7. Model-checking for Malware Detection CARET analysis of multithreaded programs 6 / 42

  8. Model-checking for Malware Detection CARET analysis of multithreaded programs 7 / 42

  9. Model-checking for Malware Detection CARET analysis of multithreaded programs 8 / 42

  10. Model-checking for Malware Detection CARET analysis of multithreaded programs 9 / 42

  11. Model-checking for Malware Detection CARET analysis of multithreaded programs 10 / 42

  12. Model-checking for Malware Detection CARET analysis of multithreaded programs 11 / 42

  13. Model-checking for Malware Detection CARET analysis of multithreaded programs 12 / 42

  14. Why Pushdown Systems? Stack of binary codes important for malware detection [Song and Touili 2012, 2013] Pushdown Systems (PDSs) natural model of sequential programs allow taking into account the procedure contexts and stack content in the model CARET analysis of multithreaded programs 13 / 42

  15. Why Pushdown Systems? Stack of binary codes important for malware detection [Song and Touili 2012, 2013] Pushdown Systems (PDSs) natural model of sequential programs allow taking into account the procedure contexts and stack content in the model PDSs for Binary Codes Control locations of PDSs correspond to program points Stack of PDSs correspond to stack of binary programs CARET analysis of multithreaded programs 13 / 42

  16. Model-checking for Malware Detection = ⇒ Problem: This can be applied only for sequential programs. However, several malware is concurrent. CARET analysis of multithreaded programs 14 / 42

  17. Concurrent Malware Example The email worm Bagle is a multithreaded malware: Main thread: register itself into the registry listing: to be started at the boot time Thread 2: listen on port 6777 to receive different commands; allow the attackers to upload new file, ... Thread 3: contacts a list of websites every 10 minutes: to announce the infection of the current machine Thread 4: is spawn to search on local drives to look for valid email addresses, ...then send itself to these found emails. CARET analysis of multithreaded programs 15 / 42

  18. Concurrent Malware Example The email worm Bagle is a multithreaded malware: Main thread: register itself into the registry listing: to be started at the boot time Thread 2: listen on port 6777 to receive different commands; allow the attackers to upload new file, ... Thread 3: contacts a list of websites every 10 minutes: to announce the infection of the current machine Thread 4: is spawn to search on local drives to look for valid email addresses, ...then send itself to these found emails. How instances of threads are spawn? Thread 1 dynamically spawn instances of Thread 2,3,4 depending on the needs The number of instances is not fixed, depending on specific executions Instances of threads can be spawn dynamically during executions CARET analysis of multithreaded programs 15 / 42

  19. Concurrent Malware Example The email worm Bagle is a multithreaded malware: Main thread: register itself into the registry listing: to be started at the boot time Thread 2: listen on port 6777 to receive different commands; allow the attackers to upload new file, ... Thread 3: contacts a list of websites every 10 minutes: to announce the infection of the current machine Thread 4: is spawn to search on local drives to look for valid email addresses, ...then send itself to these found emails. How instances of threads are spawn? Thread 1 dynamically spawn instances of Thread 2,3,4 depending on the needs The number of instances is not fixed, depending on specific executions Instances of threads can be spawn dynamically during executions = ⇒ Bagle is a multithreaded malware, with dynamic thread creation during its execution. How to model such a concurrent malware? CARET analysis of multithreaded programs 15 / 42

  20. How to model such concurrent malware? Ideas 1 PDS is a natural model for sequential malware. 2 = ⇒ networks of PDSs can model concurrent malware. 3 = ⇒ networks of PDSs with dynamic creation can model concurrent malware with dynamic creations. 4 = ⇒ Dynamic Pushdown Networks [Bouajjani, M¨ uller-Olm and Touili 2005] match our needs. CARET analysis of multithreaded programs 16 / 42

  21. How to model such concurrent malware? Ideas 1 PDS is a natural model for sequential malware. 2 = ⇒ networks of PDSs can model concurrent malware. 3 = ⇒ networks of PDSs with dynamic creation can model concurrent malware with dynamic creations. 4 = ⇒ Dynamic Pushdown Networks [Bouajjani, M¨ uller-Olm and Touili 2005] match our needs. Dynamic Pushdown Networks (DPNs) A DPN: a networks of Dynamic PDSs a Dynamic PDS: is a PDS with the ability to spawn new instances of PDSs during its runs CARET analysis of multithreaded programs 16 / 42

  22. Definition of PDSs A Pushdown System (PDS) P is a tuple ( P , Γ , ∆), where P is a finite set of control locations Γ is a finite set of stack alphabet ∆ is the set of transition rules of the following form: call ( r 1 ): p γ − − → p 1 γ 1 γ 2 ret ( r 2 ): p γ − → p 1 ǫ int ( r 3 ): p γ − → p 1 ω where p , p 1 ∈ P , γ, γ 1 , γ 2 ∈ Γ, ω ∈ Γ ∗ CARET analysis of multithreaded programs 17 / 42

  23. Definition of PDSs A Pushdown System (PDS) P is a tuple ( P , Γ , ∆), where P is a finite set of control locations Γ is a finite set of stack alphabet ∆ is the set of transition rules of the following form: call ( r 1 ): p γ − − → p 1 γ 1 γ 2 ret ( r 2 ): p γ − → p 1 ǫ int ( r 3 ): p γ − → p 1 ω where p , p 1 ∈ P , γ, γ 1 , γ 2 ∈ Γ, ω ∈ Γ ∗ call A rule of the form p γ − − → p 1 γ 1 γ 2 corresponds to a call statement call proc usually models a statement of the form γ − − − − − → γ 2 γ is the control point of the program where the function call is made, γ 1 is the entry point of the called procedure and γ 2 is the return point of the call. CARET analysis of multithreaded programs 17 / 42

  24. Definition of PDSs A Pushdown System (PDS) P is a tuple ( P , Γ , ∆), where P is a finite set of control locations Γ is a finite set of stack alphabet ∆ is the set of transition rules of the following form: call ( r 1 ): p γ − − → p 1 γ 1 γ 2 ret ( r 2 ): p γ − → p 1 ǫ int ( r 3 ): p γ − → p 1 ω where p , p 1 ∈ P , γ, γ 1 , γ 2 ∈ Γ, ω ∈ Γ ∗ call A rule of the form p γ − − → p 1 γ 1 γ 2 corresponds to a call statement call proc usually models a statement of the form γ − − − − − → γ 2 γ is the control point of the program where the function call is made, γ 1 is the entry point of the called procedure and γ 2 is the return point of the call. A configuration: p ω where p ∈ P is the current control location, ω ∈ Γ ∗ is the current stack content. CARET analysis of multithreaded programs 17 / 42

  25. Definition of DPNs A Dynamic Pushdown Network (DPN) M is a set {P 1 , ..., P n } s.t. for every 1 ≤ i ≤ n , P i = ( P i , Γ i , ∆ i ) is a Dynamic Pushdown System (DPDS) ( NonSpawn )( r 1 ) p γ call − − → i p 1 γ 1 γ 2 ( NonSpawn )( r 2 ) p γ ret − → i p 1 ǫ ( NonSpawn )( r 3 ) p γ int − → i p 1 ω 1 CARET analysis of multithreaded programs 18 / 42

  26. Definition of DPNs A Dynamic Pushdown Network (DPN) M is a set {P 1 , ..., P n } s.t. for every 1 ≤ i ≤ n , P i = ( P i , Γ i , ∆ i ) is a Dynamic Pushdown System 1 ≤ j ≤ n P j × Γ ∗ (DPDS) where p s ω s ∈ � j ( NonSpawn )( r 1 ) p γ call − − → i p 1 γ 1 γ 2 ( NonSpawn )( r 2 ) p γ ret − → i p 1 ǫ ( NonSpawn )( r 3 ) p γ int − → i p 1 ω 1 ( Spawn ) ( r 4 ) p γ call − − → i p 1 γ 1 γ 2 ⊲ p s ω s ( Spawn ) ( r 5 ) p γ ret − → i p 1 ǫ ⊲ p s ω s ( Spawn ) ( r 6 ) p γ int − → i p 1 ω 1 ⊲ p s ω s CARET analysis of multithreaded programs 18 / 42

  27. Model-checking for Malware Detection CARET analysis of multithreaded programs 19 / 42

  28. Specification Formalisms for Malware Behaviors Recent works: extensions of LTL, CTL were used as specifications CTPL [Kinder, Katzenbeisser,Schallhart and Veith 2005] SLTPL, SCTPL [Song and Touili 2012, 2013] However, these are not expressive enough for malicious behaviors CARET analysis of multithreaded programs 20 / 42

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