Skip to main content

MPH Static Features Extraction

This project allows the user to extract MalwPackHeat-like static features from Windows PE files, following the phases described in When Static Analysis Fail.

Prerequisites

  • Setup the PE malware directory such that they have the following structure:

        <YOUR_PE_MALWARE_DIR>/
        ├── <FAMILY_0>/
        │   ├── SHA_0_0
        │   ├── SHA_0_1
        │   ├── ...
        │   └──
        ├── <FAMILY_1>/
        │   ├── SHA_1_0
        │   ├── ...
        │   └──
        ├── ...
        └── 
    

    where FAMILY_0, FAMILY_1, ... are the directories named with the malware family and SHA_0_0, SHA_0_1, ... are the PE files named with their SHA256.

  • Run pre-feature selection train/test split, for example by using train-test-splits repository

  • Make sure to have a running and active version of Docker.

Usage

  • Configure the Docker Compose file by providing the following information:
    • MALWARE_DIR_PATH: directory of YOUR_PE_MALWARE_DIR
    • SPLITTED_DATASET_PATH: pre-feature selection train/test split directory
    • FINAL_DATASET_DIR: directory where to store the vectorized dataset given as output
    • N_PROCESSES: number of processors to use
  • Start the extraction process:
    docker compose up -d
    

Resource Considerations

Feature extraction on large PE datasets is highly memory-intensive.
While requirements depend on dataset size, users should be aware that the process can consume substantial system resources.

As a concrete example, processing a PE dataset (MALWARE_DIR_PATH) of approximately 177 GB required a machine equipped with 512 GB of RAM to complete extraction reliably.
For smaller datasets, proportionally less memory will be needed, but large-scale processing should be expected to require several hundred gigabytes of RAM.

Plan hardware capacity accordingly before launching the extraction process.

Authors

  • Luca Fabri

Metadata

Release files for DTS-CDD__Wdis 1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DTS-CDD__Wdis 1.4.2
File Size Uploaded
dts_cdd_wdis-1.4.2.tar.gz 28.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DTS-CDD__Wdis 1.4.2
File Interpreter ABI Platform
dts_cdd_wdis-1.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 65.9 kB

Release files / dts_cdd_wdis-1.4.2.tar.gz

Download URL dts_cdd_wdis-1.4.2.tar.gz
Size 28.5 kB
Tags Source
SHA-256 checksum
How to use checksums
807b10be4c36c8ea838464d7178507b63332e27bc3449aa0be75aca504f91a0e
BLAKE2b-256 checksum
How to use checksums
24e48b8c4bc8e75531f2b7affa720c72a1c332f065f151b84328c0d6d7c9ecac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure

Release files / dts_cdd_wdis-1.4.2-py3-none-any.whl

Download URL dts_cdd_wdis-1.4.2-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
887afedc50dd223d48ac493c107cfab4943265e383b0b24b6a28adf6e2a0dc37
BLAKE2b-256 checksum
How to use checksums
d3d257b0c66468fd480ee008b077778ca452c5f654f6823bcc2457c3d78f0fb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

1.4.2 This release

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page