Using Data Mining Techniques for the Detection of SQL Injection Attacks on Database Systems

Q4 Physics and Astronomy
Cesar Añasco Loor, Karen Morocho, M. Hallo
{"title":"Using Data Mining Techniques for the Detection of SQL Injection Attacks on Database Systems","authors":"Cesar Añasco Loor, Karen Morocho, M. Hallo","doi":"10.33333/rp.vol51n2.02","DOIUrl":null,"url":null,"abstract":"In any business organization, database infrastructures are subject to various structured query language (SQL) injection attacks, such as tautologies, alternative coding, stored procedures, use of the union operator, piggyback, among others. This article describes a data mining project developed to mitigate the problem of identifying SQL injection attacks on databases. The project was conducted using an adaptation of the cross-industry standard process for data mining (CRISP-DM) methodology. A total of 12 python libraries was used for cleaning, transformation, and modeling. The anomaly detection model was carried out using clustering by the k – nearest neighbors (kNN) algorithm. The query text was analyzed for the groups with anomalies to identify sentences presenting attack traces. A web interface was implemented to display the daily summary of the attacks found. The information source was obtained from the transactions log of a PostgreSQL database server. Our results allowed the identification of different attacks by injection of SQL code above 80%. The execution time for processing half a million transaction log was approximately 60 minutes using a computer with the following characteristics: Intel® Core i7 processor 7th generation, 12GB RAM and 500GB SSD.","PeriodicalId":34134,"journal":{"name":"Revista Politecnica","volume":" ","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Revista Politecnica","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.33333/rp.vol51n2.02","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"Physics and Astronomy","Score":null,"Total":0}
引用次数: 0

Abstract

In any business organization, database infrastructures are subject to various structured query language (SQL) injection attacks, such as tautologies, alternative coding, stored procedures, use of the union operator, piggyback, among others. This article describes a data mining project developed to mitigate the problem of identifying SQL injection attacks on databases. The project was conducted using an adaptation of the cross-industry standard process for data mining (CRISP-DM) methodology. A total of 12 python libraries was used for cleaning, transformation, and modeling. The anomaly detection model was carried out using clustering by the k – nearest neighbors (kNN) algorithm. The query text was analyzed for the groups with anomalies to identify sentences presenting attack traces. A web interface was implemented to display the daily summary of the attacks found. The information source was obtained from the transactions log of a PostgreSQL database server. Our results allowed the identification of different attacks by injection of SQL code above 80%. The execution time for processing half a million transaction log was approximately 60 minutes using a computer with the following characteristics: Intel® Core i7 processor 7th generation, 12GB RAM and 500GB SSD.
利用数据挖掘技术检测数据库系统的SQL注入攻击
在任何业务组织中,数据库基础设施都会受到各种结构化查询语言(SQL)注入攻击,如同义词、替代编码、存储过程、联合运算符的使用、背负等。本文描述了一个数据挖掘项目,该项目旨在缓解识别数据库中SQL注入攻击的问题。该项目采用了跨行业数据挖掘标准流程(CRISP-DM)方法。总共有12个python库用于清理、转换和建模。异常检测模型使用k–最近邻(kNN)算法进行聚类。对具有异常的组的查询文本进行分析,以识别呈现攻击痕迹的句子。实现了一个web界面来显示发现的攻击的每日摘要。该信息源是从PostgreSQL数据库服务器的事务日志中获得的。我们的结果允许通过注入80%以上的SQL代码来识别不同的攻击。使用具有以下特性的计算机处理50万事务日志的执行时间约为60分钟:Intel®Core i7处理器第7代、12GB RAM和500GB SSD。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Revista Politecnica
Revista Politecnica Chemistry-Chemistry (miscellaneous)
CiteScore
0.40
自引率
0.00%
发文量
22
审稿时长
24 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书