CryptoSQLShield: A Comprehensive Study on Cryptography-Assisted Methods for SQL Injection Defense

Read full text
Authors: Mr. Amit Hariyani, Prashant M. Dolia
Cited by: 0

Abstract

SQL injection (SQLi) represents a significant threat to the integrity and security of web applications by exploiting vulnerabilities within database systems, thereby allowing unauthorized access and manipulation of sensitive information. Current mitigation strategies, including input validation, parameterized queries, web application firewalls (WAFs), and machine learning detection algorithms, often fall short against sophisticated attacks that employ obfuscation and fragmentation. This study introduces CryptoSQLShield, an innovative dual-layer defense architecture designed to enhance resilience against SQLi attacks. The framework integrates cryptographic input sanitization with real-time query analysis, facilitating a prevention module using customizable user-defined encryption/decryption (UDF) mechanisms to decouple user input from query syntax. Concurrently, a detection module applies template-based validation and anomaly scoring to reconstructed queries before execution. Unlike traditional solutions that rely on static cryptographic protocols, CryptoSQLShield offers flexible encryption strategies, adaptable for various contexts, including controlled environments, research applications, and educational settings. Empirical evaluations conducted on standard SQLi testing frameworks reveal a substantial decline in exploitation success rates, alongside improved recall for detecting obfuscated payloads, substantiating the framework's efficacy in achieving a favorable balance among attack resilience, false-positive reduction, and operational efficiency.

Fields of Study & Subjects

Web Application Security Vulnerabilities Security and Verification in Computing Network Security and Intrusion Detection

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
8 January 2026