Analysis of Backdoor Shells in Web Servers Using Splunk and SPL-Based Machine Learning
DOI:
https://doi.org/10.29207/resti.v10i1.7215Keywords:
backdoor shell, logistic regression, random forest, search processing language (SPL), splunk, web server securityAbstract
Backdoor shell attacks pose a critical threat to web server security, allowing attackers to bypass authentication and gain persistent, unauthorized control. Conventional signature-based detection methods often fail against these attacks due to their polymorphic and obfuscation techniques. To address this, we propose an integrated detection approach leveraging Splunk as a log management platform combined with Search Processing Language (SPL)-based machine learning (ML) models. This study collected and preprocessed web server log data using SPL queries, transforming it into structured features for classification. We evaluated two supervised learning algorithms, Logistic Regression and Random Forest, on a labeled dataset comprising both normal traffic and simulated backdoor shell attacks. The evaluation showed that while Logistic Regression achieved a solid performance with 93.5% accuracy and 87.8% recall, the Random Forest model significantly outperformed it. Random Forest reached an accuracy of 97.2%, with a precision of 95.8%, recall of 94.1%, and an F1-score of 94.9%. Crucially, it also reduced the false negative rate (FNR) to 2.3% and the false positive rate (FPR) to 3.5%, making it more reliable for real-time applications. Our findings demonstrate that Random Forest, when integrated with Splunk's SPL, provides a highly robust and practical detection mechanism that effectively distinguishes malicious activities. The primary contribution of this research is an end-to-end architecture that combines scalable log management, effective feature engineering, and advanced ML detection, offering a scalable and practical solution for enterprise-level security monitoring.
Downloads
References
Z. Ai, N. Luktarhan, A. J. Zhou, and D. Lv, “WebShell attack detection based on a deep super learner,” Symmetry (Basel)., vol. 12, no. 9, Sep. 2020, doi: 10.3390/SYM12091406.
T. Dinh Tu, C. Guang, G. Xiaojun, and P. Wubin, “Webshell Detection Techniques in Web Applications.” [Online]. Available: http://cctea-m.ru/update/c999shell,
Y. Guo, H. Marco-Gisbert, and P. Keir, “Mitigating webshell attacks through machine learning techniques,” Future Internet, vol. 12, no. 1, Jan. 2020, doi: 10.3390/fi12010012.
A. Zhou, N. Luktarhan, and Z. Ai, “Research on webshell detection method based on regularized neighborhood component analysis (Rnca),” Symmetry (Basel)., vol. 13, no. 7, Jul. 2021, doi: 10.3390/sym13071202.
R. Project, T. Un, and A. Duong Trinh, “Analyzing Obfuscation Techniques for Evasion: A Case Study on Machine Learning-based Malware Detection.”, https://norma.ncirl.ie/id/eprint/7718
P. Shelke and T. Frantti, “Exploring the Possibilities of Splunk Enterprise Security in Advanced Cyber Threat Detection.” International Conference on Cyber Warfare and Security, vol, 20, no. 1, pp. 605-613, 2025, doi: 10.34190/iccws.20.1.3326
Y. Zhang, D. Li, and Y. Xie, “GAShellBreaker: A Novel Method for Java Fileless Webshell Detection Based on Grayscale Images and Deep Learning,” Electronics (Switzerland), vol. 14, no. 8, Apr. 2025, doi: 10.3390/electronics14081678.
B. Yong et al., “Ensemble machine learning approaches for webshell detection in Internet of things environments,” Transactions on Emerging Telecommunications Technologies, vol. 33, no. 6, Jun. 2022, doi: 10.1002/ett.4085.
A. Alshuaibi, M. Almaayah, and A. Ali, “Machine Learning for Cybersecurity Issues: A systematic Review,” Journal of Cyber Security and Risk Auditing, vol. 2025, no. 1, pp. 36–46, 2025, doi: 10.63180/jcsra.thestap.2025.1.4.
A. Waqas, S. D. Khan, Z. Ullah, M. Ullah, and H. Ullah, “Comparative Analysis of Deep Learning Models for Intrusion Detection in IoT Networks,” Computers, vol. 14, no. 7, Jul. 2025, doi: 10.3390/computers14070283.
S. Elsayed, K. Mohamed, and M. A. Madkour, “A Comparative Study of Using Deep Learning Algorithms in Network Intrusion Detection,” IEEE Access, vol. 12, pp. 58851–58870, 2024, doi: 10.1109/ACCESS.2024.3389096.
C. E. Ben Ncir, M. A. Ben HajKacem, and M. Alattas, “Enhancing intrusion detection performance using explainable ensemble deep learning,” PeerJ Comput. Sci., vol. 10, 2024, doi: 10.7717/PEERJ-CS.2289.
M. C. Wibowo, I. Setyawan, A. Setiawan, and I. Sembiring, “Deep Learning-Based Visualization of Network Threat Patterns Using GAN-Generated Infographic,” Jurnal RESTI, vol. 9, no. 4, pp. 765–770, 2025, doi: 10.29207/resti.v9i4.6717.
H. Y. Kwon, T. Kim, and M. K. Lee, “Advanced Intrusion Detection Combining Signature-Based and Behavior-Based Detection Methods,” Electronics (Switzerland), vol. 11, no. 6, Mar. 2022, doi: 10.3390/electronics11060867.
K. Lamon, “Intrusion detection for industrial control systems,” Eastern Washington University, Washington, 2021. [Online]. Available: https://dc.ewu.edu/theses
M. Ridwan, I. Sembiring, A. Setiawan, and I. Setyawan, “Analysis of Attack Detection on Log Access Servers Using Machine Learning Classification: Integrating Expert Labeling and Optimal Model Selection,” Scientific Journal of Informatics, vol. 11, no. 1, pp. 119–126, Feb. 2024, doi: 10.15294/sji.v11i1.49424.
R. Jain, S. Tschisgale, and J. Fröhlich, “A collision model for DNS with ellipsoidal particles in viscous fluid,” Mar. 2022, doi: 10.1016/j.ijmultiphaseflow.2019.103087.
X. Pan, “Independent Study of Splunk,” OAlib, vol. 11, no. 04, pp. 1–16, 2024, doi: 10.4236/oalib.1111496.
R. Sahay, M. Sumasadan, B. Eapen, W. Meng, and M. R. Al Mamu, “Enhancing Threat Hunting with Splunk and Generative AI forAutomated Security Operations,” Oct. 14, 2025. doi: 10.21203/rs.3.rs-7515771/v1.
K. Shaukat et al., “Performance comparison and current challenges of using machine learning techniques in cybersecurity,” May 01, 2020, MDPI AG. doi: 10.3390/en13102509.
A. S. Dina, A. B. Siddique, and D. Manivannan, “Effect of Balancing Data Using Synthetic Data on the Performance of Machine Learning Classifiers for Intrusion Detection in Computer Networks,” IEEE Access, vol. 10, pp. 96731–96747, 2022, doi: 10.1109/ACCESS.2022.3205337.
M. F. Prayogi, A. F. Setiawan, and X. Ariwibisono, “Perancangan Sistem Keamanan Web Menggunakan Metode Random Forest (Studi Kasus : Institusi X),” JATI (Jurnal Mahasiswa Teknik Informatika), 2025, DOI:10.36040/jati.v9i6.15457.
S. Tariq, M. B. Chhetri, S. Nepal, and C. Paris, “Alert Fatigue in Security Operations Centres: Research Challenges and Opportunities,” ACM Comput. Surv., vol. 57, no. 9, Apr. 2025, doi: 10.1145/3723158.
A. K. Jakkani, “Real-Time Network Traffic Analysis and Anomaly,” Journal of Electronics, Computer Networking and Applied Mathematics, vol. 04, pp. 32–44, 2024, doi:10.55529/jecnam.44.32.44
M. Xue, C. Yuan, H. Wu, Y. Zhang, and W. Liu, “Machine Learning Security: Threats, Countermeasures, and Evaluations,” IEEE Access, vol. 8, pp. 74720–74742, 2020, doi: 10.1109/ACCESS.2020.2987435.
S. A. Mandowen, A. M. Vulfin, V. I. Vasilyev, E. R. Khairullin, and J. K. Wororomi, “A Robust Multi-Validation Approach for Evaluating Machine Learning-Based Intrusion Detection Models,” BIO Web Conf., vol. 213, p. 03001, Jan. 2026, doi: 10.1051/bioconf/202621303001.
Downloads
Published
Issue
Section
License
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;





