Update README.md
Browse files
README.md
CHANGED
|
@@ -17,7 +17,7 @@ language:
|
|
| 17 |
pretty_name: MH-100K Android Malware Dataset
|
| 18 |
---
|
| 19 |
|
| 20 |
-
# MH-100K:
|
| 21 |
|
| 22 |
## Dataset Summary
|
| 23 |
|
|
@@ -40,37 +40,42 @@ You can load this dataset directly using the Hugging Face `datasets` library.
|
|
| 40 |
### Quick Load
|
| 41 |
|
| 42 |
```python
|
| 43 |
-
from
|
| 44 |
import pandas as pd
|
| 45 |
|
| 46 |
-
#
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
# Example: Inspect the first instance
|
| 50 |
-
print(dataset[0])
|
| 51 |
```
|
| 52 |
|
| 53 |
### Loading with Feature Names
|
| 54 |
|
| 55 |
-
Since the dataset is high-dimensional (>
|
| 56 |
|
| 57 |
```python
|
| 58 |
-
from
|
| 59 |
import pandas as pd
|
| 60 |
|
| 61 |
-
# 1.
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
-
# 2.
|
| 65 |
-
|
| 66 |
-
repo_url = "[https://huggingface.co/datasets/hendriow/mh100k/resolve/main/feature_names.csv](https://huggingface.co/datasets/hendriow/mh100k/resolve/main/feature_names.csv)"
|
| 67 |
-
feature_map = pd.read_csv(repo_url)
|
| 68 |
-
feature_names_list = feature_map['feature_name'].tolist()
|
| 69 |
|
| 70 |
-
|
| 71 |
-
df = dataset.select(range(100)).to_pandas()
|
| 72 |
-
df.columns = feature_names_list + ['label'] # Assuming last col is label, adjust logic as needed
|
| 73 |
-
print(df.head())
|
| 74 |
```
|
| 75 |
|
| 76 |
|
|
@@ -104,17 +109,18 @@ If you use this dataset in your research, please cite the original authors:
|
|
| 104 |
> @article{bragancca2023android,
|
| 105 |
title={Android malware detection with MH-100K: An innovative dataset for advanced research},
|
| 106 |
author={Bragan{\c{c}}a, Hendrio and Rocha, Vanderson and Barcellos, Lucas and Souto, Eduardo and Kreutz, Diego and Feitosa, Eduardo},
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
-
>
|
| 114 |
-
> @inproceedings{bragancca2023capturing, title={Capturing the behavior
|
| 115 |
-
> of android malware with mh-100k: A novel and multidimensional
|
| 116 |
-
> dataset}, author={Bragan{\c{c}}a, Hendrio and Rocha, Vanderson and
|
| 117 |
-
> Barcellos, Lucas Vilanova and Souto, Eduardo and Kreutz, Diego and
|
| 118 |
-
> Feitosa, Eduardo}, booktitle={Simp{\'o}sio Brasileiro de
|
| 119 |
-
> Seguran{\c{c}}a da Informa{\c{c}}{\~a}o e de Sistemas Computacionais
|
| 120 |
-
> (SBSeg)}, pages={510--515}, year={2023}, organization={SBC} }
|
|
|
|
| 17 |
pretty_name: MH-100K Android Malware Dataset
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# MH-100K: An innovative Android Malware Dataset for advanced research
|
| 21 |
|
| 22 |
## Dataset Summary
|
| 23 |
|
|
|
|
| 40 |
### Quick Load
|
| 41 |
|
| 42 |
```python
|
| 43 |
+
from huggingface_hub import hf_hub_download
|
| 44 |
import pandas as pd
|
| 45 |
|
| 46 |
+
# 1. Download the specific file to your cache
|
| 47 |
+
file_path = hf_hub_download(
|
| 48 |
+
repo_id="hendriow/mh100k",
|
| 49 |
+
filename="mh100.parquet",
|
| 50 |
+
repo_type="dataset"
|
| 51 |
+
)
|
| 52 |
+
|
| 53 |
+
# 2. Read it directly into a dataframe
|
| 54 |
+
df = pd.read_parquet(file_path)
|
| 55 |
+
|
| 56 |
+
df.info()
|
| 57 |
|
|
|
|
|
|
|
| 58 |
```
|
| 59 |
|
| 60 |
### Loading with Feature Names
|
| 61 |
|
| 62 |
+
Since the dataset is high-dimensional (>10k features), the columns in the parquet file might be indexed. You can map them back to their real names (e.g., `android.permission.INTERNET`) using the `feature_names.csv` file.
|
| 63 |
|
| 64 |
```python
|
| 65 |
+
from huggingface_hub import hf_hub_download
|
| 66 |
import pandas as pd
|
| 67 |
|
| 68 |
+
# 1. Download the labels file to your local cache
|
| 69 |
+
csv_path = hf_hub_download(
|
| 70 |
+
repo_id="hendriow/mh100k",
|
| 71 |
+
filename="mh100-labels.csv",
|
| 72 |
+
repo_type="dataset"
|
| 73 |
+
)
|
| 74 |
|
| 75 |
+
# 2. Read into a DataFrame
|
| 76 |
+
labels_df = pd.read_csv(csv_path)
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
+
labels_df.head()
|
|
|
|
|
|
|
|
|
|
| 79 |
```
|
| 80 |
|
| 81 |
|
|
|
|
| 109 |
> @article{bragancca2023android,
|
| 110 |
title={Android malware detection with MH-100K: An innovative dataset for advanced research},
|
| 111 |
author={Bragan{\c{c}}a, Hendrio and Rocha, Vanderson and Barcellos, Lucas and Souto, Eduardo and Kreutz, Diego and Feitosa, Eduardo},
|
| 112 |
+
journal={Data in Brief},
|
| 113 |
+
volume={51},
|
| 114 |
+
pages={109750},
|
| 115 |
+
year={2023},
|
| 116 |
+
publisher={Elsevier}
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
> @inproceedings{bragancca2023capturing,
|
| 120 |
+
title={Capturing the behavior of android malware with mh-100k: A novel and multidimensional dataset},
|
| 121 |
+
author={Bragan{\c{c}}a, Hendrio and Rocha, Vanderson and Barcellos, Lucas Vilanova and Souto, Eduardo and Kreutz, Diego and Feitosa, Eduardo},
|
| 122 |
+
booktitle={Simp{\'o}sio Brasileiro de Seguran{\c{c}}a da Informa{\c{c}}{\~a}o e de Sistemas Computacionais (SBSeg)},
|
| 123 |
+
pages={510--515},
|
| 124 |
+
year={2023},
|
| 125 |
+
organization={SBC}
|
| 126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|