Static Detection of Novel Malware Using Transfer Learning with Deep Neural Networks
Where
Day 1 Stream 1
BSides Las Vegas
Duration
50 min
Shows how converting Windows executables into images and applying transfer learning can flag malware never seen before.
Summary
Signature matching and heuristic detection struggle with custom malware that has never been seen before. The speakers describe an alternative in which Windows executables are turned into grayscale images and fed to an image-recognition network that has been pretrained and then retrained for malicious-versus-benign classification. Because nothing in the file is executed, the approach counts as static detection, and it avoids the lengthy feature engineering that typical machine learning pipelines require.
The work starts from an Intel and Microsoft method whose dataset is proprietary, so the team rebuilt a comparable collection. Malicious samples came from a public malware repository, while benign files were gathered from fresh Windows 10, Windows Server 2019 and Cygwin installations, in sets of roughly 10,000 and 15,000 per class. The team swapped the original table-based image sizing for a simple square-root layout with nearest-neighbor scaling, which performed better in their tests. DenseNet-201 gave the highest accuracy, about 96.5 percent. Accuracy dropped on samples from certain advanced threat groups, and file-size imbalance between classes was offered as a likely cause.
The main bottleneck identified was the scarcity of legally shareable benign binaries, which makes reproducing results hard. The presenters plan to release code, conversion tools and trained models under a permissive license, and they outlined future directions such as one-shot learning and multi-class labeling by malware family. Closing questions stressed that closed-source vendors rarely explain their methods, so independent testing on held-out malware matters.
Related talks
Talks·33 min
Ange Albertini
Compares file type identification engines like libmagic, TrID and Magika, and shows how they can be fooled.
Talks·29 min
Philippe Lagadec
Explains why content-only file identifiers fail on weaponized files and proposes combining extensions with content checks.
Talks·24 min
Kseniia Yamburh · Nazar Grycshuk
Shows how machine learning clusters and classifies macOS malware that vendors only label as generic.


