Add dataset README
Browse files
README.md
CHANGED
|
@@ -1,55 +1,80 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
dtype: string
|
| 14 |
-
- name: hour
|
| 15 |
-
dtype: int64
|
| 16 |
-
- name: is_weekend
|
| 17 |
-
dtype: bool
|
| 18 |
-
- name: log_types
|
| 19 |
-
list: string
|
| 20 |
-
- name: n_logs
|
| 21 |
-
dtype: int64
|
| 22 |
-
- name: log_types
|
| 23 |
-
list: string
|
| 24 |
-
- name: log_types_str
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: n_logs
|
| 27 |
-
dtype: int64
|
| 28 |
-
- name: has_attack
|
| 29 |
-
dtype: bool
|
| 30 |
-
- name: attack_types
|
| 31 |
-
list: string
|
| 32 |
-
- name: attack_types_str
|
| 33 |
-
dtype: string
|
| 34 |
-
- name: attack_count
|
| 35 |
-
dtype: int64
|
| 36 |
-
- name: attack_ratio
|
| 37 |
-
dtype: float64
|
| 38 |
-
- name: label
|
| 39 |
-
dtype: int64
|
| 40 |
-
- name: attack_ratio_original
|
| 41 |
-
dtype: float64
|
| 42 |
-
- name: severity_labels
|
| 43 |
-
list: string
|
| 44 |
-
splits:
|
| 45 |
-
- name: train
|
| 46 |
-
num_bytes: 529769012
|
| 47 |
-
num_examples: 26996
|
| 48 |
-
download_size: 71863406
|
| 49 |
-
dataset_size: 529769012
|
| 50 |
-
configs:
|
| 51 |
-
- config_name: default
|
| 52 |
-
data_files:
|
| 53 |
-
- split: train
|
| 54 |
-
path: data/train-*
|
| 55 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
- other
|
| 6 |
+
tags:
|
| 7 |
+
- logs
|
| 8 |
+
- cybersecurity
|
| 9 |
+
- attack-detection
|
| 10 |
+
- network-security
|
| 11 |
+
size_categories:
|
| 12 |
+
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# ait-distilation-set
|
| 16 |
+
|
| 17 |
+
Labeled log sessions dataset with attack information.
|
| 18 |
+
|
| 19 |
+
## Dataset Description
|
| 20 |
+
|
| 21 |
+
This dataset combines log sessions from `chYassine/log-sessions-supervised` with attack labels from `chYassine/ait-attack`.
|
| 22 |
+
|
| 23 |
+
### Dataset Structure
|
| 24 |
+
|
| 25 |
+
Each session contains:
|
| 26 |
+
- **session_id**: Unique identifier for the session
|
| 27 |
+
- **logs**: List of log entries (JSON strings)
|
| 28 |
+
- **metadata**: Session metadata including log types, duration, host info
|
| 29 |
+
- **log_types**: Types of logs in the session
|
| 30 |
+
- **has_attack**: Boolean indicating if session contains attacks
|
| 31 |
+
- **attack_types**: List of attack types found in the session
|
| 32 |
+
- **attack_count**: Number of logs with attacks
|
| 33 |
+
- **attack_ratio**: Ratio of attack logs to total logs
|
| 34 |
+
|
| 35 |
+
### Statistics
|
| 36 |
+
|
| 37 |
+
- Total sessions: 26996
|
| 38 |
+
- Sessions with attacks: 7 (0.0%)
|
| 39 |
+
- Sessions without attacks: 26989
|
| 40 |
+
|
| 41 |
+
### Log Types
|
| 42 |
+
|
| 43 |
+
- apache2: 12666
|
| 44 |
+
- audit: 7811
|
| 45 |
+
- dnsteal: 5464
|
| 46 |
+
- exim4: 5436
|
| 47 |
+
- horde: 5128
|
| 48 |
+
- ait.aecid.attacker.wpdiscuz: 4033
|
| 49 |
+
- suricata: 5
|
| 50 |
+
- downloads: 5
|
| 51 |
+
- redis: 3
|
| 52 |
+
|
| 53 |
+
### Attack Types
|
| 54 |
+
|
| 55 |
+
- attacker_change_user,escalate: 7
|
| 56 |
+
- escalated_command,escalated_sudo_command,escalate: 7
|
| 57 |
+
|
| 58 |
+
## Usage
|
| 59 |
+
|
| 60 |
+
```python
|
| 61 |
+
from datasets import load_dataset
|
| 62 |
+
|
| 63 |
+
# Load the dataset
|
| 64 |
+
dataset = load_dataset("chYassine/ait-distilation-set", split="train")
|
| 65 |
+
|
| 66 |
+
# Example: Filter sessions with attacks
|
| 67 |
+
attacks_only = dataset.filter(lambda x: x["has_attack"])
|
| 68 |
+
|
| 69 |
+
# Example: Get sessions by log type
|
| 70 |
+
dns_sessions = dataset.filter(lambda x: "dns" in x.get("log_types", []))
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Source Datasets
|
| 74 |
+
|
| 75 |
+
- Sessions: [chYassine/log-sessions-supervised](https://huggingface.co/datasets/chYassine/log-sessions-supervised)
|
| 76 |
+
- Attacks: [chYassine/ait-attack](https://huggingface.co/datasets/chYassine/ait-attack)
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
If you use this dataset, please cite the original datasets as well.
|