UNIT IV - Database Security
UNIT IV - Database Security
DATABASE SECURITY
Database Security
Database Security refers to protecting the database against:
● Unauthorized access
● Data corruption
● Loss of availability
- Firewalls :
Access Management
- Authentication
- Access Control
- Threat Detection
- Encryption
- Physical Security
- Application Security
○ Making sure that the applications accessing the database are secure.
Need for Database Security
In a Database Management System (DBMS), the need for database security arises
due to several reasons:
Protection of Sensitive Data
● Unauthorized access could lead to serious privacy violations and legal issues.
Prevent Unauthorized Access
● Ensures that the data remains accurate and trustworthy over time.
Ensuring Data Availability
● Protects the database from attacks (like Denial of Service, hardware failures,
or natural disasters) to ensure data is always accessible to authorized users.
Protection Against Cyber Threats
● Databases are common targets for cyber-attacks (e.g., SQL injection, malware,
phishing).
● Laws like GDPR, HIPAA, and CCPA require organizations to protect user data and
report breaches.
● Data breaches can cause direct financial loss, damage reputation, and lead to
customer trust loss.
● Insider threats are harder to detect because the user already has access rights.
2. Human Error
● Accidental actions can be just as damaging as intentional ones.
● Examples:
Threat Description
SQL Injection Attackers inject malicious SQL queries to manipulate the database.
● username: john' --
● password: anything
Later, the app builds a query using this stored input, causing an
injection.
5. Stored (Persistent) SQL Injection
Malicious SQL code is permanently stored on the target server (e.g., in a database
or log) and then executed later.
● Example: Attacker submits a comment with injected SQL that gets triggered
whenever the admin views it.
Types of SQL Injection
Impact of SQL Injection
● Data Theft (user details, credit card numbers)
● Authentication Bypass
• Language: SQL
SQL Injection has become a common issue with database-driven web sites.
The flaw is easily detected, and easily exploited,