Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 1 new columns ({'class'}) and 1 missing columns ({'features'}).

This happened while the csv dataset builder was generating data using

hf://datasets/hendriow/mh100k/mh100-labels.csv (at revision bc4d2bfa922e61ef185513b4a6dd369f20efbd0c)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1831, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 714, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              class: int64
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 370
              to
              {'features': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1455, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1054, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 894, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 970, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1833, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 1 new columns ({'class'}) and 1 missing columns ({'features'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/hendriow/mh100k/mh100-labels.csv (at revision bc4d2bfa922e61ef185513b4a6dd369f20efbd0c)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

features
string
Permission::WAKE_LOCK
Permission::WRITE_EXTERNAL_STORAGE
Permission::ACCESS_NETWORK_STATE
Permission::WRITE_SETTINGS
Permission::INTERNET
Intent::AUDIO_BECOMING_NOISY
APICall::Landroid/content/Intent.toUri()
APICall::Landroid/view/View.setTag()
APICall::Landroid/util/Xml.newSerializer()
APICall::Landroid/content/pm/PackageManager.queryIntentServices()
APICall::Landroid/view/ViewStub.setLayoutResource()
APICall::Landroid/content/Context.createPackageContext()
APICall::Landroid/os/Handler.removeMessages()
APICall::Landroid/widget/Scroller.getCurrY()
APICall::Landroid/view/View.invalidate()
APICall::Landroid/os/IBinder.linkToDeath()
APICall::Landroid/view/View.getScrollX()
APICall::Landroid/net/Uri.writeToParcel()
APICall::Landroid/view/View.getScrollY()
APICall::Landroid/view/LayoutInflater.from()
APICall::Landroid/view/View$AccessibilityDelegate.sendAccessibilityEventUnchecked()
APICall::Landroid/os/Parcel.readFloat()
APICall::Landroid/os/SystemClock.uptimeMillis()
APICall::Landroid/content/Context.getApplicationInfo()
APICall::Landroid/view/MotionEvent.obtain()
APICall::Landroid/view/View.requestFocus()
APICall::Landroid/view/accessibility/AccessibilityNodeInfo.setPackageName()
APICall::Landroid/os/Parcel.writeDouble()
APICall::Landroid/view/VelocityTracker.recycle()
APICall::Landroid/widget/LinearLayout.requestFocus()
APICall::Landroid/view/ViewTreeObserver.removeGlobalOnLayoutListener()
APICall::Landroid/view/ViewGroup.isInEditMode()
APICall::Landroid/os/Bundle.getBoolean()
APICall::Landroid/view/View.isShown()
APICall::Landroid/widget/TextView.setTypeface()
APICall::Landroid/view/accessibility/AccessibilityNodeInfo.setLongClickable()
APICall::Landroid/widget/ImageView.setId()
APICall::Landroid/os/Binder.getCallingPid()
APICall::Landroid/widget/RelativeLayout.onAttachedToWindow()
APICall::Landroid/util/Base64OutputStream.write()
APICall::Landroid/util/Base64OutputStream.close()
APICall::Landroid/view/MenuItem.getGroupId()
APICall::Landroid/content/ContentValues.put()
APICall::Landroid/widget/TextView.setSingleLine()
APICall::Landroid/view/ViewGroup.setTranslationY()
APICall::Landroid/net/wifi/WifiManager$WifiLock.isHeld()
APICall::Landroid/net/wifi/WifiManager$WifiLock.release()
APICall::Landroid/view/Menu.add()
APICall::Landroid/os/Parcel.obtain()
APICall::Landroid/view/View$MeasureSpec.makeMeasureSpec()
APICall::Landroid/content/Intent.makeMainActivity()
APICall::Landroid/os/Parcel.writeInterfaceToken()
APICall::Landroid/view/Window.setUiOptions()
APICall::Landroid/view/ViewConfiguration.getScaledPagingTouchSlop()
APICall::Landroid/os/IBinder.transact()
APICall::Landroid/view/MenuItem.getIcon()
APICall::Landroid/os/Parcel.recycle()
APICall::Landroid/widget/AdapterView$OnItemClickListener.onItemClick()
APICall::Landroid/content/Intent.createChooser()
APICall::Landroid/view/ViewGroup.onInitializeAccessibilityEvent()
APICall::Landroid/content/Intent.hasExtra()
APICall::Landroid/text/Html.fromHtml()
APICall::Landroid/content/Intent.putExtra()
APICall::Landroid/content/Intent.setType()
APICall::Landroid/content/pm/PackageManager.getActivityIcon()
APICall::Landroid/view/accessibility/AccessibilityNodeInfo.setScrollable()
APICall::Landroid/content/pm/PackageManager.getApplicationInfo()
APICall::Landroid/content/SharedPreferences$Editor.putInt()
APICall::Landroid/content/Intent.getStringExtra()
APICall::Landroid/view/animation/Transformation.getAlpha()
APICall::Landroid/view/View.setOnTouchListener()
APICall::Landroid/view/MenuItem.getIntent()
APICall::Landroid/view/accessibility/AccessibilityNodeInfo.isLongClickable()
APICall::Landroid/view/MenuItem.setShortcut()
APICall::Landroid/view/SubMenu.setHeaderTitle()
APICall::Landroid/widget/ListAdapter.registerDataSetObserver()
APICall::Landroid/widget/ListAdapter.unregisterDataSetObserver()
APICall::Landroid/widget/PopupWindow.setBackgroundDrawable()
APICall::Landroid/widget/PopupWindow.setFocusable()
APICall::Landroid/widget/PopupWindow.setOnDismissListener()
APICall::Landroid/widget/PopupWindow.setWindowLayoutMode()
APICall::Landroid/widget/PopupWindow.setOutsideTouchable()
APICall::Landroid/widget/PopupWindow.setTouchInterceptor()
APICall::Landroid/widget/PopupWindow.showAsDropDown()
APICall::Landroid/view/accessibility/AccessibilityNodeInfo.getBoundsInScreen()
APICall::Landroid/net/http/HttpResponseCache.getInstalled()
APICall::Landroid/view/VelocityTracker.clear()
APICall::Landroid/util/Base64.encodeToString()
APICall::Landroid/content/Context.checkCallingOrSelfPermission()
APICall::Landroid/os/IBinder.queryLocalInterface()
APICall::Landroid/view/View.setVisibility()
APICall::Landroid/content/IntentFilter.addDataScheme()
APICall::Landroid/content/Intent.getData()
APICall::Landroid/os/Bundle.getParcelableArrayList()
APICall::Landroid/widget/ImageView.getLayoutParams()
APICall::Landroid/widget/ImageView.setOnClickListener()
APICall::Landroid/os/HandlerThread.quit()
APICall::Landroid/view/Display.getWidth()
APICall::Landroid/view/View.getLocalVisibleRect()
APICall::Landroid/view/View.getWindowVisibility()
End of preview.

MH-100K: An innovative Android Malware Dataset for advanced research

Dataset Summary

MH-100K is a large-scale dataset for Android malware detection research. It contains 101,975 Android applications (APKs) collected between 2010 and 2022, providing a diverse set of samples to study malware evolution over more than a decade.

The dataset features high-dimensional tabular data representing the static analysis of these applications. It includes permissions, API calls, and intents, along with extensive metadata and detection labels derived from VirusTotal.

Dataset Structure

The repository contains the dataset in a consolidated, efficient format:

  • mh100.parquet: The main dataset file containing the feature matrix and metadata for all 101,975 instances. Stored in int8 format for efficiency.
  • mh100-labels.csv: Contains the label information (Malware vs Benign) and VirusTotal metadata.
  • feature_names.csv: A mapping file that lists the names of the features corresponding to the columns in the feature matrix.

How to Use

You can load this dataset directly using the Hugging Face datasets library.

Quick Load

from huggingface_hub import hf_hub_download
import pandas as pd

# 1. Download the specific file to your cache
file_path = hf_hub_download(
    repo_id="hendriow/mh100k",
    filename="mh100.parquet",
    repo_type="dataset"
)

# 2. Read it directly into a dataframe
df = pd.read_parquet(file_path)

df.info()

Loading with Feature Names

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.

from huggingface_hub import hf_hub_download
import pandas as pd

# 1. Download the labels file to your local cache
csv_path = hf_hub_download(
    repo_id="hendriow/mh100k",
    filename="mh100-labels.csv",
    repo_type="dataset"
)

# 2. Read into a DataFrame
labels_df = pd.read_csv(csv_path)

labels_df.head()

Dataset Description

The MH-100K dataset is a comprehensive collection of Android malware information, comprising 101,975 samples.

  • Data Type: Tabular (Int8)
  • Time Period: 2010 - 2022
  • Source: Samples randomly selected from AndroZoo.

Features and Attributes

  • SHA256 hash (APK's signature)
  • File name
  • Package name
  • Android's official compilation API
  • 166 permissions
  • 24,417 API calls
  • 250 intents

About VirusTotal API

The VirusTotal API is a crucial tool in this dataset's creation, known for its prowess in detecting suspicious files and URLs. Each API request yields a JSON, aiding in categorizing the APK based on its perceived threat.

Citation

If you use this dataset in your research, please cite the original authors:

@article{bragancca2023android, title={Android malware detection with MH-100K: An innovative dataset for advanced research}, author={Bragan{\c{c}}a, Hendrio and Rocha, Vanderson and Barcellos, Lucas and Souto, Eduardo and Kreutz, Diego and Feitosa, Eduardo}, journal={Data in Brief}, volume={51}, pages={109750}, year={2023}, publisher={Elsevier} }

@inproceedings{bragancca2023capturing,
title={Capturing the behavior of android malware with mh-100k: A novel and multidimensional dataset},
author={Bragan{\c{c}}a, Hendrio and Rocha, Vanderson and Barcellos, Lucas Vilanova and Souto, Eduardo and Kreutz, Diego and Feitosa, Eduardo},
booktitle={Simp{'o}sio Brasileiro de Seguran{\c{c}}a da Informa{\c{c}}{~a}o e de Sistemas Computacionais (SBSeg)},
pages={510--515},
year={2023},
organization={SBC} }

Downloads last month
25