Full text
Universidade do Minho Escola de Engenharia Departamento de Informática Joel Filipe Esteves Gama Sampling Techniques Applied to Anomalous Events Detection June 2022
Universidade do Minho Escola de Engenharia Departamento de Informática Joel Filipe Esteves Gama Sampling Techniques Applied to Anomalous Events Detection Master dissertation Integrated Master’s in Informatics Engineering Dissertation supervised by João Marco Silva Maria Solange Pires Ferreira Rito Lima June 2022
COPYRIGHT AND TERMS OF USE FOR THIRD PARTY WORK This dissertation reports on academic work that can be used by third parties as long as the internationally accepted standards and good practices are respected concerning copyright and related rights. This work can thereafter be used under the terms established in the licence below. Readers needing authorization conditions not provided for in the indicated licensing should contact the author through the RepositóriUM of the University of Minho. licence granted to users of this work: CC BY https://creativecommons.org/licenses/by/4.0/
ACKNOWLEDGEMENTS Write your acknowledgements here. Do not forget to mention the projects and grants that you have benefited from while doing your research, if any. Ask your supervisor about the specific textual format to use. (Funding agencies are quite strict about this.) a
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. b
ABSTRACT Nowadays, one of the major worries about a network is security. Since the network has become the big platform it is, the number of attacks or attempts to steal information or just harm someone or something is getting bigger to handle or harder to find. Sampling techniques help to solve these problems as they are used to reduce the scope of the analysis, as well as the resources needed to perform it. By using sample techniques to search and find the attacks in the network traffic it will become easier to detect attacks and keep the network secure. As will be seen in the following sections, joining sampling and security is not an easy task to do. Questions such as, what are the best techniques to be used, what are the best methods to be implemented, are inevitable when using sampling. However, sampling can bring more advantages than disadvantages. Besides that, depending on the chosen measurement method, sampling technique or algorithm performed to analyse the samples, the results can change a lot according to the target for the technique. To achieve results for evaluation, a Network-based Intrusion Detection System (NIDS) will be used to identify anomalous events present in the samples. K E Y W O R D S Sampling, Sampling techniques, Security, Measurement methods, Active methods, Passive methods. c
RESUMO Hoje em dia, uma das maiores preocupações com uma rede é a segurança. Como a rede se tornou a grande plataforma que é, o número de ataques ou tentativas de roubar informações ou apenas prejudicar alguém ou algo está cada vez maior ou mais difícil de encontrar. As técnicas de amostragem ajudam a resolver esses problemas visto que são utilizadas para reduzir o escopo da análise assim como os recursos necessários para realizar a mesma. Usando técnicas de amostra para procurar e localizar os ataques no tráfego da rede, facilita prevenir ataques e manter a rede segura. Como será constatado nas próximas secções, juntar amostragem e segurança não é uma tarefa fácil. Questões como, quais são as melhores técnicas a serem utilizadas, quais os melhores métodos a serem implementados, são inevitáveis aquando da utilização de amostragem. Contudo, amostragem pode trazer mais vantagens do que desvantagens. Além disso, dependendo do método de medição escolhido, técnica de amostragem ou algoritmo usado para analisar as amostras, os resultados podem variar muito consoante o alvo da técnica. Para alcançar resultados para avaliação vai ser utilizado um Network-based Intrusion Detection System (NIDS) de forma a identificar os eventos anómalos presentes nas amostragens. PA L AV R A S -C H AV E Amostragem, Técnicas de amostragem, Segurança, Métodos de medição, métodos ativos, Métodos passivos. d
CONTENTS Contents iii 1INTRODUCTION 4 1.1 Objectives 5 1.2 Document layout 5 2R E L AT E D W O R K 7 2.1 Passive methods 7 2.2 Active methods 8 2.3 Hybrid methods 9 2.4 Sampling techniques 12 2.4.1 Granularity 12 2.4.2 Selection Scheme 13 2.4.3 Trigger Selection 15 2.5 Sampling related to security 16 2.6 Specific Attack Flow Techniques 18 2.7 Advantages vs Disadvantages 20 2.8 Chapter Summary 21 3METHODOLOGIES 22 4RESULTS 27 4.1 Original Trace Analysis 27 4.2 Count-Based Techniques 28 4.3 Time-based Techniques 31 4.3.1 Systematic Time-based 32 4.3.2 Multi-adaptive Sampling Technique 35 4.3.3 Linear Prediction 37 4.3.4 Storage evaluation 39 4.3.5 Overall Results Interpretation 42 5CONCLUSIONS 44 5.1 Future Work 45 iii
CONTENTS iv 6ATTACHMENTS 49
1.2. Document layout 6 this chapter is to verify which techniques achieved better results from a security monitoring perspective. The last chapter (Chapter 5) concludes the work with an analysis of the results. This chapter is the result of all the other sections and provides the conclusions about the topic presented in this work. Alongside the conclusions, a future work paragraph is present to show the possibilities to further work in this area and to keep the topic open for more discussion.
2 RELATED WORK Sampling is a tool used to extract information without looking at all the traffic. In this way, different sampling methods are developed to achieve better results in different situations. This chapter presents and discusses three types of sampling methods: active, passive, or hybrid. Each method is differentiated by the way the information capturing is performed and their particular advantages and disadvantages. Furthermore, sampling techniques can be used when complete traffic analysis is challenging, since sampling can reduce the storage space. To understand the sampling process and sampling techniques, this section provides information about the principal sampling bases and particularities. 2.1 passive methods The passive methods gather data by passively listening for network traffic by, for example, duplicating a link’s traffic using linked splitters or hubs or by monitoring buffers in routers (e.g., Figure 1). Some modern devices already have built-in passive measurement mechanisms that can be used to get different types of data from their interfaces. Some of these builtin mechanisms, such as RMON (Remote Network Monitoring), can gather data like number of sent bytes, lost packets and other interface statistics. Using this mechanism, a highly aggregated data is produce, which only provides a small piece of information about the network state or the traffic behaviour. The data created using these mechanisms can often be fetched using the SNMP (Simple Network Management Protocol). Another mechanism is IPFIX (IP Flow Information eXport) which collects IP flow data and then pushes it to pre-configured receivers (e.g., central monitoring server). Results achieved from passive measurements can be used for bandwidth usage, protocol distribution, or even intrusion detection. Wireshark and tcpdump are among the most used passive measurement tools. Nevertheless, the main challenge for passive methods is the amount of data that is generated. Having in mind the example provided by Mohan et al. (2011), considering a gigabit link with an 60% (on IP layer) utilization and an 300 bytes packet size on average, the capture rate is about 250000 packets per second. This generates a traffic rate of 75 mebibytes (78.6432 7
2.2. Active methods 8 megabytes) per second, and thus the storage space needed for a trace with one hour is 270 gibibytes (289.91 gigabytes) Mohan et al. (2011). Several compression methods are available to cover part of the problem, depending on the type of measurement. For instance, remove all irrelevant data from the captured packets. Standard compression methods can be helpful to remove redundancy from packets. Likewise, when a full traffic analysis is not required, traffic sampling can be applied. Although sampling highly reduce the storage needed, not all sampling methods produce good results considering the objectives. Another example is if only the IP and transport layer headers are stored, the above calculations would have 10 megabytes per second rate and 36 gigabytes of storage required for a one-hour trace. The last problem is dealing with online data analysis. In this scenario, the amount of data is more significant, and there are privacy issues associated with live data analysis. In online communication, the user’s information (sensitive information) represents part of the data flow and for that reason, the method cannot extract or look at the content to provide protection to the user’s information. To provide this extra security it is necessary to anonymize the IP addresses and the payload data. More about the sensitivity of IP header fields and a method to anonymize packets is presented in Jain (Aug. 2003). Figure 1: Example of passive measurement implementation (Mohan et al.,2011). The Figure 1represents an example of a passive method being applied. A splitter or hub is installed in the link that will be monitored. Then, when the traffic passes through the device, it is duplicated to a database used to store the captured traffic. Subsequently, the stored traffic can be used to whatever it is needed to. 2.2 active methods Active methods generate artificial probe packets that are sent over the network. This probe can be used, for example, to measure the time it takes for the packet to reach the other end of the network, i.e., End-to-end latency, the available capacity of the network path or the
2.3. Hybrid methods 9 response time of an application. Unlike passive measurements, active measurements create additional network traffic, so the possibility of regular traffic disturbance exists and needs to be considered. Because of that, active measurements consider the bandwidth used, usually not more than five percent of the total capacity, and need to be planned carefully before execution (Mohan et al.,2011). This is visible in most SLA-measurements (Service Level Agreement) where the measurement is constant, meaning the test traffic and customer traffic shares the same bandwidth. Some methods used for measuring the available bandwidth on a path, such as SLOPS (Self-Loading Periodic Streams), consist in sending probe packets at an increasing rate and recording the rate at which the probe’s delays start to rise (meaning the packets are being queued at some point) (Mohan et al.,2011). This type of method can cause perturbations to the normal traffic flow, although these perturbations are short. Heisenberg’s uncertainty principle can be interpreted to state that the measurement itself introduces uncertainty to the measurements (Luckie and J. McGregor, November 2003). This is true in the case of active network measurements and especially in active packet-loss measurements, where the probe packets may cause congestion and, by consequence, packet-loss. Passive measurement does not have this issue, as no additional traffic is inserted into the measured system. Nevertheless, active measurements do not need a massive amount of storage space. They can be used to measure things that passive measurement can not. For example, since passive methods do not use artificial intrusive packets, the way they gauge the time it takes for a packet to reach the other end of the network, the available capacity of a network path, or even the response time of an application is by using distinct measurement points, which results in more storage needed. Moreover, active methods have no privacy problems because the way the measurement works do not deal with sensitive information, in truth, active methods do not deal with any data from the network. Usually, the most known tools to perform active measurements are traceroute and ping. These tools are, in most of the cases, already built in the operating systems. The Figure 2represents an example of an active method being applied. Between the two points of interest, in this case web client and web server, it is generated traffic to actively measure the behaviour of the packets in the network. 2.3 hybrid methods The combination of active and passive methods is called hybrid methods. A scenario of hybrid measurement could be active probes being sent over a network and their progress being monitored by passive means during the measurement (e.g., Figure 3). This type of
2.3. Hybrid methods 10 Figure 2: Example of active measurement implementation (Mohan et al.,2011). arrangement allows the observer to track the path of the probes and record the intermediate and end-to-end delays (Mohan et al.,2011). Using this hybrid as a combination of the other two types of methods, a comparison can be done. However, passive measurements are better for situations where the capture point can be freely selected. And active measurements are better for targeted selection points or categories. They can be made over a network path with parts that are not controlled by the entity that performs the measurement. From an accuracy point, passive measurements are often better than active ones (Mohan et al.,2011). However, it must be emphasized that passive methods have a major storage demand and privacy issues. On the other side, active methods introduce intrusive traffic and measurement. The Table 1presents a better view of the advantages and disadvantages of passive and active methods. Taking this into account, the hybrid methods have both advantages and disadvantages of active and passive methods. However, the disadvantages are reduced, for example, the limitation of the active methods can be complemented by the passive measurements. And the storage needed for the passive methods can also be reduced by actively select the target packets on the measurement points. Table 1: Passive and active methods’ comparison. Method Advantages Disadvantages Passive Real traffic analysis Non-intrusive measurement Storage usage Privacy issues Active Specific target analysis Reduced storage concerns No privacy issues Limited Intrusive measurement
2.3. Hybrid methods 11 Figure 3: Example of hybrid measurement implementation (Mohan et al.,2011). The Figure 3represents an example of a hybrid method being applied. The scenario required that the measurer has administrative access to the intermediate routers and is thus not suitable to Internet scale measurements (Mohan et al.,2011). This allows the measurement to be performed thought a specific path in the network. In this scenario, it is possible to see the similarities between the passive and the active example images. In one side, the method is passively capturing the traffic in the splitters/hubs along the network. And, at the same time, the probe traffic is injected in the network. Using this method, it is possible to get the best of both active and passive methods and reduce the problems they encounter. An example of a hybrid technique is the use of an event-based trigger that fires upon observation of a packet with specified contents. This process is less demanding in a storage perspective, however generates a significative overhead because it is necessary to process all packets. After the trigger and the packet selection, any incoming packets within the next t seconds are selected to compose the sample, using a time-based approach. This solution may also be deployed with a count-based approach by capturing the first npackets arriving at the measurement point after identifying the event. As exemplified in Figure 4, the event is the first packet of a new flow observed in the stream and the sample size is equal to 3. This strategy may be of interest for traffic classification or security tasks. Silva et al. (2016) Figure 4: Example of hybrid technique (Mohan et al.,2011).
2.4. Sampling techniques 12 2.4 sampling techniques In the previous sections, sampling was approached but not explained or exemplified. So, according to Silva et al. (2016) and Silva et al. (2017) sampling techniques are composed of three different components (Granularity, Selection Scheme, and Selection Trigger), and each one of these components is divided as well (in this works only passive methods are described). 2.4.1 Granularity The first component of sampling is the granularity. Granularity identifies which traffic elements are considered in the sampling process (flow or packets). This decision usually depends on the network task, monitored parameters, and the available computational and communication resources. F L OW-L E V E L S A M P L I N G To start explaining the flow-level sampling, Rajahalme et al. (March 2006) will be used as a reference. A flow is classified as a stream of packets sent by a specific source to an unicast, anycast, or multicast destination, with particular properties and attributes in common. Generally, these properties (known as flow keys) are characterized based on five packet header fields (5-tuples), i.e., source and destination IP addresses, source and destination ports, and protocol type. Additionally, according to Handelman et al. (October 1999) and B. Claise et al. (September 2013), flow identification can also be based on application layer information, Multiprotocol Label Switching labels (MPLS), or fields derived from packet treatment. Related to traffic sampling, the flow-level approach applies the traffic capture method entirely to packets belonging to a particular flow or set of flows of interest. This process requires a packet-flow classification before or during the sampling process. This process can reduce the total volume of data in the final trace, but the computational weight will increase because all packets need to be identified and related to the flow. Furthermore, considering the objective for this work, prior knowledge about the target flow or flows is required to decide which flows will be sampled. This happens because, usually, the flow of an attack is not known. But can still be used in a security approach, for example, to monitor flows with external origin and ignore the internal traffic. To present the different flow selection strategies, it is necessary to consider that flow-level sampling is different from flow sampling, which consists in capturing all packets that belong to a particular flow (D’Antonio et al.,September 2013). Despite that, the strategies used to choose the flows, refereed in D’Antonio et al. (September 2013), can also be applied to the
2.4. Sampling techniques 13 flow-level context. Furthermore, according to the measurement purpose, different strategies can target specific flows. The refereed strategies are present in the following paragraphs: PAC K E T-L E V E L S A M P L I N G All incoming packets arriving at a measurement point are considered single and independent entities in the packet-level sampling. In this method, the computational requirements are reduced compared to flow-level since the packets do not need to be previously classified into flows. Moreover, packet-level sampling can be used in general-purpose measurements tasks and aggregated estimations because it is a more flexible and better solution for that demand. There are many sampling techniques based on packet-level granularity and, following the increasing importance of traffic sampling, Cisco Systems has introduced a module in its tool for traffic monitoring – NetFlow. By default, NetFlow processes all incoming packets at the measurement point, keeping incremental statistical data about each flow in a cache memory. High-processing resources are required, mainly in presence of high-speed links. In Sampled NetFlow, a systematic selection scheme (discussed in Section 2.4.2) is used to process uniquely a subset of packets arriving at a defined interface, then flow records are assembled over the sampled packets. Additionally, a random selection scheme (discussed in Section 2.4.2) was included in the tool, aiming to increase the accuracy of the available statistics. It is important to consider that Netflow and Sampled Netflow are flow-based tools, although, the sampling selection scheme is packet-based, justifying the inclusion in this section (Silva et al.,2016). 2.4.2 Selection Scheme The selection scheme is the type of scheme used to sample packets or flow. In other words, the selection scheme is the trigger to select the function that determines the pattern in which packets will be selected and collected. This scheme can follow a systematic, random, or adaptative function (B. Claise et al.,March 2009). S Y S T E M AT I C S A M P L I N G The packet selection follows a deterministic function. In this scheme, only equally spaced traffic portions are collected (Figure 6). This approach is usually easy to develop and deploy. On the other hand, there is an implicit risk of biased samples if the sampled packets have a periodic structure that is rationally related to the deterministic function. Besides that, systematic sampling is at a certain point predictable and open to deliberate manipulation (Silva et al.,2016). On the other side, resorts to a deterministic function, to perform sampling, a set of flows are selected according to the total number of arriving flows at the measurement point or during
2.4. Sampling techniques 14 the time interval of observation. An example is, the measurement point selects every N-th arriving flow to be considered for sampling, independently of the traffic type. Flow selection is then based on the first packet of a flow, upon which a counter is increased every time a packet belonging to a new flow arrives at the measurement point. If the counter is increased to multiple N, this flow will be considered for packet sampling. In the second approach, the packets from every flow observed at the measurement point between a time-based interval are selected to participate in the sampling process (D’Antonio et al.,September 2013). RANDOM SAMPLING The random selection scheme is presented to avoid biased samples by ruling the sampling frequency through a random process. In the majority is used a pseudorandom generator or a probabilistic function. The pseudorandom approach tries to avoid predictable results by choosing values exponentially distributed or geometrically distributed. Following this principle, a common strategy is inducing the random function generator to converge to a required sampling rate, ensuring that maximum and minimum values limit the sampling frequency distribution (Silva et al.,2016). In the probabilistic approach, the sampling frequency follows a predefined probability density function. The probabilistic function can be uniform or non-uniform, depending on whether packets have equal or different probability to be selected (B. Claise et al.,March 2009). There are no clear advantages in the choice of systematic or random sampling for traffic characterization or classification (Silva et al.,2016). Nevertheless, since random approaches do not have a deterministic pattern, it is difficult to deploy for estimating multipoint metrics. An example for flow selection, is based on a random process to select flows following an n-out-of-N or a probabilistic scheme. In n-out-of-N, n flows are selected out of the Nflows’ population. It may involve generating nrandom numbers in the range, [1, N]and then selecting all flows with an arrival position equal to one of the random numbers. In probabilistic flow selection, the decision of whether a flow is selected to participate in packet sampling follows a predefined probability that may be uniform (i.e., with the same selection probability for all flows) or non-uniform (i.e., where the selection probability can vary for different flows). The probabilistic scheme implies that the number of selected flows can vary (Silva et al.,2016). ADAPTATIVE SAMPLING For the last approach, the techniques are enriched with the ability to change the selection of packets or flows during measurements. This provided flexibility tries to identify the essential parts of the traffic stream according to the measurement needs or save network resources during critical periods of its operation. Linear prediction, fuzzy logic, or other particular adaptative strategies and mechanisms that consider the traffic behaviour, the packet content, or the network status are the base for adaptative sampling. (Silva et al.,2016)
2.4. Sampling techniques 15 The adaptative sampling technique presented in Sommers et al. (2005) uses linear prediction to identify changes in the network activity and therefore set a more suitable sampling pattern by adjusting the sampling frequency accordingly. This allows reducing the measurement overhead while keeping the accuracy in traffic characterization. In fuzzy logic-based adaptative sampling, a controller adjusts the sampling rate based on the experience of similar situations, determining the most suitable action for a particular traffic condition or measurement requirement. 2.4.3 Trigger Selection The last component in sampling is the trigger selected. A trigger is selected to determine when a sample should start and end, and consequently, the interval between samples. T I M E -BA S E D A time-based approach is defined using a timestamp associated with packet arrival to start and end the sampling. To deploy this method, first is to use a countdown timer within all packets arriving at the measurement point and selecting them for the sample. A second countdown timer is used to ignore the packets for measurement purposes (Figure 5). When the trigger fires the start of a new sample, the measurement point waits for the first bit of the next incoming packet and starts the collection. When the trigger fires the end of sampling, the measurement point continues the collection until the last bit of the current packet and then interrupts the selection process (Silva et al.,2016). Figure 5: Example of time-based technique (Mohan et al.,2011). COUNT-B A S E D The count-based approach specifies that beginning and ending a sample is determined by the spatial location of the packet within the traffic stream. This process uses positional counters. An example of using this approach presents a deterministic function within the interval between samples, corresponding to a predefined number of packets that must arrive at the measurement point before the beginning of a new sample (Figure 6). For this, the counter is decremented for every packet arriving at the measurement point. When the counter reaches zero, a new sample starts (Silva et al.,2016).
3 METHODOLOGIES After gathering information about sampling, the processes and methods available, it is needed to create a test environment to perform the tests and get results to use sampling in network monitoring to provide better results for security purposes. The environment needs to provide the ability to inject traffic in the internal network. In addition, it is necessary to have the capacity to capture traffic and generate traces with the captured traffic. Furthermore, It is necessary to have a mode to apply different sampling techniques to traces to create different sampled traces for further analysis. The final requirement is the capability to analyse traces and gather the analysis results of the traces, such as number of packers, events, and events priority. For this environment (Figure 8) to work properly, it is composed by four different elements. These elements are: Figure 8: Test environment architecture. A Network Scanner. It is an element used in network administration as well as in penetration testing. It allows the user to map the network and its topology, as well as to find devices that would be hard to find manually. It also allows a security analyst or penetration tester to 22
23 find devices on the network that could be likely opportunities to use to begin a breach into the network (Sca,b). The act of network scanning helps to find all the active hosts on a network and maps them to their respective IP addresses. Network scanners send a packet or ping to every possible IP address and wait for a response to determine the status of the applications or devices (hosts). The responding hosts are considered active, while others are considered dead or inactive. These responses are then scanned to detect inconsistencies. Using an Address Resolution Protocol (ARP) scan, admins can manually ping the subnet. But for a wider reach across all subnets, it’s better to use tools capable of automatically running scans and discovering devices. Internet Control Message Protocol (ICMP) scans allow you to map network topology (Sca,a). A Network-Based Intrusion Detection System, which is a device or software application that monitors a network for malicious activity or policy violations. Any malicious activity or violation is reported or collected using a Security Information and Event Management System (SIEM) which offers real-time monitoring and analysis of events as well as tracking and logging of security data for compliance or auditing purposes. Some IDS’s are capable of responding to detected intrusions upon discovery. These are classified as intrusion prevention systems (IPS). (IDS,a) Network-based intrusion detection systems (NIDS) are devices intelligently distributed within networks that passively inspect traffic traversing the devices on which they sit. NIDS can be hardware or software-based systems and, depending on the manufacturer of the system, can attach to various network mediums such as Ethernet, FDDI, and others. Often times, NIDS have two network interfaces. One is used for listening to network conversations in promiscuous mode and the other is used for control and reporting. With the advent of switching, which isolates unicast conversations to ingress and egress switch ports, network infrastructure vendors have devised port-mirroring techniques to replicate all network traffic to the NIDS. There are other means of supplying traffic to the IDS such as network taps. Cisco uses Switched Port Analyser (SPAN) functionality to facilitate this capability on their network devices and, in some network equipment, includes NIDS components directly within the switch. We’ll discuss Cisco’s IDS products in the next chapter. While there are many NIDS, all systems tend to function in one of two ways; NIDS are either signature-based or anomaly-based systems. Both are mechanisms that separate benign traffic from its malicious sects. Potential issues with NIDS include high-speed network data overload, tuning difficulties, encryption, and signature development lag time (NID,b). For this work, the chosen NIDS is Snort. Snort is used because there are community and registration rules available in their website (Sno). Furthermore, Snort is a well known NIDS and the learning curve is reduced if used in this work. A vulnerable setup. It is a test environment that provides a secure place to perform penetration testing and security research. For this test environment, is used a Metasploit (a
24 penetration testing framework) instance that can access a vulnerable target. In this case, the Metasploit instance is a Metasploitable2 virtual machine (VM). (Met) And, the last piece, is a Sampling Framework (SF). An SF provides the tools to perform different types of sampling methods to traces or to live traffic, which allows creating traces that can be used as sampling targets. In this case, the SF used is provided by Silva et al. (2016). TEST ENVIRONMENT In the Table 2is possible to see that the environment is composed of three different VMs. A Kali Linux VM, and two Ubuntu VMs. The VMs are connected by an internal network (inet) with the active promiscuous mode, with this all the VMs are connected in the same network, and can listen to each other simultaneously without restrictions. Table 2: Test environment specifications. VM Type Usage Software Version Kali Kali Linux Scanner Nessus Essentials 8.15.2 IDS Snort 2.9.18 Sampler Ubunto (32 bits) Sampling Sampling Framework 4.0 Metasploitable 2 Ubunto (64 bits) Vulnerable VM for traces - - Going in the VMs details. The Kali Linux VM is configured with a network scanner and an NIDS. The network scanner used is Nessus Essentials and the NIDS is Snort. The Nessus is used to inject network traffic into the internal network. This is achieved by making Nessus scan the vulnerable VM, which is an instance of Metasploitable2. Snort is configured with the community (Sno) and the registration rules (provided trough registration in Sno), and is used to report the number of packets and alert events present in the analysed trace. In this case, the target is a trace generated by capturing the traffic in the internal network. This trace is created using the Sampling Framework (present in the third VM) in capturing mode. The capturing mode just listen to the network and creates a trace with the network content. Furthermore, the Sampling Framework is also used to perform the different types of sampling to the trace. The flow started by injecting malicious traffic in the internal network. Subsequently, the network traffic is captured by the SF to create the trace to be used in the sampling. Although the scan and the capture is done online and in real-time in the internal network, the resulting trace generated had no network fluctuations or input variations. This way, the comparison between the trace samples and the original trace could be more accurate. This happens due to no variation on the input used to perform the sampling in all the techniques because the trace used is unchanged through all the process. Having the trace ready to sample, the next step is
25 applying the different sampling techniques to the trace, and the last step is to provide Snort with all the traces as input. This way it is possible to get the results ready for the analysis. T E C H N I Q U E A N D PA R A M E T E R S The related work gives a first analysis of the techniques and the parameters that can be used in this research. Considering all the information acquired it is decided to use all the methods available in the Sampling Framework, i.e., Systematic count-based, random countbased, Systematic time-based, multiadaptive sampling (MuST), and adaptive linear prediction (LP). Applying these techniques and using Snort to evaluate the sampled traces the result provides information about the number of sampled packets, number of identified events and the priority type for all events. To apply the Count-based techniques, as recommended in Choi and Bhattacharyya (2009) and Valentín et al. (August 3, 2010), the frequency of 1/100 is better for comparison purposes, but that is not enough for good analysis. So, following the work described in Silva et al. (2015) several other frequencies are used (1/2nwith n∈[3..8]) to get different results for different samples. This type of technique is deterministic, which means that the frequency predetermines the proportion of packets captured from the sample trace. For example, if the initial trace has 20000 packets and the sampling frequency is 1/8, the resulting trace should have around 2500 packets. Having this in mind, the results for this type of technique should not be as promising as the other techniques, since the proportions are deterministic, the number of detected events should follow the same proportion. For the time-based techniques (Systematic time-based, MuST, and LP), the frequencies are different. As suggested by Choi and Bhattacharyya (2009), the frequency of 100/300ms is used for the Systematic time-based technique for comparison purposes. However, other frequencies are used (100/500ms, 100/750ms, 100/1000 ms, and 200/1000 ms) to test different results and provide data for possible tuning. For the MuST technique, only two frequencies are tested (200/500ms and 100/1000ms). This technique is a multi and self-adaptive technique, as both the sample size and interval between samples are self-adjustable parameters according to the ongoing network activity or sample and the accuracy of prediction achieved. Besides that, MuST aims to reduce significantly the measurement overhead and still assuring that traffic samples reflect the statistical characteristics of the global network traffic under analysis (Silva et al.,July 26, 2013). This means, the MuST technique purpose is to improve the sampling reactivity and efficiency, considering both the interval between samples and the sample size as adjustable parameters. In this way, the technique attends to follow the adaptive nature of the technique. It is driven by simplicity of implementation and low consumption of resources. The sampling frequency is increased whenever there is a noticeable increase in network activity to allow detecting conveniently the new traffic pattern. This is achieved through the reduction of the interval
26 between samples. As the sampling frequency increase a higher consumption of resources (processing and storage) is implied, and the sample size should be reduced to mitigate overhead while maintaining the representativeness of samples in the estimation of the parameters under analysis. And the adaptive parameters are properly bounded by thresholds to guarantee representative data for capturing network behaviour (Silva et al.,02 August 2012). The last time-based technique is the LP technique. For this technique, the frequencies used are 100/500ms,200/500ms,100/1000ms, and 200/1000ms. LP attempts to predict the value of the next sample. If the prediction is accurate, the sampling rate can be reduced. Inaccurate predictions indicate a change in the network behaviour and require an increased sampling rate to determine the new pattern (Hernandez and George,December 2001). From this type of techniques, better results are expected. Based on the irregular characteristics of the anomalous events, these events, for example DoS, don’t follow a predictable behaviour. So, time-based techniques benefits from it because the sampling captures sequential packets, and not sporadic ones. Moreover, to evaluate the accuracy from the events identification compare the number of total events in the original trace and the events identified in the sampled trace. DIFFICULTIES Moreover, when testing using real traffic, there are even more possible difficulties. An enormous amount of flow interferes with the results because these are not relevant for the task. This is not a problem but a difficulty present in the work. Nevertheless, also some privacy issues need to be dealt with in this type of research. For example, to test those methods in real traffic, the researchers need special permission to work with private information. SECTION CONCLUSIONS This section provides an explanation about the test environment, composed by three VMs. A Kali VM with the Network Scanner and the Snort, an Ubunto VM with the Sampling Framework, and a vulnerable setup to provide the environment for the trace. Besides the test environment, the section also explains the methodologies and the reasons behind them. And it is also in this section that the MuST and the Linear Prediction techniques are presented and explained since these techniques are relevant for the analysis step.
4 RESULTS Analysing the results gathered by Snort (available in Tables 12 and 11 as a support information), the results of the techniques bring plenty of information to work with. But first, to analyse the results, the evaluation consider three types of characteristics. The first one is the total number of packets in the trace under analysis, the second one is the total number of events captured (events detected by Snort when a suspicious action happens) in the trace, and the last one is the number of events for each priority. The priorities have three types: priority three, two, and one. This scale provides information on how severe is the event. The scale starts in priority three and end in priority one. Priority three show the low-risk events and are specified in Table 3, priority two represents the intermediate risk events also presented in Table 4; priority one express the critical risk events stated in Table 5. 4.1 original trace analysis To start the analysis, in the original trace results are 41328 sampled packets and 1236 sampled events in total. From these events, 230 have priority three, 527 priority two, and 479 priority one. Between these events, eighteen types of events are present, six for each priority. In priority three the events selected are: 140 MAv, 3 DNS, 41 NST, 43 GPCD, 2 SSD and 1 UT. In priority two the events are: 3 MAk, 250 AIL, 3 ADoS, 178 APVWA, 70 PBT, and 23 DoRPCQ. The priority events selected are: 319 AAPG, 3 AUPG, 14 PCPV, 136 WAA, 5 SAPG, and 2 ECD. From this initial analysis, it is possible to check that the most frequent types of events for each priority type are MAv for priority three, AIL for priority two, and AAPG for priority one. With this information, it would be predictable for the sampled traces to have this type of events in greater quantity. 27
4.2. Count-Based Techniques 28 Table 3: Priority three events description. Acronym Full name Description DNS Detection of a Network Scan Network scan detected GPCD Generic Protocol Command Decode Checks for packets that are not decode as the standard specifies MAv Misc Activity Diversified activity found in the network, such as anomalies generating a large number of false positives NST Not Suspicious Traffic Not suspicious traffic at the first look, this traffic can be a false negative SSD Suspicious String Deleted String deleted due to suspicious behaviour UT Unknown Traffic Potentially unusual event detected Table 4: Priority two events description. Acronym Full name Description ADoS Attempted Denial of Service Represents the attempt of causing a DoS attack AIL Attempted Information Leak Handles signatures of potentially harmful information collection attempts APVWA Access to a Potential Vulnerable Web App Represents access to a web app with potential vulnerabilities DoPRCQ Decode of an RPC Query Detects RPC protocol packets decode on certain ports MAk Misc Attack Diverse attacks known by IDS, catalogued and blacklisted. PBT Potential Bad Traffic Network traffic is potentially malicious as connections from command and control servers to known botnets. 4.2 count-based techniques The first analysis opens with the count-based techniques. In this section, Systematic Count- Based and Random Count-Based techniques compose the analysed sampling results. In this two techniques, the used frequencies are 1/2nwith n∈[3..8]and 1/100. These frequency values are from Silva et al. (2015), Choi and Bhattacharyya (2009) and Valentín et al. (August 3, 2010). PAC K E T S A N A LY S I S
4.2. Count-Based Techniques 29 Table 5: Priority one events description. Acronym Full name Description AAPG Attempted Administrator Privilege Gain There was an attempt to gain administrator privilege AUPG Attempted User Privilege Gain There was an attempt to gain user privilege ECD Executable Code was Detected Code that can be executed was detected PCPV Potential Corporate Privacy Violation Activity that has as a relation with the violation of privacy as collection of information of the user. SAPG Successful Administrator Privilege Gain Attempt to gain administrator privilege was successful WAA Web Application Attack Attempt to exploit a known vulnerability on a web server or a web application resident on a web server Starting with Systematic Count-Based, following figure 9, this type of techniques is deterministic, and considering the fraction between sampled packets and the sampling frequency, the fraction of sampled packets is the same as the frequency applied to the original trace. This means, from the total number of packets in the original trace, the number of packets selected in the sampled trace matches the frequency proportion. For example, the original trace have 41328 packets, applying the 1/8 frequency, the sampled trace have, in this case, 5181 packets, a number really close to exactly 1/8 of the original trace. This behaviour can be observed in all Count-based techniques. Considering this results, the quantity of selected packets should not exceed 1/8 of the original trace. Hence, from a packet-level perspective, applying these techniques to sample the original trace is certainly limited in a number of packets perspective. A Snort particularity can be observed in these results for Count-based techniques. When Snort is processing the samples it is possible to have some loss. This is visible because the Systematic Count-based techniques have fewer packets than the Random Count-based ones. The expected result should be the Systematic Count-based to have more packets, since the Random Count-based have some packet loss due to the sample interval accounting in the final of the sample. E V E N T A N A LY S I S For the event analysis, the Figure 10 is the base. Contrary to packet results, the selected events did not follow the frequency proportion. This means, the proportion between selected events and total number of events is not equal to the frequency. For example, with the frequency 1/8 the sampled trace selected 32 events from the total of 1236 events, this does
4.2. Count-Based Techniques 30 Figure 9: Number of packets sampled with Count-based techniques per frequency. not represent the same proportion from the frequency. For all the frequencies, the number of selected events is not bigger than 32 for the frequency of 1/8. These low numbers can be related to the impossibility of Snort to identify flows without the access to the complete handshake. This means, without all the handshake steps, Snort can ignore a flow, and thus it is not present in the sampled events. Exploring the events even more, it is important to analyse the types of events identified for each Count-based technique. Considering the number of identified events for each frequency and each type of technique, it is possible to conclude if these techniques are better for a specific type of events. Figure 10: Number of events sampled with Count-based techniques per frequency. PRIORITY ANALYSIS
4.3. Time-based Techniques 31 In the Count-based techniques, all priority types are present (Figure 11 and 12). However, the most common type is the priority three contrary to the numbers in the original trace. This type is present in almost all traces, with the major number of selected events. The traces containing more events of this type are the ones with bigger frequencies, such as 1/8 and 1/16. Priority two events can be observed with these techniques, but appear almost all in higher frequencies (between 1/8 and 1/32). In lower frequencies, this type of events is close to zero. The last type, priority one, appears even less, being present only in the frequency 1/8 and a sporadic case in Random Count-base with frequency 1/100. In the priority three events, the most common is MAv, representing between 45% and 100% of all events found in the traces. Still in priority three, DNS, GPCD, and SSD events are present. But these in small number and only for frequencies 1/8 and 1/16. Priority two events are present in a smaller proportion. However, in a major variety. In Systematic Countbased, the principal types are AIL and PBT events, but ADoS and APVWA are also found. In Random Count-based the principal events found are AIL and PBT as in Systematic Countbased, but MAk is present too. The last priority, priority one, have the least frequency. In this priority, the selected events, are only two types, SAPG in both techniques for the frequency 1/8 and ECD only in Random Count-based for frequencies 1/8 and 1/100. For Count-based techniques, priority three events are the ones found in bigger quantity, against the original trace, where the most present priority is priority two. These results may be caused by the Priority two and one events complexity. Priority two and one events are composed by flows, which means Snort cannot find the complete flow to identify the event, i.e., Snort follows a set of rules which is used to match the observed traffic and decide whether a certain event is present or not. If only part of the event is identified by Snort the rules does not trigger and thus the event is ignored. Moreover, priority two and one events are more dangerous, so they need to avoid follow a regular packet-flow to not be detected by capturing a single packet. 4.3 time-based techniques In the second part of the analysis, the focus is the Time-based techniques. The techniques under analysis are Systematic Time-based, MuST, and LP. As in the previous analysis, for all techniques, will be presented the number of packet, event, and priority analysis.
4.3. Time-based Techniques 38 example, 100/500 and 100/1000. However, for redundancy and comparison, four different frequencies composed the set. PAC K E T A N A LY S I S The results for the Linear Prediction (Figure 17) technique are the better ones from all techniques. For this technique, the results join in two different sets. The first one is for frequencies with total time interval of 500ms (100/500 and 200/500), these frequencies resulted in, 14324 selected packets, almost 35% of the original trace packets. The second set is the frequencies with total time interval of 1000ms (100/1000 and 200/1000). Despite the two frequencies being similar in results, there is a small difference in number of selected packets. The frequency 100/1000 selected 25266 packets and the frequency 200/1000 selected 25291. The global result with this Linear Prediction is a major number of packets selection from the original trace. This may be the consequence of the consecutive sampling adaptation, considering the technique accuracy, through the sampling process. E V E N T A N A LY S I S From the event perspective, the results of Linear prediction still the better ones from all the sampling techniques (Figure 17). For the analysis, the frequencies can also be separated in two sets. Frequencies 100/500 and 200/500 samples produced traces with 458 selected events. On the other hand, 100/1000 and 200/1000, despite having more selected packets, only have 429 selected events in their traces. These results represent the differences between the two frequencies sets, and also represent different forms of adaptation from the Linear Prediction technique. In other words, for the first set (100/500 and 200/500) the results have a major number of selected events than the second set, but if the comparison is the number of packets, the second set is better for that purpose. This shows the different possibilities for the same technique based on the initial frequency used. PRIORITY ANALYSIS Analysing the event results present in Figure 18. These results represent the number of events per priority type present in the Linear prediction traces. These results contemplate all types of priorities. Alike the past separation, the frequencies compose two sets ({100/500, 200/500}and {100/1000, 200/1000}). In priority three events, the results between the two different sets are similar. The first set selected 105 events and the second one selected 110 events. For the first set, the event types are: 70 MAv, 23 NST, 11 GPCD, and 1 SSD. For the second set, the event types are: 65 MAv,
4.3. Time-based Techniques 39 Figure 17: Number of packets and events sampled with the LP technique per frequency. 2 DNS, 22 NST, 19 GPCD, and 2 SSD. Despite the overall selected events (set one have more than set two), the set two have more priority three selected events, and also more diversity in the event types. This diversity of difference may result from the major number of packets selected in the set two. Priority two events represent the major quantity of events for both sets. For this priority, the set one selected more events than the set two, 226 and 206, respectively. The event distribution on set one is 2 MAk, 141 AIL, 63 APVWA, 18 PBT, and 2 DoRPCQ. On the set two, the selected events are 2 MAk, 109 AIL, 1 ADoS, 51 APVWA, 21 PBT, and 22 DoRPCQ. Also in this priority the diversity of event types is more significant in the set two, however the number of selected events is lower. The reason for the diversity can be, again, the bigger number of selected packets in the traces of set two. The last priority to be analysed is priority one. In this priority, the diversity is the same in the two sets. This mean each set selected the same types of events from the original trace. Despite that, the number of selected events is different between the two sets. Set one results, composed by 7 AAPG, 9 PCPV, and 111 WAA, represent the set with major number of priority one events. And the set one, with 13 AAPG, 8 PCPV, and 88 WAA, have the lower number of priority one events. 4.3.4 Storage evaluation This section provides a comparative evaluation for each applied technique in the perspective of storage usage.
4.3. Time-based Techniques 40 Figure 18: Number of events sampled per priority with the LP technique per frequency. Count-based With Count-based techniques, the file size is considerably reduced. The size of the file is also proportional with the sampling frequency, following the same fraction between the original file size and the sampled file size. Table 6: Storage usage in Systematic Count-based techniques. File Size Original Trace 7.67 MB 1/8 999 KB 1/16 493 KB 1/32 254 KB 1/64 134 KB 1/100 82.6 KB 1/128 70 KB 1/256 34.4 KB Systematic Time-based With Time-based techniques, the reduction in file size is less than with Count-based ones. However, this reduction is considerable if the results are compared. Considering the Systematic Time-based technique, the bigger file have 1.68 MB and the bigger file in Count-based have 1.1 MB. However, with the Systematic Time-based 277 events are identified and with the Count-based only 45 events are identified. The file difference is just 0.58 MB even though the
4.3. Time-based Techniques 41 Table 7: Storage usage in Random Count-based techniques. File Size Original Trace 7.67 MB 1/8 1.1 MB 1/16 510 KB 1/32 254 KB 1/64 122 KB 1/100 78.8 KB 1/128 56.3 KB 1/256 29.3 KB number of identified events is more than five times bigger with the Systematic Time-based technique. Table 8: Storage usage in Systematic Time-based techniques. File Size Original Trace 7.67 MB 100/300 1.68 MB 100/500 1.27 MB 100/750 813 KB 100/1000 747 KB 200/1000 1.3 MB Another comparison is the Multi-adaptive Sampling Technique. With this technique, the bigger file have only 568 KB and still identifies 59 events. The file is almost half the size of the bigger file in Count-based (1.1 MB) and identifies more events. Table 9: Storage usage in Multi-adaptive Sampling Technique. File Size Original Trace 7.67 MB 200/500 568 KB 100/1000 568 KB The last technique is Linear Prediction. This technique generates the biggest sample files. If compared with the same Count-based file as before, the bigger file have 4.57 MB and identifies 429 events. This file size is almost four times than the Count-based one and still identifies 9.5 times more events.
4.3. Time-based Techniques 42 Table 10: Storage usage in Linear Prediction techniques. File Size Original Trace 7.67 MB 100/500 3.04 MB 200/500 3.04 MB 100/1000 4.57 MB 200/1000 4.57 MB In conclusion, Time-based techniques provide the better results if considering the tradeoff between storage reduction and anomaly detection. And between the three Time-based techniques there are some comparisons that need to be addressed. The MuST technique cannot be properly compared since the context is not the better one for the technique (as explained before). So, comparing the Systematic Time-based and the Linear Prediction the results, for the frequency of 100/500 the Systematic Time-based have a file size of 1.27 MB and identifies 263 events. On the other hand, for the same frequency, the Linear Prediction technique have a file size of 3.04 MB and identifies 458 events. The Systematic Time-based technique provides a better tradeoff in this scenario because identifies more events for each MB of file. The used values for the comparison are: 207 events/MB for Systematic Time-based and 151 events/MB for the Linear Prediction technique. 4.3.5 Overall Results Interpretation From the 41328 packets and 1236 events identified in the original trace, the better technique is Linear Prediction. With this technique, the range of selected packets is 14324 and 25291. The number of selected events is 458 and 429. Furthermore, the systematic time-based one got good results, by comparison, 9154 packets and 277 events for the frequency 100/300. Although the systematic time-based techniques tend to be better due to the nature of the traffic, the results from the MuST does not represent the same level as the other Time-based techniques. Using this technique, only, 4198 packets and 59 events can be found in the sampled traces. This result ratifies the technique purpose which is to reduce computational weight, penalizing the intrusion detection. On the other side, the Count-based techniques behave as expected in a prediction perspective, since they follow a deterministic logic, the number of packets tends to be based on the sampling frequency. So, taking that into account, for event selection, Count-based techniques generate the worst traces.
4.3. Time-based Techniques 43 Moreover, comparing the results with the section 2.6 of the Related work, it is possible to observe the different in the studies process to identify the attacks and the process in this work. In other words, the process in the studies have a traffic characterization and then a specific approach is applied. In this work, the trace is sampled and then analysed. Considering these differences, the results show worst results in this work for DoS attacks. This may be because the original trace has few examples of DoS, but also because the sampling techniques are not tuned to find specific types of attacks. As a final point, the techniques frequencies can be tuned to improve the performance. Starting with Count-based techniques, these techniques do not represent the better option for anomaly detection. As a result, the tuning could only be increase the frequency, but that would also increase the file size without a major improvement in accuracy. On the other hand, Time-based techniques could have some improvement with the right tuning. Systematic Timebased techniques would be the ones who benefited the most from tuning. As analysed before, this technique has the better results in a storage reduction/accuracy perspective. The other two Time-based techniques would not be so easy to tune. This because MuST needs time to produce good results, and the main goal is to reduce computational weight, causing the anomaly detection to be impaired. And Linear Prediction tends to find the right tuning by itself. For this last one, the tuning could be a way to keep the anomaly detection high while reducing the file size.
5 CONCLUSIONS All communications flowing through the network brings difficulties to network planning and management activities. Alongside, security is a considerable concern and a delicate topic when it comes to the network. The need for better and more accurate solutions regarding monitoring purposes, being essential to assisting service providers and network managers in these activities, is even more stressed if considering the growth of cloud computation and next-generation networks, where besides service convergence, mobility, virtualization, and ubiquity the network attacks and sensitive information management need to coexist in a stable environment. Considering the focus of this the work is how to use sampling in network monitoring to provide better results for security purposes. Since security monitoring is a heavy operation, searching for different ways to reduce the computation necessities, storage usage, and even the time it takes to process all the information is an improvement to the area. In response to these problems, the work developed over this dissertation bring responses to some necessities. From the reduction in storage usage to the selection of specific traffic. Sampling delivers a balanced solution to the network security analysis, reducing costs. A point to introduce sampling in the network security analysis is the computation necessities. Despite the computation needed to apply the sampling, it is less expensive to perform sampling and analyse a sampled trace than analyse a full trace. Generating the trace for the research was a slight challenge because using three VMs simultaneously is a heavy task. Moreover, the connection between the VMs needed to be configured and fully functional to perform the capture and samples and while having three different VMs running in the same machine. Regardless of the difficulties, with this first set of results and the analysis, it was possible to conclude that the Linear Prediction technique is better for this type of analysis based on the number of packets and total events selected. However, the majority of the analysed techniques did not represent a viable method to search for events since the number of events selected is low, compared to the original trace. Removing Linear Prediction technique from the analysis, the sampling techniques do not produce good enough results to use in a real environment. In other words, and considering the results (except 44
5.1. Future Work 45 Linear Prediction), from the techniques the better one is Systematic Time-based with 9154 selected packets and 277 selected events. These values represent 22% of the packets and events from the original trace. Now, considering a real context, if a network under attack rely on this type of sampling for their protection, the chance of finding the intrusion or anomalous traffic is only 22%. This means, it is not possible to trust this method for protection. Furthermore, these results allow cutting off Count-based technique in a security context analysis. The reduced number of selected events (3% of the total number of events) cannot be used to evaluate the network security properly. Although the results show Count-based techniques as the worst ones, these techniques are the ones present in production equipments. This happens because the production equipments work as packet driven. I.e., the equipments have a packet flow default setup, and does no implement flow-based methodologies. To apply these types of methods to these equipments it is necessary to mirror all the traffic, proceed to the characterization and then apply the techniques. 5.1 future work This dissertation represents a culmination of work and research. Nevertheless, not all the expected work was possible to be developed and researched. Based on the actual state of the work, the only answers are which sampling technique is best for a small trace and this in a controlled environment. To register more real results, the tests could be done in a real traffic environment and the techniques could be tuned to use better frequencies. Moreover, if considering the results for specific type of events, it could be possible to tune specific techniques and/or frequencies for specific event types. Further, new types of events can be considered into the analysis. Overall, this project has the potential to bring new information about the topic to the scientific community and can represent an innovation in the way today’s words consider and evaluate network security.
BIBLIOGRAPHY Intrusion detection system. shorturl.at/cmHK9, a. Accessed: 2022-05-14. What is an intrusion detection system? shorturl.at/kqCNZ, b. Accessed: 2022-06-06. Metasploit. shorturl.at/qBRWX. Accessed: 2022-05-14. Network-based intrusion detection system (nids). shorturl.at/hQZ19, a. Accessed: 2022- 06-06. Nids. shorturl.at/eoqFVv, b. Accessed: 2022-05-25. Network security. https://www.forcepoint.com/cyber-edu/network-security. Accessed: 2022-05-14. Network scanner. shorturl.at/sDW68, a. Accessed: 2022-05-25. Network scanner. shorturl.at/rxB02, b. Accessed: 2022-05-14. Snort rules. https://www.snort.org/downloads. Accessed: 2021-10-25. G. Androulidakis, V. Chatzigiannakis, and S. Papavassiliou. Network anomaly detection and classification via opportunistic sampling. 23(1):6–12, 2009. Ed. B. Claise, A. Johnson, and J. Quittek. Packet sampling (psamp) protocol specifications. March 2009. Ed. B. Claise, Inc. Cisco Systems, Ed. B. Trammell, ETH Zurich, P. Aitken, and Inc. Cisco Systems. Specification of the ip flow information export (ipfix) protocol for the exchange of flow information. September 2013. ISSN 2070-1721. Daniela Brauckhoff, Bernhard Tellenbach, Arno Wagner, and Martin May. Impact of packet sampling on anomaly detection metrics abstract. October 25-27, 2006. B.Y. Choi and S. Bhattacharyya. Observations on cisco sampled netflow. 2009. URL https: //dl.acm.org/doi/10.1145/1111572.1111579. S. D’Antonio, Univ. of Napoli "Parthenope", T. Zseby, CAIDA/FhG FOKUS, C. Henke, Tektronix Communications Berlin, L. Peluso, and University of Napoli. Flow selection techniques. September 2013. ISSN 2070-1721. 46
BIBLIOGRAPHY 47 S. Handelman, S. Stibler, IBM, N. Brownlee, The University of Auckland, G. Ruth, and GTE Internetworking. Rtfm: New attributes for traffic flow measurement. October 1999. Xiaobing He, Wu Yang, and Qing Wang. An adaptive traffic sampling method for anomaly detection. pages 142–146, 2009. doi: 10.1109/ICICSE.2009.32. Edwin Hernandez and Alan D. George. Adaptive sampling for network management. December 2001. Manish Jain. End-to-end available bandwidth: Measurement methodology, dynamics, and relation with tcp throughput. 11(4):537–549, Aug. 2003. Matthew Luckie and Anthony J. McGregor. Ipmp: Ip measurement protocol. November 2003. Venkat Mohan, Y R Janardhan Reddy, and K Kalpana. Active and passive network measurements : A survey. 2(4):1372–1385, 2011. ISSN 0975-9646. J. Rajahalme, Nokia, A. Conta, Transwitch, B. Carpenter, IBM, S. Deering, and Cisco. Ipv6 flow label specification. March 2006. Joao Marco C. Silva, Paulo Carvalho, and Solange Rito Lima. Analysing traffic flows through sampling: A comparative study. 2015. João Marco C. Silva, Paulo Carvalho, and Solange Rito Lima. A modular traffic sampling architecture: Bringing versatility and efficiency to massive traffic analysis. 25(3):643–668, 2017. ISSN 10647570. doi: 10.1007/s10922-017-9404-5. João Marco C. Silva, Paulo Carvalho, and Solange Rito Lima. Multiadaptive sampling for lightweight network measurements. 02 August 2012. João Marco C. Silva, Paulo Carvalho, and Solange Rito Lima. Inside packet samplig techniques: exploring modularity to enhance network measurements. 2016-Febru:341–346, 2016. ISSN 15301346. doi: 10.1109/ISCC.2015.7405538. João Marco C. Silva, Paulo Carvalho, and Solange Rito Lima. A multiadaptive sampling technique for cost-effective network measurements. July 26, 2013. Joel Sommers, Paul Barford, Nick Duffield, and Amos Ron. Improving accuracy in endtoend packet loss measurement. 35, 2005. Davide Tammaro, Silvio Valenti, Dario Rossi, and Antonio Pescapé. Exploiting packetsampling measurements for traffic characterization and classification. 2012. Carela-Español Valentín, Barlet-Rosa Pere, Cabellos-Aparicioa Albert, and Josep Solé-Pareta. Analysis of the impact of sampling on netflow traffic classification. August 3, 2010.