puyang2025 commited on
Commit
01cead3
·
1 Parent(s): b40d422

transfer htmls to parquet

Browse files
Files changed (6) hide show
  1. README.md +47 -3
  2. Readme.md +18 -0
  3. dataset_info.json +44 -0
  4. test.parquet +3 -0
  5. train.parquet +3 -0
  6. validation.parquet +3 -0
README.md CHANGED
@@ -1,3 +1,47 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Phishing Dataset (Parquet)
2
+
3
+ ## Dataset Summary
4
+ This dataset contains HTML pages labeled as benign or malicious, collected from confirmed phishing URLs reported on PhishTank across 2018-2020. The data here is a direct conversion of the Kaggle dataset "phishing-dataset" by **asifejazitu** into a Hugging Face-compatible Parquet file.
5
+
6
+ ## Data Files
7
+ - `train.parquet`
8
+ - `validation.parquet`
9
+ - `test.parquet`
10
+
11
+ ## Data Fields
12
+ - `text` (string): HTML content of the page.
13
+ - `label` (class): `benign` or `malicious`.
14
+ - `year` (int32): year extracted from the folder structure (2018, 2019, 2020).
15
+ - `path` (string): original file path in the extracted dataset.
16
+
17
+ ## Data Splits
18
+ - `train`: 305,470 examples.
19
+ - `validation`: 38,184 examples.
20
+ - `test`: 38,184 examples.
21
+
22
+ Splits are created with stratified sampling to keep benign/malicious proportions consistent across splits.
23
+
24
+ ## Source Data
25
+ Original dataset on Kaggle:
26
+ https://www.kaggle.com/datasets/asifejazitu/phishing-dataset
27
+
28
+ The authors note the pages were extracted from confirmed phishing URLs reported on PhishTank:
29
+ https://phishtank.org/
30
+
31
+ ## Citation
32
+ If you use this dataset, please cite the original sources:
33
+
34
+ ```bibtex
35
+ @misc{asifejazitu_phishing_dataset_2023,
36
+ title = {Phishing Dataset},
37
+ author = {asifejazitu},
38
+ howpublished = {Kaggle Dataset},
39
+ year = {2023},
40
+ url = {https://www.kaggle.com/datasets/asifejazitu/phishing-dataset}
41
+ }
42
+
43
+ @misc{phishtank,
44
+ title = {PhishTank},
45
+ howpublished = {https://phishtank.org/}
46
+ }
47
+ ```
Readme.md ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Dataset folder structure is as follows:
2
+
3
+ Benign
4
+ 2018
5
+ 2019
6
+ 2020
7
+ Malicious
8
+ 2018
9
+ 2019
10
+ 2020
11
+
12
+ These folders contain html code files.
13
+ These files were extracted using GET request to the confirmed phishing URLs reported on PhishTank website over the course of three years.
14
+ Then Data is pre-processed to eliminate anomlous , blank and duplicated pages, remaining clean pages that are used for expereiments are reported in the menuscript.
15
+ HTML pages were converted into vectors using Facebook pre-trained Word-Embedding model FastText for efficient processing and Model training.
16
+
17
+ Data is also available at :
18
+ https://drive.google.com/drive/folders/1wPpIF0waGdCkuNQ1TkvHWsUcVVkYJtBo?usp=share_link
dataset_info.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "citation": "@misc{asifejazitu_phishing_dataset_2023,\n title = {Phishing Dataset},\n author = {asifejazitu},\n howpublished = {Kaggle Dataset},\n year = {2023},\n url = {https://www.kaggle.com/datasets/asifejazitu/phishing-dataset}\n}\n@misc{phishtank,\n title = {PhishTank},\n howpublished = {https://phishtank.org/}\n}",
3
+ "description": "HTML pages collected from confirmed phishing URLs reported on PhishTank (2018-2020), cleaned to remove anomalous, blank, and duplicated pages. This parquet dataset is a direct conversion of the Kaggle dataset 'phishing-dataset' by asifejazitu, split into train/validation/test with stratified label proportions.",
4
+ "features": {
5
+ "text": {
6
+ "dtype": "string",
7
+ "_type": "Value"
8
+ },
9
+ "label": {
10
+ "names": [
11
+ "benign",
12
+ "malicious"
13
+ ],
14
+ "_type": "ClassLabel"
15
+ },
16
+ "year": {
17
+ "dtype": "int32",
18
+ "_type": "Value"
19
+ },
20
+ "path": {
21
+ "dtype": "string",
22
+ "_type": "Value"
23
+ }
24
+ },
25
+ "homepage": "https://www.kaggle.com/datasets/asifejazitu/phishing-dataset",
26
+ "license": "unknown",
27
+ "splits": {
28
+ "train": {
29
+ "name": "train",
30
+ "num_bytes": 4676208445,
31
+ "num_examples": 305470
32
+ },
33
+ "validation": {
34
+ "name": "validation",
35
+ "num_bytes": 621203189,
36
+ "num_examples": 38184
37
+ },
38
+ "test": {
39
+ "name": "test",
40
+ "num_bytes": 596733527,
41
+ "num_examples": 38184
42
+ }
43
+ }
44
+ }
test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6387554e6bc0df09530411aebb5de1f4819848e76a9c974af386fe24db60783
3
+ size 596733527
train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cdd932d8c2e4589d8bca091dd5764476df06417cec4732a832a4b79c3a283d8
3
+ size 4676208445
validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62ac995787f464906038ccc041802055d1f4fa8debe88ed7abbf657d9667a375
3
+ size 621203189