Published October 30, 2023 | Version v1

Scripts and datasets to "Generating Robust Representations of Structures in OpenSSH Heap Dumps"

  • 1. Universität Passau

Description

These are all scripts for reproducibility of "Generating Robust Representations of Structures in OpenSSH Heap Dumps".

  • save_and_reduce_struct_dataset.py - Extract raw data structures from heap dumps dataset and label.
  • masking_pretraining.py - Pre-Training with Masked Language Modeling of DistilBERT Transformer
  • seq-class_finetuning.py - Fine-Tuning of that Transformer with Sequence Classification
  • extract_embeddings_dataloader.py - Run inference on Transformer model and extract embeddings in the process.
  • pooling_network.py  - Run embeddings through a neural network with a configurable hidden size. Can be used to extract compressed embeddings.
  • SVMClassifier.py - Classify embeddings.
  • classes.py - Helper for data structure dataset creation.

Associated Datasets:

  • structs_eval.zip - Raw data structures extracted from heap dump and labelled (Validation). Also available: https://huggingface.co/datasets/johannes-garstenauer/structs_token_size_4_reduced_labelled_eval
  • structs_train.zip - Raw data structures extracted from heap dump and labelled (Training). Also available: https://huggingface.co/datasets/johannes-garstenauer/structs_token_size_4_reduced_labelled_train
  • embeddings_from_distilbert_masking_heaps.zip - Embeddings extracted from pre-trained transformer. Also available: https://huggingface.co/datasets/johannes-garstenauer/embeddings_from_distilbert_masking_heaps
  • embeddings_from_distilbert_class_heaps.zip - Embeddings extracted from fine-tuned transformer. Also available: https://huggingface.co/datasets/johannes-garstenauer/embeddings_from_distilbert_class_heaps
  • Heap Dumps available at:  https://zenodo.org/records/6537904

These are the Transformer models generated in the process:

  • distilbert_masking_heaps.zip - Pre-trained Transformer. Load using HuggingFace library. Also available: https://huggingface.co/johannes-garstenauer/distilbert_masking_heaps
  • distilbert_class_heaps.zip - FIne-tuned Transformer. Load using HuggingFace library. Also available: https://huggingface.co/johannes-garstenauer/distilbert_class_heaps

Files

distilber_masking_heaps.zip

Files (6.1 GB)

Name Size
md5:bd9c2a681d1c696918bacc7419619122
247.5 MB Preview Download
md5:4a8fbf767b727e07278d74cec0ad43d7
247.5 MB Preview Download
md5:fb1393946ad848b672afda2ea78d640c
2.7 GB Preview Download
md5:ac40c9992e4936bc91d12fa3929404a0
2.7 GB Preview Download
md5:a2b07103c9289a4e09b6f202618c7b24
15.5 kB Preview Download
md5:54160aba91349c5288fe558fa2593fc0
17.8 MB Preview Download
md5:a6e27ce05e741c390c2281eb145f74a2
101.4 MB Preview Download