Detecting and Mitigating SQL Injection in .NET Applications Using AI-Based Anomaly Detection
SQL Injection (SQLi) persists as a major threat to .NET applications since attackers can inject harmful SQL code into databases for database manipulation purposes. The presence of this vulnerability leads to hackers gaining access to unauthorized data and causing system integrity failure while resulting in lost data which threatens organizations utilizing these applications. Signature-based detection systems demonstrate limited effectiveness when it comes to detecting contemporary or innovative SQLi attacks that create new patterns. Artificial Intelligence through anomaly detection technology provides a capable defensive solution to overcome this particular challenge. The normal behavior patterns of SQL queries inside applications become manageable for AI systems through machine learning algorithms to detect abnormal patterns that signal SQLi attack vulnerabilities. The research introduces a specific AI-based anomaly detection system designed for .NET application environments. Our research method begins with collecting SQL query logs then performing data preprocessing before extracting important features which are used to train a machine learning model to detect between valid and hostile SQL queries. The detection process relies on an RNN autoencoder which understands SQL query sequences thus identifying anomalous patterns related to SQL injection. Experimental testing shows that the proposed method reaches high detection precision alongside minimal false alarms while detecting recognized as well as unrecognized SQLi attacks. The security position of .NET applications becomes more robust through the implementation of this AI-based anomaly detection system in protecting against current and future SQLi attacks.
Authors
- Sohan Singh Chinthalapudi
Publication Details
- Published
- 2025-04-11
- DOI
- https://doi.org/10.38124/ijisrt/25mar1676
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00