Random Forest Approach for pdf Malware Detection

Portable Document Format (PDF) files are widely used for information exchange but have become a frequent vector for cyberattacks.Traditional signature-based and heuristic methods often fail against obfuscation and polymorphic malware, highlighting the need for more adaptive detection strategies.This study addresses the problem of PDF malware detection by applying machine learning, focusing on ensemble methods.A Random Forest model was trained on the PDFMal-2022 dataset using both static features (file size, page count, text length, image and JavaScript markers) and engineered features (text-to-size ratio, images-per-page ratio, missing text flag, and enhanced JavaScript count).Stratified cross-validation demonstrated stable performance with a macro F1-score of approximately 0.992.Feature importance analysis further confirmed the dominance of JavaScript-related attributes.The contribution of this work is to demonstrate that a lightweight and interpretable Random Forest framework can deliver state-ofthe-art detection while avoiding the computational demands of deep learning.

Authors

Institutions

Publication Details

Journal
Baltic Journal of Modern Computing
Published
2025-01-01
DOI
https://doi.org/10.22364/bjmc.2025.13.3.08
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Random Forest Approach for pdf Malware Detection

Sergii Gakhov, В. В. Марченко, Halyna Haidur, Anastasia Bryhynets et al.
Baltic Journal of Modern Computing
Advanced Malware Detection Techniques
article

Random Forest Approach for pdf Malware Detection

Sergii Gakhov, В. В. Марченко, Halyna Haidur, Anastasia Bryhynets, Yaroslav Klymenko
article en

Abstract

Portable Document Format (PDF) files are widely used for information exchange but have become a frequent vector for cyberattacks.Traditional signature-based and heuristic methods often fail against obfuscation and polymorphic malware, highlighting the need for more adaptive detection strategies.This study addresses the problem of PDF malware detection by applying machine learning, focusing on ensemble methods.A Random Forest model was trained on the PDFMal-2022 dataset using both static features (file size, page count, text length, image and JavaScript markers) and engineered features (text-to-size ratio, images-per-page ratio, missing text flag, and enhanced JavaScript count).Stratified cross-validation demonstrated stable performance with a macro F1-score of approximately 0.992.Feature importance analysis further confirmed the dominance of JavaScript-related attributes.The contribution of this work is to demonstrate that a lightweight and interpretable Random Forest framework can deliver state-ofthe-art detection while avoiding the computational demands of deep learning.

Baltic Journal of Modern ComputingVol. 13(3)
Institute of Information Technologies (BG)
Openalex Percentile: Top 66%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Random Forest Approach for pdf Malware Detection — Sergii Gakhov, В. В. Марченко, et al. · Baltic Journal of Modern Computing (2025) | TGRS Research Map | TGRS