[Paper Review] MLPdf: An Effective Machine Learning Based Approach for PDF Malware Detection
This paper proposes MLPdf, a multilayer perceptron (MLP) neural network model that detects PDF-based malware using 48 high-quality features extracted from ~105,000 real-world PDFs. The model achieves a 95.12% true positive rate with only 0.08% false positive rate, significantly outperforming eight commercial antivirus scanners.
Due to the popularity of portable document format (PDF) and increasing number of vulnerabilities in major PDF viewer applications, malware writers continue to use it to deliver malware via web downloads, email attachments and other methods in both targeted and non-targeted attacks. The topic on how to effectively block malicious PDF documents has received huge research interests in both cyber security industry and academia with no sign of slowing down. In this paper, we propose a novel approach based on a multilayer perceptron (MLP) neural network model, termed MLPdf, for the detection of PDF based malware. More specifically, the MLPdf model uses a backpropagation algorithm with stochastic gradient decent search for model update. A group of high quality features are extracted from two real-world datasets which comprise around 105000 benign and malicious PDF documents. Evaluation results indicate that the proposed MLPdf approach exhibits excellent performance which significantly outperforms all evaluated eight well known commercial anti-virus scanners with a much higher true positive rate of 95.12% achieved while maintaining a very low false positive rate of 0.08%.
Motivation & Objective
- To address the growing threat of PDF-based malware delivery through social engineering and zero-day exploits in widely used PDF viewers.
- To overcome limitations of traditional signature-based and sandbox-based detection methods that struggle with obfuscation, polymorphism, and zero-day attacks.
- To develop a machine learning model capable of detecting malicious PDFs with high true positive rates while maintaining extremely low false positive rates.
- To evaluate the model’s performance against state-of-the-art commercial antivirus scanners in real-world conditions.
Proposed method
- The MLPdf model uses a multilayer perceptron with two hidden layers of 72 neurons each and a single sigmoid output layer for binary classification (malicious/benign).
- Model training employs backpropagation with stochastic gradient descent and a dropout rate of 0.15 to prevent overfitting during training.
- Batch normalization is applied to each layer to stabilize and accelerate training by maintaining zero mean and unit variance in layer inputs.
- A validation set comprising 20% of the training data is used to monitor overfitting and guide hyperparameter selection.
- The model is trained for 5,000 epochs using a batch size of 64 on a dataset of ~105,000 benign and malicious PDFs.
- A probability threshold of 0.62 is selected to balance detection performance, yielding optimal true positive and false positive rates.
Experimental results
Research questions
- RQ1Can a machine learning model based on a multilayer perceptron effectively detect malicious PDFs with higher accuracy than commercial antivirus scanners?
- RQ2How does the MLPdf model perform in terms of true positive rate and false positive rate when detecting obfuscated or zero-day PDF-based malware?
- RQ3To what extent do high-quality, manually selected features improve detection performance compared to heuristic or signature-based methods?
- RQ4Can the use of dropout and batch normalization in the MLP architecture improve generalization and robustness on unseen PDF samples?
Key findings
- The MLPdf model achieves a 95.12% true positive rate on a test set of 13,101 benign and 1,946 malicious PDFs, significantly outperforming the best commercial antivirus scanner, which achieved only 84.53%.
- The model maintains an exceptionally low false positive rate of 0.08%, equivalent to 10.4 false positives among 13,101 benign files.
- At a false positive rate of 0.1%, the model achieves a true positive rate of 95%, demonstrating strong performance even under moderate FPR constraints.
- The model's performance is robust across varying probability thresholds, with a clear trade-off between false positive and false negative rates.
- The MLPdf approach significantly outperforms all eight evaluated commercial antivirus scanners across all tested thresholds, as shown in Figure 6.
- The use of 48 high-quality features, combined with batch normalization and dropout, contributes to the model’s strong generalization and low overfitting.
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.