SQL injection (SQLi) is a type of attack where malicious SQL statements are executed through a web form input to access or alter database resources, posing significant risks including potential database destruction. The rise of automated SQL injection tools has increased both the likelihood of exploitation and the potential for damage, making it one of the top web application vulnerabilities. Key defenses against SQLi include using prepared statements, stored procedures, input validation, and employing the principle of least privilege.