Datasets:
Update README with dataset details
Browse files### README Update Details
The original README for this dataset was updated to provide a more comprehensive and transparent overview of its contents. These additions offer crucial details regarding the dataset's structure and composition, including:
* **Precise Dataset Size:** The total number of rows for both the training (`train.csv`) and testing (`test.csv`) sets are now explicitly stated. This gives users a clear and immediate understanding of the dataset's scale.
* **Complete Class Labels:** A full list of all 24 unique attack categories present in the `attack_cat` column is provided. This clarifies the exact scope of the multi-class classification task.
* **Class Distribution:** A detailed breakdown of the number of samples for each attack category in both the training and testing files has been added. This is critical information for researchers as it highlights the significant class imbalance within the dataset, a factor that heavily influences model training strategies, evaluation techniques, and the selection of appropriate performance metrics.
These updates are intended to enhance the dataset's usability, allowing potential users to quickly assess its suitability for their projects without needing to perform initial exploratory data analysis.
|
@@ -12,4 +12,83 @@ size_categories:
|
|
| 12 |
|
| 13 |
Each row contains the information of a network packet and its label. The format is given below:
|
| 14 |
|
| 15 |
-

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
Each row contains the information of a network packet and its label. The format is given below:
|
| 14 |
|
| 15 |
+

|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
### Dataset Details
|
| 19 |
+
|
| 20 |
+
This dataset is split into a training set and a testing set, contained in `train.csv` and `test.csv` respectively.
|
| 21 |
+
|
| 22 |
+
**Total Rows:**
|
| 23 |
+
* **train.csv:** 1,187,781
|
| 24 |
+
* **test.csv:** 509,050
|
| 25 |
+
|
| 26 |
+
### Attack Categories
|
| 27 |
+
|
| 28 |
+
The `attack_cat` column contains the following 24 distinct categories of network traffic:
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
['DoS Hulk', 'DDoS', 'DoS', 'Reconnaissance', 'Heartbleed', 'Normal', 'Web Attack - XSS', 'FTP Patator', 'Exploits', 'Web Attack - Brute Force', 'SSH Patator', 'Infiltration', 'Generic', 'Worms', 'Fuzzers', 'DoS GoldenEye', 'DoS SlowHTTPTest', 'Analysis', 'DoS Slowloris', 'Bot', 'Shellcode', 'Backdoor', 'Port Scan', 'Web Attack - SQL Injection']
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
### Data Distribution
|
| 35 |
+
|
| 36 |
+
The distribution of instances for each attack category in the training and testing sets is as follows:
|
| 37 |
+
|
| 38 |
+
**Training Set Distribution (`train.csv`):**
|
| 39 |
+
|
| 40 |
+
| Attack Category | Number of Rows |
|
| 41 |
+
| :--- | :--- |
|
| 42 |
+
| DoS Hulk | 417,967 |
|
| 43 |
+
| Normal | 181,742 |
|
| 44 |
+
| DDoS | 127,975 |
|
| 45 |
+
| Heartbleed | 117,056 |
|
| 46 |
+
| SSH Patator | 59,905 |
|
| 47 |
+
| DoS | 49,047 |
|
| 48 |
+
| Exploits | 45,931 |
|
| 49 |
+
| Generic | 34,343 |
|
| 50 |
+
| FTP Patator | 31,684 |
|
| 51 |
+
| Fuzzers | 25,409 |
|
| 52 |
+
| Reconnaissance | 24,250 |
|
| 53 |
+
| DoS GoldenEye | 23,355 |
|
| 54 |
+
| Web Attack - Brute Force | 13,014 |
|
| 55 |
+
| Infiltration | 7,514 |
|
| 56 |
+
| Worms | 6,552 |
|
| 57 |
+
| DoS SlowHTTPTest | 5,567 |
|
| 58 |
+
| DoS Slowloris | 4,424 |
|
| 59 |
+
| Bot | 3,679 |
|
| 60 |
+
| Web Attack - XSS | 3,605 |
|
| 61 |
+
| Analysis | 1,819 |
|
| 62 |
+
| Backdoor | 1,245 |
|
| 63 |
+
| Shellcode | 1,063 |
|
| 64 |
+
| Port Scan | 605 |
|
| 65 |
+
| Web Attack - SQL Injection | 30 |
|
| 66 |
+
|
| 67 |
+
**Testing Set Distribution (`test.csv`):**
|
| 68 |
+
|
| 69 |
+
| Attack Category | Number of Rows |
|
| 70 |
+
| :--- | :--- |
|
| 71 |
+
| DoS Hulk | 178,975 |
|
| 72 |
+
| Normal | 77,908 |
|
| 73 |
+
| DDoS | 54,891 |
|
| 74 |
+
| Heartbleed | 50,304 |
|
| 75 |
+
| SSH Patator | 25,492 |
|
| 76 |
+
| DoS | 21,192 |
|
| 77 |
+
| Exploits | 19,620 |
|
| 78 |
+
| Generic | 14,777 |
|
| 79 |
+
| FTP Patator | 13,505 |
|
| 80 |
+
| Fuzzers | 10,789 |
|
| 81 |
+
| Reconnaissance | 10,395 |
|
| 82 |
+
| DoS GoldenEye | 10,131 |
|
| 83 |
+
| Web Attack - Brute Force | 5,616 |
|
| 84 |
+
| Infiltration | 3,260 |
|
| 85 |
+
| Worms | 2,914 |
|
| 86 |
+
| DoS SlowHTTPTest | 2,432 |
|
| 87 |
+
| DoS Slowloris | 1,852 |
|
| 88 |
+
| Web Attack - XSS | 1,549 |
|
| 89 |
+
| Bot | 1,460 |
|
| 90 |
+
| Analysis | 793 |
|
| 91 |
+
| Backdoor | 507 |
|
| 92 |
+
| Shellcode | 435 |
|
| 93 |
+
| Port Scan | 238 |
|
| 94 |
+
| Web Attack - SQL Injection | 15 |
|