IDEAS home Printed from https://ideas.repec.org/a/gvu/tcsst0/v8y2026i3id2247.html

Detecting Intrusions in MongoDB NoSQL Databases Using Machine Learning

Author

Listed:
  • Abdelilah Belhaj
  • Soumia Ziti
  • Khalil Ladrham
  • Souad Najoua Lagmiri
  • Karim El Bouchti

Abstract

Due to their flexibility and scalability, NoSQL databases, most notably MongoDB, are widely adopted in the modern cloud environment. However, this popularity introduces new security vulnerabilities, such as NoSQL injections, brute-force attacks, and denial-of-service attacks, which traditional Intrusion Detection Systems (IDS) struggle to detect. In this paper, machine learning is adapted to detect five types of attacks targeting MongoDB including NoSQL injections, XSS through the $where operator, brute-force attacks, denial-of-service attacks through expensive queries, and preparatory scanning. For this purpose, the ToN_IoT dataset is adapted to the MongoDB context by selecting 150,000 representative samples and 9 native features, and implementing four composite features. Three models are evaluated: Random Forest, XGBoost, and MLP Classifier. XGBoost achieves the best performance with an inference time of 0.019 ms, an accuracy of 98.9% and a macro F1-score of 0.9889. Performance per class indicates that scanning attacks and brute-force attacks are the easiest to detect (F1 > 0.98). However, injection attacks and XSS attacks are more difficult to detect (F1

Suggested Citation

Handle: RePEc:gvu:tcsst0:v:8:y:2026:i:3:id:2247
DOI: 10.36548/jtcsst.2026.3.003
as

Download full text from publisher

File URL: https://irojournals.com/tcsst/article/view/2247
File Function: Abstract page
Download Restriction: no

File URL: https://irojournals.com/tcsst/article/download/2247/2056
File Function: Full text
Download Restriction: no

File URL: https://libkey.io/10.36548/jtcsst.2026.3.003?utm_source=ideas
LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
---><---

More about this item

Keywords

;
;
;
;
;
;

Statistics

Access and download statistics

Corrections

All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gvu:tcsst0:v:8:y:2026:i:3:id:2247. See general information about how to correct material in RePEc.

If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

We have no bibliographic references for this item. You can help adding them by using this form .

If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Journal Manager (email available below). General contact details of provider: https://irojournals.com/tcsst .

Please note that corrections may take a couple of weeks to filter through the various RePEc services.

IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.