[Paper Review] On Training Robust PDF Malware Classifiers
This paper proposes verifiable robustness training for PDF malware classifiers using a novel PDF tree-structured distance metric to enforce robustness against subtree insertions and deletions. It achieves 92.27% average verified robust accuracy while maintaining 99.74% test accuracy and 0.56% false positive rate, significantly increasing evasion cost for both bounded and unbounded attackers.
Although state-of-the-art PDF malware classifiers can be trained with almost perfect test accuracy (99%) and extremely low false positive rate (under 0.1%), it has been shown that even a simple adversary can evade them. A practically useful malware classifier must be robust against evasion attacks. However, achieving such robustness is an extremely challenging task. In this paper, we take the first steps towards training robust PDF malware classifiers with verifiable robustness properties. For instance, a robustness property can enforce that no matter how many pages from benign documents are inserted into a PDF malware, the classifier must still classify it as malicious. We demonstrate how the worst-case behavior of a malware classifier with respect to specific robustness properties can be formally verified. Furthermore, we find that training classifiers that satisfy formally verified robustness properties can increase the evasion cost of unbounded (i.e., not bounded by the robustness properties) attackers by eliminating simple evasion attacks. Specifically, we propose a new distance metric that operates on the PDF tree structure and specify two classes of robustness properties including subtree insertions and deletions. We utilize state-of-the-art verifiably robust training method to build robust PDF malware classifiers. Our results show that, we can achieve 92.27% average verified robust accuracy over three properties, while maintaining 99.74% accuracy and 0.56% false positive rate. With simple robustness properties, our robust model maintains 7% higher robust accuracy than all the baseline models against unrestricted whitebox attacks. Moreover, the state-of-the-art and new adaptive evolutionary attackers need up to 10 times larger $L_0$ feature distance and 21 times more PDF basic mutations (e.g., inserting and deleting objects) to evade our robust model than the baselines.
Motivation & Objective
- To address the critical gap in robustness of state-of-the-art PDF malware classifiers, which are easily evaded by simple transformations despite high accuracy and low false positive rates.
- To develop verifiable robustness properties that formally bound the worst-case behavior of classifiers under specific adversarial manipulations, such as inserting or deleting PDF tree subtrees.
- To train classifiers that maintain high accuracy and low false positive rates while increasing the cost for unbounded attackers to evade the model.
- To demonstrate that verifiably robust training can raise the bar for sophisticated attackers even beyond the specified robustness constraints.
Proposed method
- Introduces a new distance metric operating on the hierarchical structure of PDF trees to quantify semantic and syntactic changes due to insertions and deletions of subtrees.
- Defines two classes of verifiable robustness properties: subtree insertion and deletion robustness, ensuring classifier output remains malicious under such modifications.
- Employs state-of-the-art verifiably robust training techniques based on symbolic interval analysis to formally verify robustness bounds.
- Uses a neural network architecture compatible with verifiable robust training, avoiding limitations of traditional models like random forests.
- Employs adaptive evolutionary attacks and feature-space attacks to evaluate robustness, including attacks specifically designed to target the trained robustness properties.
- Quantifies attacker cost via $L_0$ feature distance and number of PDF basic mutations (e.g., object insertions/deletions) required to evade the model.
Experimental results
Research questions
- RQ1Can verifiable robustness properties be formally defined and enforced for PDF malware classifiers to ensure consistent malicious classification under structural modifications like subtree insertions and deletions?
- RQ2Does training with verifiable robustness properties increase the evasion cost for unbounded attackers not constrained by the specified properties?
- RQ3Can robustness training be achieved without significantly degrading standard accuracy or increasing the false positive rate?
- RQ4How does the proposed method compare to baseline models in resisting both feature-space and application-space evasion attacks?
Key findings
- The proposed method achieves 92.27% average verified robust accuracy across three robustness properties, with 99.74% test accuracy and 0.56% false positive rate.
- The robust model maintains 7% higher robust accuracy than all baseline models against unrestricted whitebox attacks.
- State-of-the-art adaptive attackers require up to 10 times larger $L_0$ feature distance and 21 times more PDF basic mutations to evade the robust model compared to baselines.
- The move and scatter combination attack reduces the robustness evaluation accuracy of the Robust A+C+E model to 44% after three weeks, indicating premature convergence and high evasion difficulty.
- The Monotonic 100 and Robust A+B models required only 1 and 263 evasive PDFs respectively to be generated, demonstrating significantly higher resistance to attack.
- The results confirm that verifiable robustness training increases the cost of evasion even for attackers not bounded by the specified properties, validating its effectiveness as a defense mechanism.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.