Skip to main content
zenodoopen

SQL Injection Attack Netflow

<p><strong>Introduction</strong></p> <p>This datasets have&nbsp;SQL injection attacks (SLQIA)&nbsp;as malicious Netflow data. The attacks carried out are SQL injection for Union Query and Blind SQL injection. To perform the attacks, the SQLMAP&nbsp;tool has been used.</p> <p>NetFlow traffic has generated using DOROTHEA (DOcker-based fRamework fOr gaTHering nEtflow trAffic). NetFlow is a network protocol developed by Cisco for the collection and monitoring of network traffic flow data generated. A flow is defined as a unidirectional sequence of packets with some common properties that pass through a network device.</p> <p><strong>Datasets</strong></p> <p>The firts dataset was colleted to train the detection models (<strong>D1</strong>) and other collected using different attacks than those used in training to test the models and ensure their generalization (<strong>D2</strong>).</p> <p>The datasets contain both benign and malicious traffic. All collected datasets are balanced.</p> <p>The version of NetFlow used to build the datasets is 5.</p> <table> <thead> <tr> <th scope="col">Dataset</th> <th scope="col">Aim</th> <th scope="col">Samples</th> <th scope="col">Benign-malicious<br> traffic ratio</th> </tr> </thead> <tbody> <tr> <td>D1</td> <td>Training</td> <td>400,003</td> <td>50%</td> </tr> <tr> <td>D2</td> <td>Test</td> <td>57,239</td> <td>50%</td> </tr> </tbody> </table> <p>&nbsp;</p> <p><strong>Infrastructure and implementation</strong></p> <p>Two sets of flow data were collected with <a href="https://niebla.unileon.es/cybersecurity/dorothea">DOROTHEA</a>. DOROTHEA is a Docker-based framework for NetFlow data collection. It allows you to build interconnected virtual networks to generate and collect flow data using the NetFlow protocol. In DOROTHEA, network traffic packets are sent to a NetFlow generator that has a sensor<a href="https://github.com/aabc/ipt-netflow"><em> ipt_netflow</em></a>&nbsp;installed. The sensor consists of a module for the Linux kernel using Iptables, which processes the packets and converts them to NetFlow flows.</p> <p>DOROTHEA&nbsp;is configured to use Netflow V5 and export the flow after it is inactive for 15 seconds or after the flow is active for 1800 seconds (30 minutes)</p> <p>Benign traffic generation nodes simulate network traffic generated by real users, performing tasks such as searching in web browsers, sending emails, or establishing Secure Shell (SSH) connections. Such tasks run as Python scripts. Users may customize them or even incorporate their own. The network traffic is managed by a gateway that performs two main tasks. On the one hand, it routes packets to the Internet. On the other hand, it sends it to a NetFlow data generation node (this process is carried out similarly to packets received from the Internet).</p> <p>The malicious traffic collected&nbsp;(SQLI attacks)&nbsp;was performed using <a href="https://sqlmap.org/">SQLMAP</a>. SQLMAP &nbsp;is a penetration tool used to automate the process of detecting and exploiting SQL injection vulnerabilities.</p> <p>The attacks were executed on 16 nodes and&nbsp;launch SQLMAP with the parameters of the following table.</p> <table> <thead> <tr> <th scope="col">Parameters</th> <th scope="col">Description</th> </tr> </thead> <tbody> <tr> <td>&#39;--banner&#39;,&#39;--current-user&#39;,&#39;--current-db&#39;,&#39;--hostname&#39;,&#39;--is-dba&#39;,&#39;--users&#39;,&#39;--passwords&#39;,&#39;--privileges&#39;,&#39;--roles&#39;,&#39;--dbs&#39;,&#39;--tables&#39;,&#39;--columns&#39;,&#39;--schema&#39;,&#39;--count&#39;,&#39;--dump&#39;,&#39;--comments&#39;, --schema&#39;</td> <td>Enumerate users, password hashes, privileges, roles, databases, tables and columns</td> </tr> <tr> <td>--level=5</td> <td>Increase the probability of a false positive identification</td> </tr> <tr> <td>--risk=3</td> <td>Increase the probability of extracting data</td> </tr> <tr> <td>--random-agent</td> <td>Select the User-Agent randomly</td> </tr> <tr> <td>--batch</td> <td>Never ask for user input, use the default behavior</td> </tr> <tr> <td>--answers=&quot;follow=Y&quot;</td> <td>Predefined answers to yes</td> </tr> </tbody> </table> <p>Every node executed SQLIA on 200 victim nodes. The victim nodes had deployed a web form vulnerable to Union-type injection attacks, which was connected to the <a href="https://www.mysql.com/">MYSQL </a>or <a href="https://www.microsoft.com/es-es/sql-server/sql-server-2019">SQLServer </a>database engines (50% of the victim nodes deployed MySQL and the other 50% deployed SQLServer).</p> <p>The web service was accessible from ports 443 and 80, which are the ports typically used to deploy web services. The IP address space was 182.168.1.1/24 for the benign and malicious traffic-generating nodes. For victim nodes, the address space was 126.52.30.0/24.<br> The malicious traffic in the test sets was collected under different conditions. For &nbsp;<strong>D1</strong>, SQLIA was performed using &nbsp;Union attacks on the MySQL and SQLServer databases.</p> <p>However, for <strong>D2</strong>, BlindSQL SQLIAs were performed against the web form connected to a <a href="https://www.postgresql.org/">PostgreSQL </a>database. The IP address spaces of the networks were also different from those of <strong>D1</strong>. In <strong>D2</strong>, the IP address space was 152.148.48.1/24 for benign and malicious traffic generating nodes and 140.30.20.1/24 for victim nodes.</p> <p>To run the MySQL server we ran <a href="https://mariadb.org/">MariaDB</a> version 10.4.12.<br> Microsoft SQL Server 2017 Express and PostgreSQL version 13 were used.</p>

ShareScore

40/100

Overall dataset sharing score

Score breakdown

These five areas show where the dataset supports — or may limit — practical reuse.

Stewardship
8
Harmonization
4
Access
20
Reuse readiness
8
Engagement
0

Topics

ScienceDex for faculty

Your academic CV and NIH biosketch

Make your CV in your school's format and your NIH biosketch from it, then download both as Word files.