Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
The Efficiency of Machine Learning Detection of NoSQL Injections in MongoDB
Umeå University, Faculty of Science and Technology, Department of Computing Science.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

With the rising popularity of NoSQL in modern applications, finding a suitable security mechanism against NoSQL injection attacks has become increasingly important. There is a clear gap in researching NoSQL injections compared to regular SQL injections. The study investigates how machine learning models can be used to detect and mitigate NoSQL injections using the MongoDB Injection Dataset which consists of 400 benign and malicious queries. Five models were implemented, k-Nearest Neighbors, Logistic Regression, Naive Bayes, Neural Network and a Support Vector Machine. They were trained using vectorization, grid search and cross-validation. The k-Nearest Neighbors achieved the highest accuracy of 88.75%, whereas the Neural Network performed slightly worse, likely due to the relatively small dataset. A second experiment using 60 generated NoSQL injections from NoSQLMap achieved 100% detection using k-Nearest Neighbor. The experiment shows that machine learning can effectively improve security against NoSQL injections.

Place, publisher, year, edition, pages
2025. , p. 34
Series
UMNAD ; 1578
Keywords [en]
NoSQL injection, MongoDB, machine learning, k-nearest neighbors, logistic regression, naive bayes, neural network, support vector machine
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:umu:diva-242942OAI: oai:DiVA.org:umu-242942DiVA, id: diva2:1988394
Educational program
Bachelor of Science Programme in Computing Science
Presentation
2025-06-03, NAT.D.470, Umeå, 14:30 (Swedish)
Examiners
Available from: 2025-08-12 Created: 2025-08-11 Last updated: 2025-08-12Bibliographically approved

Open Access in DiVA

fulltext(3119 kB)158 downloads
File information
File name FULLTEXT01.pdfFile size 3119 kBChecksum SHA-512
ba999abd43f68e483480e6c318fface2c6c8be03e5b2d62e41c81cd859a753e893cbb24e0e5248a7fc55d7a7aad3df6b79786d0deafa9863dd284e6892c02728
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Østergaard Månsson, Victor
By organisation
Department of Computing Science
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 160 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 775 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf