vyykaaa commited on
Commit
8d9dfa2
·
verified ·
1 Parent(s): 93b4ab1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +123 -0
README.md ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Web Traffic Normal vs Anomalous
3
+ language:
4
+ - en
5
+ license: mit
6
+ task_categories:
7
+ - text-classification
8
+ tags:
9
+ - cybersecurity
10
+ - intrusion-detection
11
+ - web-security
12
+ - http
13
+ - anomaly-detection
14
+ size_categories:
15
+ - 10K<n<100K
16
+ ---
17
+
18
+ # Web Traffic Normal vs Anomalous
19
+
20
+ A labeled HTTP request dataset for web traffic classification.
21
+
22
+ This dataset contains raw HTTP requests collected into two classes:
23
+
24
+ - `anomalous`: malicious or attack-like traffic
25
+ - `normal`: benign traffic
26
+
27
+ ## Important note about data integrity
28
+
29
+ The request payloads are kept as raw text. No normalization, decoding, truncation, lowercasing, header removal, or field cleaning was applied when creating the labeled files. The only added field is `label`.
30
+
31
+ ## Files
32
+
33
+ Recommended files for Hugging Face Datasets:
34
+
35
+ - `web_traffic_labeled_combined.jsonl`
36
+ - `filtered_anomalous_traffic_labeled.jsonl`
37
+ - `normalTrafficTest_clean_labeled.jsonl`
38
+
39
+ Also included:
40
+
41
+ - `web_traffic_labeled_combined.csv`
42
+ - `filtered_anomalous_traffic_labeled.csv`
43
+ - `normalTrafficTest_clean_labeled.csv`
44
+
45
+ ## Dataset schema
46
+
47
+ Each example has the following fields:
48
+
49
+ - `text` (`string`): full raw HTTP request, including line breaks
50
+ - `label` (`string`): one of `anomalous` or `normal`
51
+
52
+ ### Example
53
+
54
+ ```json
55
+ {
56
+ "text": "GET http://localhost:8080/tienda1/index.jsp HTTP/1.1\nUser-Agent: Mozilla/5.0 ...",
57
+ "label": "normal"
58
+ }
59
+ ```
60
+
61
+ ## Class distribution
62
+
63
+ - `anomalous`: 2,014
64
+ - `normal`: 36,000
65
+ - total: 38,014
66
+
67
+ ## Recommended usage
68
+
69
+ This dataset is suitable for:
70
+
71
+ - web attack detection
72
+ - anomaly detection
73
+ - HTTP request classification
74
+ - WAF / IDS experimentation
75
+ - baseline text classification benchmarks for cybersecurity
76
+
77
+ ## Loading with `datasets`
78
+
79
+ ### Load the combined JSONL file
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ dataset = load_dataset("json", data_files="web_traffic_labeled_combined.jsonl")
85
+ print(dataset["train"][0])
86
+ ```
87
+
88
+ ### Load train/test splits from local files
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+
93
+ dataset = load_dataset(
94
+ "json",
95
+ data_files={
96
+ "train": "web_traffic_labeled_combined.jsonl",
97
+ },
98
+ )
99
+ ```
100
+
101
+ ## Repository layout suggestion
102
+
103
+ ```text
104
+ .
105
+ ├── README.md
106
+ ├── web_traffic_labeled_combined.jsonl
107
+ ├── filtered_anomalous_traffic_labeled.jsonl
108
+ ├── normalTrafficTest_clean_labeled.jsonl
109
+ ├── web_traffic_labeled_combined.csv
110
+ ├── filtered_anomalous_traffic_labeled.csv
111
+ └── normalTrafficTest_clean_labeled.csv
112
+ ```
113
+
114
+ ## Limitations
115
+
116
+ - The labels are binary only: `normal` and `anomalous`
117
+ - The dataset may contain duplicated request patterns
118
+ - The traffic appears to come from a web application testing context and may not cover all modern attack families
119
+ - Credentials, hostnames, and request contents should be reviewed before production use
120
+
121
+ ## Citation
122
+
123
+ If you publish work based on this dataset, please cite the dataset repository URL.