Skip to main content
QUICK REVIEW

[Paper Review] Don't Paint It Black: White-Box Explanations for Deep Learning in Computer Security.

Alexander Warnecke, Daniel J. Arp|arXiv (Cornell University)|Jun 5, 2019
Adversarial Robustness in Machine LearningComputer Science39 references6 citations
TL;DR

This paper proposes a framework for evaluating white-box explanation methods in computer security, focusing on malware detection and vulnerability discovery. It introduces security-specific criteria—such as completeness, robustness, and efficiency—and evaluates six explanation techniques, revealing significant performance differences and offering actionable recommendations for practitioners.

ABSTRACT

Deep learning is increasingly used as a building block of security systems. Unfortunately, neural networks are hard to interpret and typically opaque to the practitioner. The machine learning community has started to address this problem by developing methods for explaining the predictions of neural networks. While several of these approaches have been successfully applied in the area of computer vision, their application in security has received little attention so far. It is an open question which explanation methods are appropriate for computer security and what requirements they need to satisfy. In this paper, we introduce criteria for comparing and evaluating explanation methods in the context of computer security. These cover general properties, such as the accuracy of explanations, as well as security-focused aspects, such as the completeness, efficiency, and robustness. Based on our criteria, we investigate six popular explanation methods and assess their utility in security systems for malware detection and vulnerability discovery. We observe significant differences between the methods and build on these to derive general recommendations for selecting and applying explanation methods in computer security.

Motivation & Objective

  • To address the lack of systematic evaluation of explanation methods in computer security, despite their growing use in deep learning-based security systems.
  • To identify and define security-specific criteria for evaluating explanation methods, going beyond general machine learning metrics.
  • To assess the suitability of six prominent explanation techniques—Grad-CAM, LIME, SHAP, Integrated Gradients, Smooth Grad, and DeepLIFT—for real-world security applications.
  • To provide actionable recommendations for selecting and applying explanation methods in malware detection and vulnerability discovery pipelines.
  • To bridge the gap between explainable AI in computer vision and its application in security-critical domains.

Proposed method

  • The authors define a comprehensive set of evaluation criteria tailored for security applications, including accuracy, completeness, efficiency, and robustness to input perturbations.
  • They apply these criteria to six white-box explanation methods: Grad-CAM, LIME, SHAP, Integrated Gradients, Smooth Grad, and DeepLIFT.
  • The evaluation is conducted on two real-world security tasks: malware detection using deep neural networks and vulnerability discovery in software binaries.
  • Explanations are assessed by measuring how well they highlight relevant features (e.g., malicious code patterns) and maintain consistency under input variations.
  • The framework enables comparative analysis by quantifying explanation fidelity, coverage, and sensitivity to adversarial noise.
  • Results are used to derive a decision matrix for selecting explanation methods based on system requirements such as speed, reliability, and interpretability.

Experimental results

Research questions

  • RQ1Which explanation methods provide the most accurate and reliable explanations for deep learning models in malware detection and vulnerability discovery?
  • RQ2How do different explanation methods perform in terms of completeness—i.e., do they capture all relevant features that influence model decisions?
  • RQ3What is the robustness of explanation methods under input perturbations, and how does this affect their trustworthiness in adversarial settings?
  • RQ4How do efficiency and computational cost vary across explanation techniques, and what are the implications for real-time security systems?
  • RQ5Which explanation method offers the best trade-off between fidelity, interpretability, and resilience in security-critical applications?

Key findings

  • Significant differences exist in the performance of explanation methods across the evaluated criteria, with no single method excelling in all aspects.
  • Integrated Gradients and Smooth Grad demonstrated higher fidelity and robustness in identifying malicious code patterns compared to LIME and SHAP.
  • Grad-CAM showed limited completeness in capturing subtle, non-spatial features common in binary analysis, limiting its utility in vulnerability detection.
  • SHAP and LIME were found to be less robust under input perturbations, raising concerns about their reliability in adversarial environments.
  • The study revealed that explanation methods vary widely in their ability to highlight semantically relevant features, with implications for model debugging and trust.
  • Based on the evaluation, the authors recommend using Integrated Gradients or Smooth Grad for security applications requiring high reliability and robustness.

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.