{"title":"Malware Beaconing Detection by Mining Large-scale DNS Logs for Targeted Attack Identification","authors":"Andrii Shalaginov, Katrin Franke, Xiongwei Huang","volume":112,"journal":"International Journal of Computer and Systems Engineering","pagesStart":743,"pagesEnd":756,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/10004242","abstract":"One of the leading problems in Cyber Security today<br \/>\r\nis the emergence of targeted attacks conducted by adversaries with<br \/>\r\naccess to sophisticated tools. These attacks usually steal senior level<br \/>\r\nemployee system privileges, in order to gain unauthorized access to<br \/>\r\nconfidential knowledge and valuable intellectual property. Malware<br \/>\r\nused for initial compromise of the systems are sophisticated and<br \/>\r\nmay target zero-day vulnerabilities. In this work we utilize common<br \/>\r\nbehaviour of malware called &rdquo;beacon&rdquo;, which implies that infected<br \/>\r\nhosts communicate to Command and Control servers at regular<br \/>\r\nintervals that have relatively small time variations. By analysing<br \/>\r\nsuch beacon activity through passive network monitoring, it is<br \/>\r\npossible to detect potential malware infections. So, we focus on<br \/>\r\ntime gaps as indicators of possible C2 activity in targeted enterprise<br \/>\r\nnetworks. We represent DNS log files as a graph, whose vertices<br \/>\r\nare destination domains and edges are timestamps. Then by using<br \/>\r\nfour periodicity detection algorithms for each pair of internal-external<br \/>\r\ncommunications, we check timestamp sequences to identify the<br \/>\r\nbeacon activities. Finally, based on the graph structure, we infer the<br \/>\r\nexistence of other infected hosts and malicious domains enrolled in<br \/>\r\nthe attack activities.","references":"[1] \u201cTargeted Attacks - Definition - Trend Micro USA.\u201d http:\/\/www.\r\ntrendmicro.com\/vinfo\/us\/security\/definition\/targeted-attacks. Access\r\ndate: 2015-02-27.\r\n[2] \u201cNew anti-APT tools are no silver bullets: An independent test of APT\r\nattack detection appliances | MRG Effitas Blog.\u201d https:\/\/blog.mrg-effitas.\r\ncom\/. Access date: 2015-05-24.\r\n[3] \u201cCompromise assessment,\u201d tech. rep., Mandiant, https:\/\/dl.mandiant.\r\ncom\/EE\/assets\/DS CompromiseAssessments 140207.pdf. accessed:\r\n08.12.2015.\r\n[4] \u201cAPT INFECTION DISCOVERY USING DNS\r\nDATA (info:lanl-repo\/lareport\/LA-UR-13-23109).\u201d http:\/\/permalink.\r\nlanl.gov\/object\/tr?what=info:lanl-repo\/lareport\/LA-UR-13-23109,\r\n2013. Access date: 2015-05-24.\r\n[5] N. Villeneuve and J. Bennett, \u201cDetecting apt activity with network traffic\r\nanalysis,\u201d Trend Micro Incorporated, 2012.\r\n[6] \u201ccontagio: Mandiant APT1 samples categorized by\r\nmalware families.\u201d http:\/\/contagiodump.blogspot.no\/2013\/03\/\r\nmandiant-apt1-samples-categorized-by.html. Access date: 2015-05-24.\r\n[7] \u201cCommand and Control in Fifth DomianCOMMAND FIVE PTY LTD\r\n- Engineering Innovation | Research.\u201d https:\/\/www.commandfive.com\/\r\nresearch.html, 2011. Access date: 2015-05-19.\r\n[8] Y. Low, J. Gonzalez, A. Kyrola, D. Bickson, C. Guestrin, and J. M.\r\nHellerstein, \u201cGraphlab: A new framework for parallel machine learning,\u201d\r\nCoRR, vol. abs\/1006.4990, 2010.\r\n[9] X. Huang, \u201cUnderstanding beacon for identifying targeted attack by\r\nmining large-scale log data,\u201d Master\u2019s thesis, Gj\u00f8vik University College,\r\n2015.\r\n[10] A. Oprea, Z. Li, T.-F. Yen, S. Chin, and S. Alrwais, \u201cDetection of\r\nearly-stage enterprise infection by mining large-scale log data,\u201d arXiv\r\npreprint arXiv:1411.5005, 2014.\r\n[11] \u201cNTP, Network Time Protocol.\u201d http:\/\/support.ntp.org\/bin\/view\/Main\/\r\nWebHome. Access date: 2015-05-19.\r\n[12] \u201cHow to use RSS feeds | Digital Trends.\u201d http:\/\/www.digitaltrends.com\/\r\ncomputing\/how-to-use-rss\/. Access date: 2015-05-19.\r\n[13] L. van Duijn, \u201cResearch project-report beacon detection in pcap files,\u201d\r\n2014.\r\n[14] G. Gu, J. Zhang, and W. Lee, \u201cBotsniffer: Detecting botnet command\r\nand control channels in network traffic,\u201d 2008.\r\n[15] \u201cThe role of dns in botnet command & control,\u201d tech. rep.,\r\nOpenDNS, http:\/\/info.opendns.com\/rs\/opendns\/images\/OpenDNS\r\nSecurityWhitepaper-DNSRoleInBotnets.pdf, 2012.\r\n[16] A. P. T. S. C. Strike. http:\/\/www.advancedpentest.com\/. accessed:\r\n10.12.2015.\r\n[17] \u201cStealthy peer-to-peer c&c over smb pipes.\u201d http:\/\/blog.cobaltstrike.com\/\r\n2013\/12\/06\/stealthy-peer-to-peer-cc-over-smb-pipes\/, December 2013.\r\naccessed: 10.12.2015.\r\n[18] Google, \u201cDns basics.\u201d https:\/\/support.google.com\/a\/answer\/48090?hl=\r\nen. accessed: 12.12.2015.\r\n[19] G. Farnham and A. Atlasis, \u201cSans: Detecting dns\r\ntunneling.\u201d https:\/\/www.sans.org\/reading-room\/whitepapers\/dns\/\r\ndetecting-dns-tunneling-34152, February 2013. accessed: 08.12.2015.\r\n[20] C. F. P. Ltd, \u201cCommand and control in the fifth domain.\u201d https:\r\n\/\/www.commandfive.com\/papers\/C5 APT C2InTheFifthDomain.pdf,\r\nFebruary 2012. accesed: 11.09.2015.\r\n[21] K. Chitharanjan, \u201cPeriodicity detection algorithms in time series\r\ndatabases-a survey,\u201d International Journal of Computer Science &\r\nEngineering Technology, 2013.\r\n[22] B. Wang, Z. Li, D. Li, F. Liu, and H. Chen, \u201cModeling connections\r\nbehavior for web-based bots detection,\u201d in e-Business and Information\r\nSystem Security (EBISS), 2010 2nd International Conference on, pp. 1\u20134,\r\nIEEE, 2010.\r\n[23] Y. Qiao, Y.-x. Yang, J. He, C. Tang, and Y.-z. Zeng, \u201cDetecting p2p\r\nbots by mining the regional periodicity,\u201d Journal of Zhejiang University\r\nSCIENCE C, vol. 14, no. 9, pp. 682\u2013700, 2013.\r\n[24] H. V. D. Parunak, A. Nickels, and R. Frederiksen, \u201cAn agent-based\r\nframework for dynamical understanding of dns events,\u201d 2014.\r\n[25] F. Rasheed and R. Alhajj, \u201cStnr: A suffix tree based noise resilient\r\nalgorithm for periodicity detection in time series databases,\u201d Applied\r\nIntelligence, vol. 32, no. 3, pp. 267\u2013278, 2010.\r\n[26] M. G. Elfeky, W. G. Aref, and A. K. Elmagarmid, \u201cWarp: time warping\r\nfor periodicity detection,\u201d in Data Mining, Fifth IEEE International\r\nConference on, pp. 8\u2013pp, IEEE, 2005.\r\n[27] M. G. Elfeky, W. G. Aref, and A. K. Elmagarmid, \u201cPeriodicity detection\r\nin time series databases,\u201d Knowledge and Data Engineering, IEEE\r\nTransactions on, vol. 17, no. 7, pp. 875\u2013887, 2005.\r\n[28] C. Berberidis, W. G. Aref, M. Atallah, I. Vlahavas, A. K. Elmagarmid,\r\net al., \u201cMultiple and partial periodicity mining in time series databases,\u201d\r\nin ECAI, vol. 2, pp. 370\u2013374, 2002.\r\n[29] Y. Low, J. E. Gonzalez, A. Kyrola, D. Bickson, C. E. Guestrin,\r\nand J. Hellerstein, \u201cGraphlab: A new framework for parallel machine\r\nlearning,\u201d arXiv preprint arXiv:1408.2041, 2014.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 112, 2016"}