Exploit Kit Traffic Analysis

Total Page:16

File Type:pdf, Size:1020Kb

Exploit Kit Traffic Analysis UNIVERSITY OF PIRAEUS School of Information & Communication Technologies Postgraduate Studies DIGITAL SYSTEMS SECURITY THESIS Exploit Kit Traffic Analysis Postgraduate Student: KAPIRIS STAMATIS Student ID number: MTE14040 Supervisor Professor: CHRISTOFOROS DADOYAN DEPARTMENT OF DIGITAL SYSTEMS Piraeus, June 2017 Keywords: Exploit Kit, PCAP Network Traffic Analysis, Malware Analysis, Ransomware, Cyber Threat, Angler EK, RIG EK, Security Onion, Python TABLE OF CONTENTS Table of Contents .........................................................................................................................................................1 Prologue ..........................................................................................................................................................................3 CHAPTER 1 : Introduction .......................................................................................................................................4 Related Work .......................................................................................................................................................5 Motivation .............................................................................................................................................................6 CHAPTER 2 - Characteristics of Exploit Kits ....................................................................................................7 What is an exploit kit? .....................................................................................................................................7 Incidents of the past .........................................................................................................................................7 How do you get compromised .....................................................................................................................9 EK Infrastructure ............................................................................................................................................ 11 Propagation ....................................................................................................................................................... 13 EK Campaigns ......................................................................................................................................... 13 Spam Campaigns ................................................................................................................................... 14 Malvertising............................................................................................................................................. 14 EK & Underground Economy..................................................................................................................... 15 Background on Exploit Kits ........................................................................................................................ 18 EK’s Adversarial Activity.................................................................................................................... 18 Attack Characteristics ................................................................................................................................... 18 Nature of EK ............................................................................................................................................ 18 Redirections ............................................................................................................................................ 19 302 Cushioning ...................................................................................................................................... 20 Domain Shadowing .............................................................................................................................. 20 Victim Profiling ...................................................................................................................................... 21 Fingerprinting Tactics ......................................................................................................................... 21 Traffic Distribution Systems ............................................................................................................. 24 Self-defense Characteristics ....................................................................................................................... 24 IP Blocking ............................................................................................................................................... 25 User-Agent Evasion .............................................................................................................................. 25 Blacklist Lookup .................................................................................................................................... 26 Signature Evasion ................................................................................................................................. 26 Cloaking .................................................................................................................................................... 26 Domain Generation Algorithm ........................................................................................................ 27 Hiding Referrer ...................................................................................................................................... 28 Encryption/Encoding.......................................................................................................................... 28 Obfuscation.............................................................................................................................................. 29 Fileless Infection ................................................................................................................................... 31 Final Phase ........................................................................................................................................................ 32 Post-Infection Phase ...................................................................................................................................... 33 Landing Pages .................................................................................................................................................. 33 Web Browsers .................................................................................................................................................. 35 University of Piraeus 1 Digital Systems Security Droppers............................................................................................................................................................. 37 Malware families ............................................................................................................................................. 38 Ransomware ........................................................................................................................................... 39 Botnets ...................................................................................................................................................... 44 Technical Introduction to known Exploit Kits.................................................................................... 46 ANGLER EK ....................................................................................................................................................... 46 General Characteristics ...................................................................................................................... 46 Angler In Action ..................................................................................................................................... 49 Obfuscation of Angler.......................................................................................................................... 53 Host Probing ........................................................................................................................................... 54 Malvertising............................................................................................................................................. 56 RIG EK .................................................................................................................................................................. 56 Rig Infrastructure ................................................................................................................................. 57 Rig In Action ............................................................................................................................................ 58 Customer’s Perspective ...................................................................................................................... 63 EK comparison................................................................................................................................................. 65 CHAPTER 3 - Malware Traffic Analysis Example ........................................................................................ 67 CHAPTER 4 - Attack Path Script ......................................................................................................................... 77 CHAPTER 5 - Recommendations, Future Work & Conclusions
Recommended publications
  • Microsoft Targeted by 8 of 10 Top Vulnerabilities in 2018
    Microsoft Targeted by 8 of 10 Top Vulnerabilities in 2018 By Kathleen Kuczma 2019-0319 This analysis focuses on an exploit kit, phishing attack, or remote access trojan co-occurrence with a vulnerability from January 1, 2018 to December 31, 2018. We analyzed thousands of sources, including code repositories, deep web forum postings, and dark web sites. This is a follow-up to our 2017 report, and the intended audience includes information security practitioners, especially those supporting vulnerability risk assessments. Executive Summary Many vulnerability management practitioners face the daunting task of prioritizing vulnerabilities without adequate insight into which vulnerabilities are actively exploited by cybercriminals. Here, we’ll attempt to shed light on this by determining the top 10 vulnerabilities from 2018. It is imperative that security professionals have insight into those vulnerabilities that impact a company’s technology stack and are included in exploit kits, used to distribute a remote access trojan (RAT), or are currently being used in phishing attacks. In 2018, we observed more exploits targeting Microsoft products than Adobe ones. Eight out of 10 vulnerabilities exploited via phishing attacks, exploit kits, or RATs targeted Microsoft products, and only one Adobe Flash vulnerability made the top 10, likely due to a combination of better patching and Flash Player’s impending demise in 2020. Like in past years, the development of new exploit kits has continued to drop amid the shift to more targeted attacks and less availability of zero-day vulnerabilities. Exploit kits in previous years took advantage of Adobe product vulnerabilities, which have continued to dwindle. Key Judgments • For the second year in a row, Microsoft was consistently targeted the most, with eight of the top 10 vulnerabilities impacting its products.
    [Show full text]
  • What Is Exploit Kit and How Does It Work? [1]Ade Kurniawan, [2]Ahmadfitriansyah [1][2]Department of Informatics Engineering, Universal University,Batam, Indonesia
    International Journal of Pure and Applied Mathematics Volume 118 No. 20 2018, 509-516 ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu Special Issue ijpam.eu What is Exploit Kit and How Does it Work? [1]Ade Kurniawan, [2]AhmadFitriansyah [1][2]Department of Informatics Engineering, Universal University,Batam, Indonesia Abstract— In the Year 2016 to mid-2017, the analysts have claimed those years as the years of Malware especially Ransomware. The number, spread, infection and impact of malware have caused many users, businesses, governments, and organizations to be anxious, one of the tools to spread it by using exploit kits. A popular method of mass distribution used the perpetrators of cyber criminals is using the exploit kit. Exploit kit has become more effective, cheaper and sophisticated tools to spread malware to their victims. Therefore, in this paper, we provide this research using the Network Forensic Method. The results which are done will explain the chain of events about what the exploit kit is and how the exploit kit works, including actors, campaigns, payload, and terminology involved in the spreading of malware Index Terms—Exploit Kit, Payload, Malware, Ransomware, and Chain of events. I. INTRODUCTION In our digital era, everything is connected and Network Forensics Method. Network forensics is a everyone is vulnerable. The development, part of Digital Forensic conducted with scientific dependability, and complexity of computer software methods to identify, analyse and reconstruct events have brought immediate implications for global based on digital evidence/logs from the network safety and security, especially physical objects such [14][15][16].
    [Show full text]
  • Threat Landscape Report Q4 2017 Table of Contents
    THREAT LANDSCAPE REPORT Q4 2017 TABLE OF CONTENTS TABLE OF CONTENTS Introduction and Key Findings . 3 Sources and Measures . 4 Infrastructure Trends . 6 Threat Landscape Trends . 9 Exploit Trends . 10 Mini Focus: Exploit Kits . 13 Malware Trends . 14 Mini Focus: Cryptomining Malware . 17 Botnet Trends . 18 Mini Focus: Zero-Day Research . 21 Exploratory Analysis . 22 Conclusions and Recommendations . 25 2 Q4 2017 HIGHLIGHTS AND KEY FINDINGS Q4 2017 INTRODUCTION AND KEY FINDINGS In many ways, the fourth quarter of 2017 was a montage of what played out before our Q4 2017 BY THE NUMBERS: eyes throughout the year. No one theme or threat stole the show such that everything Exploits else disappears into the background with time § 5,988 unique detections (+0.3%) Reaper breathed new life into threats targeting the Internet of Things (IoT). Key § 274 detections per firm (+82%) Reinstallation Attacks (KRACK) against WPA2 protocol pushed the word “nonce” out § 2% saw severe exploits (-7%) of the cryptographer’s lexicon and into the mainstream. Ransomware added some Malware sinister-sounding monikers like “Asasin” and “Bad Rabbit.” Cryptocurrencies surged § 17,671 unique variants (+19%) then crashed in value, and cryptomining attacks surged and crashed systems. The § 3,317 different families (+27%) Andromeda takedown warmed our hearts, but FALLCHILL reversed that feeling. § 22% detected ransomware (0%) Botnets Thank you for joining us once again as we process the past quarter together so we’re all better prepared for those ahead. As always, we begin with some highlights and then § 259 unique botnets detected (+2%) dive into the details as seen by our global array of sensors.
    [Show full text]
  • Malware What Is Malware?
    Malware What is malware? • Malware: malicious software • worm • ransomware • adware • virus • trojan horse • etc. … and how do we fight it? • AV software • Firewalls • Filtering • Patching • Writing more secure software • Training users How to Monetize Malware • Botnets • Networking infected computers together • Sending instructions to those computers to do things like: • Send spam • Mine cryptocurrency • Perform ad fraud • Perform DDoS attacks • Stealing banking credentials • Stealing Bitcoin and other alternative currencies • Ransoming the computer • Pay per install software How malware spreads • Attachments in emails • Other social engineering • Drive-by downloads • Spreading itself Vulnerabilities vs. Exploits • Vulnerability: hole in software • Exploit: code written to use vulnerability to gain unauthorized access to something • There’s way more known vulnerabilities than known exploits. • https://www.exploit-db.com/ vs. https://nvd.nist.gov/ Zero Day Attacks • Realized exploit comes before known vulnerability • Fairly rare • Zero days are expensive — 1.5 million USD for Apple iOS 10 exploit • Overwhelmingly, exploits in the wild are not 0day. Morris Worm • Created in 1988 by Robert Morris • Purportedly to measure the Internet • Infected 10% of computers connected to the Internet • Slowed down computers to where they became unusable. Morris Worm • Exploited Unix systems through: • sendmail • finger • rsh • weak passwords • Note that the vulnerabilities that he exploited were known. • Buggy: installed itself multiple times, didn’t phone home, etc. Effects of Morris Worm • CERT organizations worldwide • CERT-CC at CMU funded by the US gov • Patching known vulnerabilities • More attention to computer security Conficker • Computer worm first appearing in November 2008 • Sinkholed in 2009 • Good guys registered domain names used for attacks • Operators arrested in 2011 • Still infecting computers today • Millions of infections — hard to count.
    [Show full text]
  • The Decline of Exploit Kits As an Exploitation Strategy
    The Decline of Exploit Kits as an Exploitation Strategy Ma, Zicong [email protected] Abstract Exploit kit is a software kit, which normally runs on web servers. It identifies the vulnerabilities in the client machines by communicating with it through the browser, then using malicious code to exploit the vulnerability to deliver and execute malicious software on the victim’s machine. The first form of exploit kits started appearing in 2006, then it slowly became more and more popular. With the introduction of the Blackhole exploit kit, it became one of the most used cyber-criminal strategy in 2012. However, following some arrests to the dominant exploit kits’ author, the growth trend of exploit kits was successfully stopped. We analysed data on blogs and twitters from the year of 2016 and 2017 to get a better picture on the most recent trend of the exploit kits. Through several graphs and tables that we produced, we concluded that the exploit kit landscape is in a state of decline and predicts that this trend will carry on unless there is some explosion in the effectiveness of exploit kits. 1. Exploit Kits Background on Drive-by Malware There were days where you would have to click on something on the webpage to download a software onto your device. Nowadays, opening any website can put you at risk of getting malicious programs installed onto your computer because of “drive by” malwares, as suggest by its name, when you visit a website or simply “drive by” it, the malware and malicious scripts can download and execute in the background without you noticing it.
    [Show full text]
  • Next Generation of Exploit Kit Detection by Building Simulated Obfuscators
    Next Generation Of Exploit Kit Detection By Building Simulated Obfuscators ∗ Tongbo Luo Xing Jin Palo Alto Networks Inc Palo Alto Networks Inc 4401 Great America Pkwy 4401 Great America Pkwy Santa Clara, CA 95054 Santa Clara, CA 95054 [email protected] [email protected] ABSTRACT web attack. The earliest hack toolkit, named Mpack, was Recently, drive-by downloads attacks have almost reached available in the crimeware market in 2006. From then on, epidemic levels, and exploit-kit is the propulsion to signify exploit kits have become the most popular method for cyber- the process of malware delivery. One of the key techniques criminals to compromise hosts and to leverage those hosts used by exploit-kit to avoid firewall detection is obfuscat- for various methods of profit. Exploit kit can cost anywhere ing malicious JavaScript program. There exists an engine between free to thousands of dollars in underground market. in each exploit kit, aka obfuscator, which transforms the Typically, relatively unsophisticated kit may cost US$500 malicious code to obfuscated code. per month. Licenses for advanced kits have been reported In this paper, we tracked and collected over 20000 obfus- to cost as much as $10,000 per month. Currently, there are cated JavaScript samples of 5 exploit kit families from 2014 70 different exploit kits in the wild that take advantage of to 2016. This research is the first attempt to approach the more than a hundred vulnerabilities [1]. problem from a different angle: reverse engineering the ob- A key characteristic of an exploit kit is the heavily obfus- fuscator from obfuscated samples.
    [Show full text]
  • Exploit Kits Preliminary Analysis of Exploit Kits As Software Artefacts
    Anatomy of Exploit Kits Preliminary Analysis of Exploit Kits as Software Artefacts Vadim Kotov and Fabio Massacci DISI - University of Trento, Italy [email protected] Abstract. In this paper we report a preliminary analysis of the source code of over 30 different exploit kits which are the main tool behind drive- by-download attacks. The analysis shows that exploit kits make use of a very limited number of vulnerabilities and in a rather unsophisticated fashion. Their key strength is rather their ability to support “customers” in avoiding detection, monitoring traffic, and managing exploits. Keywords: exploit kits, web threats, malware analysis. 1 Introduction Over the last few years, the volume of web-borne malware significantly increased. According to various security reports [1,10] malicious URLs attacking browsers and their add-ons constitute the majority of all Internet threats. They exploit vulnerabilities in the web browsers and their add-ons in order to download mal- ware executable onto the victim machine. This kind of attack is called drive-by- download [11]. In the worst cases compromised clients behind a company firewall canbeusedtowreakhavoconcriticalsystems.Inthebestones,theylaythe basis for a large malware infrastructure that can be used for identity theft or banking fraud. Drive-by downloads are managed by a so called exploit kit (or exploit pack) - a server application delivering malware instead of web content [12]. Its key feature is that in order to deploy it a “customer” of this tool does not need to be more expert in web technologies than a lousy system administrator. One only need to pay the developer of the kit for the code and possibly other services (such as obfuscation).
    [Show full text]
  • Current Trends in Botnet Development and Defense Expert Opinion
    Current Trends in Botnet Development and Defense Expert Opinion Study conducted for the Cooperative Cyber Defence Centre of Excellence (CCD COE) Tallinn, Estonia December 2010 G. Klein F. Leder Copyright and Disclaimer This work is property of the Cooperative Cyber Defence Centre of Excellence; it does not represent NATO's official policies or views and is not its product. Governmental use within NATO, its nations and Sponsoring Nations of the CCD COE as well as personal use of this material is permitted as long as proper reference to the CCD COE is made. Permission to reprint/republish this work, to further distribute or to reuse any part of it for any other purposes must be obtained from the CCD COE in advance. For further information and permission please contact [email protected]. Latest Trends in Botnet Development and Defense 2 Abstract In this study, we give an overview about current trends in botnet development and defense. We start off by giving an overview of botnet technology and introducing core concepts. This is followed by a description of measures employed by botnet operators to secure their botnets against infiltration by security researchers and authorities. We discuss both the technical requirements of setting up and operating a botnet as well as the requirements with regard to skills, resources and time of infiltrating and taking down a botnet. We conclude with an outlook on future developments. Latest Trends in Botnet Development and Defense 3 Table of Contents Copyright and Disclaimer 2 Abstract 3 Table of Contents
    [Show full text]
  • Kaspersky Security Bulletin: Overall Statistics for 2016
    Kaspersky Security Bulletin OVERALL STATISTICS FOR 2016 Maria Garnaeva, Fedor Sinitsyn, Yury Namestnikov, Denis Makrushin, Alexander Liskin KASPERSKY SECURITY BULLETIN: OVERALL STATISTICS FOR 2016 CONTENTS The year in figures � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 3 Vulnerable applications used in cyberattacks � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 4 Online threats (Web-based attacks) � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 6 TOP 10 countries where online resources are seeded with malware � � � � � � � � � � � � � � � � �6 TOP 20 verdicts detected online � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �8 Сrypto-ransomware � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �9 The number of detected crypto-ransomware modifications � � � � � � � � � � � � � � � � � 10 The number of users attacked by encryptors � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 11 Geography of attacks � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 12 TOP 10 most widespread encryptor families � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 13 Crypto-ransomware and the corporate sector � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 15 Online threats in the banking sector �
    [Show full text]
  • The Trouble with Phishing
    The Trouble With AUTHOR PHISHING AFFECTS EVERYONE 1 JORDAN WRIGHT HOW DOES PHISHING ACTUALLY WORK? 2 ANATOMY OF A PHISHING ATTACK 3 THE REAL PROBLEM WITH PHISHING 6 PHISHING IS EFFECTIVE 6 SO HOW DO WE FIX IT? 7 © 2016 Duo Security, Inc. PHISHING QUICK STATS 8 Phishing is one of the most common threats hitting organizations. This guide details the problems around phishing, how it happens, and how Duo can be leveraged as a solution. Phishing Affects Everyone We’ve all seen the emails: someone shared a Google doc with us, our bank wants to verify our password, we’ve received an “important” attachment, you name it. Phishing is common. It’s common because it’s easy. Not only is phishing common, but it’s getting worse. In Q2 of 2016, the Anti-Phishing Working Group (APWG) observed1 well over 460,000 unique phishing sites — a record for the most ever seen. That means over 5,000 phishing sites were created every day. 2016 PHISHING WEBSITES 158,988 158,782 148,295 123,555 86,557 79,259 January February March April May June Phishing doesn’t target everyone equally. APWG's report found that the industry most likely to be subjected to phishing attacks is retail/service, far ahead of other industries at 43 percent of all attacks. The financial industry follows at 16 percent. PHISHING TARGETS BY INDUSTRY Retail 43% Finance 16% Payment Service 13% ISP 12% Auction 4% Multimedia 3% Social Networking 2% Government 1% Unclassified 5% 1 How Does Phishing Actually Work? In a nutshell, phishing works because email, like physical mail, is built to assume that the sender is who they claim to be.
    [Show full text]
  • Pexy: the Other Side of Exploit Kits
    PExy: The other side of Exploit Kits Giancarlo De Maio*, Alexandros Kapravelos, Yan Shoshitaishvili, Christopher Kruegel, and Giovanni Vigna University of Salerno* [email protected] UC Santa Barbara fkapravel,yans,chris,[email protected] Abstract. The drive-by download scene has changed dramatically in the last few years. What was a disorganized ad-hoc generation of mali- cious pages by individuals has evolved into sophisticated, easily extensi- ble frameworks that incorporate multiple exploits at the same time and are highly configurable. We are now dealing with exploit kits. In this paper we focus on the server-side part of drive-by downloads by automatically analyzing the source code of multiple exploit kits. We discover through static analysis what checks exploit-kit authors perform on the server to decide which exploit is served to which client and we automatically generate the configurations to extract all possible exploits from every exploit kit. We also examine the source code of exploit kits and look for interesting coding practices, their detection mitigation tech- niques, the similarities between them and the rise of Exploit-as-a-Service through a highly customizable design. Our results indicate that even with a perfect drive-by download analyzer it is not trivial to trigger the ex- pected behavior from an exploit kit so that it is classified appropriately as malicious. 1 Introduction Over the last few years, the web has grown to be the primary vector for the spread of malware. The attacks that spread malware are carried out by cybercriminals by exploiting security vulnerabilities in web browsers and web browser plugins.
    [Show full text]
  • Exploit Kits: the Production Line of the Cybercrime Economy? in 2015 2Nd International Conference on Information Security and Cyber Forensics, Infosec 2015
    Hopkins, M., & Dehghantanha, A. (2016). Exploit Kits: The production line of the Cybercrime economy? In 2015 2nd International Conference on Information Security and Cyber Forensics, InfoSec 2015. http://doi.org/10.1109/InfoSec.2015.7435501 Exploit Kits: The production line of the Cybercrime Economy? Michael Hopkins, Ali Dehghantanha School of Computing, Science, and Engineering, University of Salford Manchester, United Kingdom [email protected], [email protected] Abstract— The annual cost of Cybercrime to the global economy is estimated to be around $400 billion, in support of which Exploit Kits have been providing enabling technology since 2006. This paper reviews the recent developments in Exploit Kit capability and how these are being applied in practice. In doing so it paves the way for better understanding of the exploit kits economy that may better help in combatting them and considers industry’s preparedness to respond. Keywords— Exploit Kit, Driveby, Malware, Malvertising I. INTRODUCTION Intel have estimated the annual cost of Cybercrime to the global economy to be around $400 billion[1]. Combating cyber crime remains a major research topic in multiple fields of digital forensics[2],[3], including applications forensics [4]–[8] mobile device forensics [9]–[11], cloud forensics [12]–[18], and malware investigation [19]–[25] . Despite this, the cybercrime rate continues to increase [26]! A growing contributor to this increase, since the introduction of one of the first examples “Mpack” around 2006[27], has been the Exploit Kit. Defined by McAfee as “an off the shelf software package containing easy to use packaged attacks on known and unknown vulnerabilities”[28], the Exploit Kit serves an almost infinitely flexible menu of malware ranging from ransomware through banking and backdoor Trojans to rootkits.
    [Show full text]