abmallick commited on
Commit
1434358
·
verified ·
1 Parent(s): 2fa509a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +194 -1
README.md CHANGED
@@ -2,4 +2,197 @@
2
  license: mit
3
  ---
4
 
5
- This dataset is created from CSE-CIC-IDS2018 dataset [Read](https://registry.opendata.aws/cse-cic-ids2018/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: mit
3
  ---
4
 
5
+ # Network Traffic Anomaly Dataset
6
+
7
+ A processed and curated dataset for **network traffic anomaly detection**, derived from the **CSE‑CIC‑IDS2018** intrusion detection dataset.
8
+ This dataset is designed for machine learning and deep learning research on **network security, intrusion detection, and anomaly detection**.
9
+
10
+ Dataset link: https://huggingface.co/datasets/abmallick/network-traffic-anomaly
11
+
12
+ > **Important:**
13
+ > This dataset is created from the **CSE‑CIC‑IDS2018 dataset** and restructured to be easier to use for modern ML workflows.
14
+
15
+ ---
16
+
17
+ ## 📊 Dataset Overview
18
+
19
+ - **Name:** Network Traffic Anomaly Dataset
20
+ - **Author:** Abhinav Mallick
21
+ - **Source Dataset:** CSE‑CIC‑IDS2018
22
+ - **Domain:** Network Security / Intrusion Detection
23
+ - **Modalities:** Tabular
24
+ - **Format:** Parquet
25
+ - **License:** MIT
26
+
27
+ ---
28
+
29
+ ## 🧠 Motivation
30
+
31
+ Raw intrusion detection datasets like CSE‑CIC‑IDS2018 are large, fragmented across multiple files, and often difficult to use directly for ML experiments.
32
+
33
+ This dataset was created to:
34
+ - Simplify access to IDS2018 data
35
+ - Provide a clean, ML‑ready format
36
+ - Enable rapid experimentation for anomaly detection models
37
+ - Support both classical ML and deep learning pipelines
38
+
39
+ It is suitable for **binary anomaly detection** as well as **multi‑class attack classification**.
40
+
41
+ ---
42
+
43
+ ## 📦 Source Dataset: CSE‑CIC‑IDS2018
44
+
45
+ The original **CSE‑CIC‑IDS2018** dataset was created by the Canadian Institute for Cybersecurity (CIC) and contains realistic benign and malicious network traffic captured over multiple days.
46
+
47
+ Key characteristics of the original dataset:
48
+ - Realistic enterprise network traffic
49
+ - Multiple attack categories (DoS, DDoS, brute force, infiltration, botnet, etc.)
50
+ - Flow‑based statistical features extracted using CICFlowMeter
51
+
52
+ This Hugging Face dataset is a **processed and consolidated version** of that data.
53
+
54
+ ---
55
+
56
+ ## 📋 Features / Columns
57
+
58
+ Each row represents a **network flow** with extracted statistical features.
59
+
60
+ Typical feature categories include:
61
+ - Flow duration and packet counts
62
+ - Forward and backward packet statistics
63
+ - Packet length statistics
64
+ - Inter‑arrival times
65
+ - Header and flag features
66
+ - Byte and packet rate metrics
67
+
68
+ ### Key Columns
69
+
70
+ | Column | Description |
71
+ |------|------------|
72
+ | `label` | Target label (benign / attack or anomaly class) |
73
+ | `attack_type` | Specific attack category (if available) |
74
+ | `flow_duration` | Duration of the network flow |
75
+ | `total_fwd_packets` | Total forward packets |
76
+ | `total_bwd_packets` | Total backward packets |
77
+ | `flow_bytes_per_sec` | Bytes transferred per second |
78
+ | `flow_packets_per_sec` | Packets per second |
79
+ | `packet_length_mean` | Mean packet length |
80
+ | `packet_length_std` | Packet length standard deviation |
81
+ | `iat_mean` | Mean inter‑arrival time |
82
+ | `iat_std` | Inter‑arrival time standard deviation |
83
+ | `split` | Dataset split (`train` / `val` / `test`) |
84
+
85
+ > Exact columns may vary depending on preprocessing and feature selection.
86
+
87
+ ---
88
+
89
+ ## 🧩 Labels
90
+
91
+ Depending on usage, labels can be interpreted as:
92
+
93
+ ### Binary Classification
94
+ - **0:** Benign traffic
95
+ - **1:** Anomalous / Malicious traffic
96
+
97
+ ### Multi‑Class Classification
98
+ - Benign
99
+ - DoS / DDoS
100
+ - Brute Force
101
+ - Botnet
102
+ - Infiltration
103
+ - Web attacks
104
+ - Other attack types
105
+
106
+ Users are free to remap labels based on their modeling needs.
107
+
108
+ ---
109
+
110
+ ## 🚀 Quick Start
111
+
112
+ ### Installation
113
+
114
+ ```bash
115
+ pip install datasets pandas pyarrow
116
+ ```
117
+
118
+ ### Load Dataset
119
+
120
+ ```python
121
+ from datasets import load_dataset
122
+
123
+ dataset = load_dataset(
124
+ "abmallick/network-traffic-anomaly",
125
+ split="train"
126
+ )
127
+
128
+ print(dataset[0])
129
+ ```
130
+
131
+ ### Convert to Pandas
132
+
133
+ ```python
134
+ df = dataset.to_pandas()
135
+ df.head()
136
+ ```
137
+
138
+ ---
139
+
140
+ ## 📈 Example Use Cases
141
+
142
+ - Network intrusion detection systems (IDS)
143
+ - Anomaly detection using autoencoders or isolation forests
144
+ - Supervised attack classification models
145
+ - Benchmarking ML models on real‑world network traffic
146
+ - Security analytics and SOC research
147
+
148
+ ---
149
+
150
+ ## 🧪 Suggested Evaluation Metrics
151
+
152
+ - Accuracy
153
+ - Precision / Recall
154
+ - F1‑score
155
+ - ROC‑AUC
156
+ - False Positive Rate (critical for IDS systems)
157
+
158
+ ---
159
+
160
+ ## 📚 Citation
161
+
162
+ If you use this dataset, please cite both this dataset and the original source:
163
+
164
+ ### This Dataset
165
+
166
+ ```bibtex
167
+ @misc{mallick2025networktraffic,
168
+ title={Network Traffic Anomaly Dataset},
169
+ author={Mallick, Abhinav},
170
+ year={2025},
171
+ publisher={Hugging Face},
172
+ url={https://huggingface.co/datasets/abmallick/network-traffic-anomaly}
173
+ }
174
+ ```
175
+
176
+ ### Original Dataset (CSE‑CIC‑IDS2018)
177
+
178
+ ```bibtex
179
+ @dataset{cse_cic_ids2018,
180
+ title={CSE-CIC-IDS2018: A Large Scale Dataset for Intrusion Detection Systems},
181
+ author={Sharafaldin, Iman and Lashkari, Arash Habibi and Ghorbani, Ali A.},
182
+ year={2018},
183
+ publisher={Canadian Institute for Cybersecurity}
184
+ }
185
+ ```
186
+
187
+ ---
188
+
189
+ ## 📄 License
190
+
191
+ This dataset is released under the **MIT License**.
192
+ The original CSE‑CIC‑IDS2018 dataset is subject to its own licensing terms.
193
+
194
+ ---
195
+
196
+ ## 🤝 Contributions
197
+
198
+ Feedback, issues, and improvements are welcome via the Hugging Face dataset page.