execscent mining for new c c domains in live networks
play

ExecScent: Mining for New C&C Domains in Live Networks - PowerPoint PPT Presentation

ExecScent: Mining for New C&C Domains in Live Networks with Adap?ve Control Protocol Templates Terry Nelms 1,2 , Roberto Perdisci 3,2 , Mustaque Ahamad 2,4 1


  1. ExecScent: ¡Mining ¡for ¡New ¡C&C ¡Domains ¡ in ¡Live ¡Networks ¡with ¡Adap?ve ¡Control ¡ Protocol ¡Templates ¡ Terry ¡Nelms 1,2 , ¡Roberto ¡Perdisci 3,2 , ¡Mustaque ¡Ahamad 2,4 ¡ 1 Damballa ¡Inc. ¡ 2 Georgia ¡Ins?tute ¡of ¡Technology, ¡College ¡of ¡Compu?ng ¡ 3 University ¡of ¡Georgia ¡– ¡Dept. ¡of ¡Computer ¡Science ¡ 4 New ¡York ¡University ¡Abu ¡Dhabi ¡

  2. Modern Malware Networking C&C Web Proxy badguy.com Enterprise Network 192.168.1.2 8/23/13 ¡ 2 ¡

  3. Malware Network Detection Methods • Anomaly-­‑Based ¡ • Domain-­‑Based ¡ • URL-­‑Regex ¡ ¡ 8/23/13 ¡ 3 ¡

  4. ExecScent Goals & Observations • Goals: ¡ – Network ¡detec?on ¡domains ¡& ¡hosts. ¡ – Malware ¡family ¡aWribu?on. ¡ • Observa?ons: ¡ – C&C ¡protocol ¡changes ¡infrequently. ¡ – HTTP ¡C&C ¡applica?on ¡layer ¡protocol. ¡ ¡ 8/23/13 ¡ 4 ¡

  5. Adaptive Control Protocol Templates • Structure ¡of ¡the ¡protocol. ¡ ¡ • Self-­‑tuning. ¡ • En?re ¡HTTP ¡request. ¡ 8/23/13 ¡ 5 ¡

  6. ExecScent Overview Adaptive (self-tuning) Malware Traffic Traces Control Protocol Templates ExecScent ... (learning) Background Network Traffic Enterprise Network 8/23/13 ¡ 6 ¡

  7. ExecScent Overview Adaptive (self-tuning) Malware Traffic Traces Control Protocol Templates ExecScent ... (learning) Background template Network Traffic matching HTTP(S) Traffic C&C Web Proxy Enterprise Network 8/23/13 ¡ 7 ¡

  8. ExecScent Overview Adaptive (self-tuning) Malware Traffic Traces Control Protocol Templates ExecScent ... (learning) Similarity Background template Network Traffic matching Specificity HTTP(S) Traffic C&C Web Proxy Enterprise Network 8/23/13 ¡ 8 ¡

  9. ExecScent Overview Adaptive (self-tuning) Malware Traffic Traces Control Protocol Templates ExecScent ... (learning) Infected Hosts Background template Network Traffic matching C&C Domains HTTP(S) Traffic C&C Web Proxy Enterprise Network 8/23/13 ¡ 9 ¡

  10. Template Learning Process Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 10 ¡

  11. Malware C&C Traces Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 11 ¡

  12. Request Generalization Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 12 ¡

  13. Request Generalization (a) Request 1 : GET /Ym90bmV0DQo=/cnc.php?v=121&cc=IT Host: www.bot.net User-Agent: 680e4a9a7eb391bc48118baba2dc8e16 ... Request 2 : GET /bWFsd2FyZQ0KDQo=/cnc.php?v=425&cc=US Host: www.malwa.re User-Agent: dae4a66124940351a65639019b50bf5a ... (b) Request 1 : GET /<Base64;12>/cnc.php?v=<Int;3>&cc=<Str;2> Host: www.bot.net User-Agent: <Hex;32> ... Request 2 : GET /<Base64;16>/cnc.php?v=<Int;3>&cc=<Str;2> Host: www.malwa.re User-Agent: <Hex;32> ... 8/23/13 ¡ 13 ¡

  14. Request Clustering Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 14 ¡

  15. Labeled C&C Domains Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 15 ¡

  16. Labeled C&C Domains Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 16 ¡

  17. Generating CPTs Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 17 ¡

  18. Generating CPTs Malware-A Unlabeled Unlabeled Unlabeled Unlabeled Malware-C Malware-F Malware-D Malware-B Malware-E Unlabeled Unlabeled 8/23/13 ¡ 18 ¡

  19. Labeled CPTs Labeled C&C Domains Generate Labeled Malware Request Request Control Control C&C Generalization Clustering Protocol Protocol Traces Templates Templates Background Network Traffic 8/23/13 ¡ 19 ¡

  20. Labeled CPT 1 ) Median URL path : /<Base64;14>/cnc.php 2 ) URL query component : {v=<Int,3>, cc=<String;2>} 3 ) User Agent : {<Hex;32>} 4 ) Other headers : {(Host;13), (Accept-Encoding;8)} 5 ) Dst nets : {172.16.8.0/24, 10.10.4.0/24, 192.168.1.0/24} Malware family : { Trojan-A , BotFamily-1 } URL regex : GET /.*\?(cc|v)= Background traffic profile : specificity scores used to adapt the CPT to the deployment environment 8/23/13 ¡ 20 ¡

  21. Template Matching • Similarity ¡ ¡ Input: ¡ ¡ req, ¡CPT ¡ ¡ – Measures ¡likeness ¡ Similarity: ¡ ¡ s (req i , ¡CPT i ), ¡ ¡ ¡ ¡ – Components ¡ for ¡each ¡component ¡ i ¡ – Weighted ¡average ¡ ¡ – Match ¡threshold ¡ Specificity: ¡ ¡ δ (req i , ¡CPT i ), ¡ for ¡each ¡component ¡ i ¡ • Specificity ¡ ¡ ¡ – Measures ¡uniqueness ¡ Match-­‑Score: ¡ ¡ f (sim, ¡spec) ¡ ¡ – Dynamic ¡weights ¡ If ¡Match-­‑Score ¡> ¡Θ: ¡ – Self-­‑tuning ¡ ¡ ¡ ¡ ¡return ¡C&C ¡Request ¡ 8/23/13 ¡ 21 ¡

  22. Similarity & Specificity Examples • Example ¡A ¡(High ¡Similarity, ¡Low ¡Specificity): ¡ – /index.html ¡-­‑ ¡Request ¡ – /index.html ¡ -­‑ ¡CPT ¡ • Example ¡B ¡(Low ¡Similarity, ¡High ¡Specificity): ¡ – /downloads/9908-­‑7623-­‑0098/images ¡ -­‑ ¡Request ¡ ¡ – /VGVycnkgTmVsbXMK ¡(<Base64, ¡16>) ¡ -­‑ ¡CPT ¡ • Example ¡C ¡(High ¡Similarity, ¡High ¡Specificity) ¡ – /Ui4gUGVyZGlzY2kK ¡(<Base64, ¡16>) -­‑ ¡Request ¡ – /VGVycnkgTmVsbXMK ¡(<Base64, ¡16>) -­‑ ¡CPT ¡ 8/23/13 ¡ 22 ¡

  23. Evaluation Deployment Networks UNetA UNetB FNet Distinct Src IPs 7 , 893 27 , 340 7 , 091 HTTP Requests 34 , 871 , 003 66 , 298 , 395 58 , 019 , 718 Distinct Domains 149 , 481 238 , 014 113 , 778 • Evalua?on ¡ran ¡for ¡two ¡weeks. ¡ ¡ • CPTs ¡updated ¡daily ¡beginning ¡two ¡weeks ¡ prior ¡to ¡evalua?on. ¡ 8/23/13 ¡ 23 ¡

  24. Ground Truth • Commercial ¡C&C ¡blacklist. ¡ • Pruned ¡Alexa ¡top ¡1 ¡million. ¡ • Professional ¡threat ¡analysts. ¡ 8/23/13 ¡ 24 ¡

  25. Finding C&C Domains 80 ¡ 70 ¡ FP ¡≈ ¡.02% ¡ 60 ¡ FP ¡≈ ¡.015% ¡ 50 ¡ C&C ¡Domains ¡ FP ¡≈ ¡.01% ¡ UNetA ¡ 40 ¡ UNetB ¡ FP ¡= ¡0.0% ¡ Fnet ¡ 30 ¡ 20 ¡ 10 ¡ 0 ¡ 0.62 ¡ 0.65 ¡ 0.73 ¡ 0.84 ¡ Match ¡Threshold ¡ 8/23/13 ¡ 25 ¡

  26. New vs. Blacklist Domains 100% ¡ 90% ¡ 80% ¡ 70% ¡ 60% ¡ Blacklist ¡C&C ¡ 50% ¡ New ¡C&C ¡ 40% ¡ 30% ¡ 20% ¡ 10% ¡ 0% ¡ UNetA ¡ UNetB ¡ Fnet ¡ 8/23/13 ¡ 26 ¡

  27. New vs. Blacklist Infected Hosts 100% ¡ 90% ¡ 80% ¡ 70% ¡ 60% ¡ Blacklist ¡Infec?ons ¡ 50% ¡ New ¡Infec?ons ¡ 40% ¡ 30% ¡ 20% ¡ 10% ¡ 0% ¡ UNetA ¡ UNetB ¡ Fnet ¡ 8/23/13 ¡ 27 ¡

  28. ISP Deployment • Deployed ¡the ¡ 65 ¡ newly ¡discovered ¡C&C ¡ domains ¡on ¡ 6 ¡ISP ¡networks ¡for ¡one ¡week. ¡ • Counted ¡the ¡number ¡of ¡dis?nct ¡source ¡IP ¡ addresses ¡contac?ng ¡the ¡domains ¡daily. ¡ • Iden?fied ¡ 25,584 ¡new ¡poten?al ¡malware ¡ infec?ons. ¡ 8/23/13 ¡ 28 ¡

  29. Model Comparison - True Positives 8/23/13 ¡ 29 ¡

  30. Model Comparison – False Positives 8/23/13 ¡ 30 ¡

  31. Limitations • Dependence ¡on ¡malware ¡traces ¡and ¡labeled ¡ domains. ¡ ¡ • Implement ¡a ¡new ¡protocol ¡when ¡the ¡C&C ¡domain ¡ or ¡IP ¡address ¡changes. ¡ • Blend ¡into ¡background ¡traffic. ¡ • Inject ¡noise ¡into ¡the ¡protocol. ¡ 8/23/13 ¡ 31 ¡

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