Introduction
Deep learning has become a cornerstone of modern cybersecurity, powering advanced systems for malware detection and code vulnerability analysis. However, these models often function as "black boxes," offering high accuracy but zero transparency. For security analysts, a binary classification (e.g., "malicious" vs. "benign") is only the beginning of a complex investigation. They need to know why a model flagged a specific file to perform effective risk analysis and remediation.
Existing Feature Attribution (FA) methods, such as LIME, SHAP, or Integrated Gradients, attempt to solve this by highlighting "important" features. However, in the security domain, these tools often fail. They frequently suffer from low fidelity—where the highlighted features do not actually drive the model's decision—and low intelligibility. Highlighting a disconnected set of raw bytes or opcodes is of little use to an expert who thinks in terms of functions, control flow, and logical blocks.
The FINER Framework
To address these challenges, we present FINER, a framework designed to transform opaque security classifiers into high-fidelity, human-interpretable explanation systems. FINER moves beyond post-hoc explanations by integrating explainability directly into the model's lifecycle.
The framework involves three key stakeholders:
- Model Developer (R1): Responsible for providing and updating the classifier.
- FA Designer (R3): Provides the explanation algorithms and the interface for domain-specific abstraction.
- Security Expert (R2): The end-user who utilizes the class labels and explanations for risk analysis.
Core Methodologies
FINER introduces three primary innovations to bridge the "semantic gap" between machine learning models and human experts:
1. Explanation-guided Model Updating (M1)
Instead of accepting a pre-trained model as a fixed entity, FINER employs a multi-task learning strategy to fine-tune the classifier. By training on "sanitized" samples (where known malicious components are removed) and "variant" samples, the model is forced to ignore random noise and artifacts. This process ensures that the model's internal logic aligns with semantically meaningful features, significantly boosting the fidelity of subsequent explanations.
2. Intelligible Components (ICs)
To improve human readability, FINER introduces an abstraction layer called Intelligible Components. Rather than explaining raw features (like individual tokens or bytes), the system groups them into logical units relevant to the domain—such as functions in a binary, classes in an Android app, or code gadgets in source code. This allows analysts to see which high-level structures are driving the threat detection.
3. Task-aware Ensemble Explainer (M2)
No single explanation method is universally superior. FINER utilizes an ensemble of FA methods (including Integrated Gradients and DeepLIFT) and dynamically weights their contributions. It uses a "local fidelity" metric to evaluate how accurately each explainer approximates the model's behavior for a specific piece of data, ensuring the analyst receives the most trustworthy explanation possible.
Experimental Evaluation
The researchers conducted an extensive evaluation of FINER across three critical security domains:
- Android Malware: A dataset of 17,549 applications (12.8k benign, 4.7k malicious) from 2017–2019.
- Windows PE Malware: The DR-VGG dataset containing approximately 60,000 files.
- Code Vulnerabilities: The VulDeePecker benchmark, consisting of nearly 40,000 code gadgets.
Key Insights and Results
- Fidelity and Accuracy: FINER improved explanation fidelity by up to 82% in Windows malware detection tasks. Importantly, this increase in interpretability did not require a trade-off in performance; classification accuracy and F1-scores remained stable or even slightly improved across all datasets.
- Computational Efficiency: By performing attribution at the level of Intelligible Components rather than raw features, FINER reduced the computational cost of complex explainers like LIME by over 90%.
- Real-world Impact: In a user study with five professional malware analysts, FINER's function-level explanations were preferred over all standard methods. Analysts estimated that the tool could reduce the time required for manual reverse-engineering by over 70%.
- Precision Localization: When tested against the Pegasus spyware, FINER successfully localized the specific malicious functions, outperforming specialized tools like DeepReflect.
Limitations and Future Work
While FINER represents a significant step forward, it relies on the accuracy of external tools (like Androguard or Binary Ninja) to define Intelligible Components. Future research will focus on handling heavily obfuscated or packed code where function boundaries are obscured. Additionally, the authors plan to extend the framework to explain "benign" classifications, helping analysts understand why a suspicious-looking file was ultimately cleared.
Summary updated