SQL Injection
Attackers type specially crafted text into a website form or address that tricks the database behind it into revealing, changing or deleting data.

Layer 7: Application High risk
How it works
Many websites and web portals store their information in a database: customer accounts, orders, bookings, quotes or job records. When you search, log in or submit a form, the website builds a database request using what you typed. If the site does not handle that input carefully, an attacker can type database commands instead of ordinary text, and the database will run them. Automated tools test websites for this weakness around the clock, looking for any form or address that responds.
A successful attack can dump entire tables of customer names, emails and passwords, change prices, create admin accounts or delete records. Custom-built portals, older content management sites and plugins written years ago are the most likely to be affected. Many business owners do not realize their website talks to a database at all, so the first sign is often a breach notice from a customer, a payment processor or a security researcher, or stolen data appearing for sale online.
Warning signs
- Error messages on your website that mention databases or code
- Unexpected admin accounts or changed content on the site
- Customers reporting spam or account takeovers after using your site
- Hosting provider warnings about unusual database activity
- A custom web portal that has not been reviewed or updated in years
How to defend against it
- Have your web developer use safe coding methods that keep input separate from commands
- Keep the website platform, plugins and themes updated
- Put the site behind a web application firewall
- Limit what the website's database account is allowed to do
- Have the site tested for common web flaws before launch and periodically after
If it happens to you
- Take the affected site or form offline if data is being stolen
- Preserve web and database logs and call your incident response provider
- Reset passwords stored on the site and notify affected users as advised
- Assess privacy breach reporting obligations with legal advice
If you think this is happening right now, call our incident line at 1-800-716-8955. We answer 24 hours a day, whether or not you are a client. What to do while you wait.