Skip to main content
QUICK REVIEW

[Paper Review] HashTran-DNN: A Framework for Enhancing Robustness of Deep Neural Networks against Adversarial Malware Samples

Deqiang Li, Ramesh Baral|arXiv (Cornell University)|Sep 18, 2018
Adversarial Robustness in Machine LearningComputer Science40 references19 citations
TL;DR

HashTran-DNN is a novel framework that enhances deep neural network (DNN) robustness against adversarial malware by combining locality-preserving hash functions with denoising autoencoders (DAE). It effectively defends against four major adversarial attacks on Android malware—JSMA, GD-KDE, CW, and Mimicry—outperforming standard DNNs and existing defenses like RFN and iterative adversarial training, especially against large-perturbation attacks.

ABSTRACT

Adversarial machine learning in the context of image processing and related applications has received a large amount of attention. However, adversarial machine learning, especially adversarial deep learning, in the context of malware detection has received much less attention despite its apparent importance. In this paper, we present a framework for enhancing the robustness of Deep Neural Networks (DNNs) against adversarial malware samples, dubbed Hashing Transformation Deep Neural Networks} (HashTran-DNN). The core idea is to use hash functions with a certain locality-preserving property to transform samples to enhance the robustness of DNNs in malware classification. The framework further uses a Denoising Auto-Encoder (DAE) regularizer to reconstruct the hash representations of samples, making the resulting DNN classifiers capable of attaining the locality information in the latent space. We experiment with two concrete instantiations of the HashTran-DNN framework to classify Android malware. Experimental results show that four known attacks can render standard DNNs useless in classifying Android malware, that known defenses can at most defend three of the four attacks, and that HashTran-DNN can effectively defend against all of the four attacks.

Motivation & Objective

  • Address the critical gap in adversarial machine learning for malware detection, where existing DNNs are highly vulnerable to adversarial perturbations.
  • Develop a defense framework that preserves semantic locality in malware representations under adversarial manipulation.
  • Enhance DNN robustness by integrating hash transformations and DAE regularization to detect and reject out-of-distribution adversarial samples.
  • Demonstrate the effectiveness of the framework against multiple state-of-the-art adversarial attacks on real-world Android malware datasets.

Proposed method

  • Apply locality-preserving hash functions (LSH and LNH) to transform malware samples into compact, semantically stable representations.
  • Introduce Locality-Nonlinear Hash (LNH) functions with bounded distance-distortion in the {0,1}^n space under normalized Hamming distance.
  • Integrate a Denoising Auto-Encoder (DAE) to reconstruct hash representations and regularize the DNN, improving generalization and anomaly detection.
  • Train the DNN on hash-encoded features to preserve local structure and enhance robustness to feature perturbations.
  • Use the DAE to filter out adversarial samples that lie far from the training data distribution, especially under high perturbation.
  • Combine hashing and DAE to simultaneously mitigate small and large perturbations, leveraging both structural invariance and noise robustness.

Experimental results

Research questions

  • RQ1Can locality-preserving hashing improve the robustness of DNNs against adversarial malware samples?
  • RQ2To what extent can a DAE regularizer enhance the DNN’s ability to detect and reject out-of-distribution adversarial samples?
  • RQ3How effective is HashTran-DNN in defending against diverse adversarial attacks, including JSMA, GD-KDE, CW, and Mimicry?
  • RQ4Does the integration of hashing and DAE provide superior robustness compared to existing defenses like RFN or iterative adversarial training?
  • RQ5What is the impact of different hash function designs (LSH vs. LNH) and DAE integration on classification accuracy under adversarial perturbations?

Key findings

  • Standard DNN-DAE models suffer a significant drop in accuracy (from 92.09% to near 0%) when exposed to 496 adversarial samples generated by JSMA, GD-KDE, and CW attacks at ε=30.
  • HashTran-DNN with LSH-DAE and LNH-DAE maintains high classification accuracy across all four attacks, demonstrating robustness even under high perturbation.
  • The framework outperforms Random Feature Nullification (RFN), which fails to defend against any of the four attacks.
  • HashTran-DNN with LNH-DAE achieves the highest accuracy on the original (non-adversarial) test set (92.87%), indicating strong generalization.
  • The DAE component effectively filters out large-perturbation adversarial samples, while hashing mitigates small, targeted perturbations.
  • The combination of hashing and DAE regularization stabilizes the DNN’s performance across varying perturbation levels, unlike standalone DAE or DNN-DAE models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.