Datasets:
File size: 2,968 Bytes
50a7ad3 86830e3 50a7ad3 86830e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | ---
license: mit
task_categories:
- tabular-classification
tags:
- cybersecurity
- intrusion-detection
- network-security
- cic-ids2017
size_categories:
- 1M<n<10M
---
# NIT Cyber Analysis — Network Intrusion Detection using CIC-IDS2017
Research project on network intrusion detection using the CIC-IDS2017 dataset.
Covers data preprocessing, exploratory analysis, and deep learning classification across 15 traffic categories (14 attack types + benign).
---
## Dataset
CIC-IDS2017 — Canadian Institute for Cybersecurity
* 8 CSV files
* ~2.8 million network flow records
* 78 features + label
Dataset Download: https://www.unb.ca/cic/datasets/ids-2017.html
> CSV files are not tracked in this repository due to their large size.
---
## Project Structure
```text
.
├── notebooks
│ ├── 01_pre-processing.ipynb
│ ├── 02_EDA.ipynb
│ └── 03_modelling.ipynb
├── requirements.txt
└── README.md
```
| File | Description |
| ----------------------- | ----------------------------------------------- |
| 01_pre-processing.ipynb | Data cleaning and preprocessing pipeline |
| 02_EDA.ipynb | Exploratory Data Analysis |
| 03_modelling.ipynb | Encoding, scaling, SMOTE, and model preparation |
| requirements.txt | Project dependencies |
---
## Work Division
### Undergraduate Contribution (This Repository)
* Loaded and merged all 8 CIC-IDS2017 CSV files into a single dataframe (~2.8M rows)
* Handled missing values, infinite values, and duplicate records
* Cleaned column names and label inconsistencies present in the raw dataset
* Performed exploratory data analysis including:
* Label distribution analysis
* Binary vs multi-class distribution
* Correlation heatmaps
* Outlier detection using boxplots
* Feature distribution analysis
* Prepared data for modelling through:
* Label Encoding
* Feature selection
* Stratified train-test split (80:20)
* StandardScaler normalization
* SMOTE class balancing
### PhD Scholar Contribution
* Deep learning model architecture design
* Model training and experimentation
* Hyperparameter tuning
* Performance evaluation and benchmarking
* Result analysis
---
## Pipeline
```text
Raw CSV Files
↓
Merge
↓
Clean
↓
EDA
↓
Encode
↓
Split
↓
Scale
↓
SMOTE
↓
Deep Learning Model
```
---
## Setup
```bash
pip install -r requirements.txt
jupyter notebook
```
Run the notebooks in the following order:
```text
notebooks/01_pre-processing.ipynb
↓
notebooks/02_EDA.ipynb
↓
notebooks/03_modelling.ipynb
```
---
## Team
**NIT Research Collaboration**
B.Tech CSE Student + PhD Scholar
Dataset Credit: Canadian Institute for Cybersecurity (CIC), University of New Brunswick
|