Database Security
Database Security
SECURITY
The more you sweat in training, the less
you’ll bleed in battle.
SQL Server
MySQL
WHY IS DATABASE SECURITY
IMPORTANT?
*Figures found by scanning for open ports commonly used by the respective software.
HARDENING DATABASES – GENERAL
STRATEGIES AND TACTICS
Principle of Least Privilege!
Stay up-to-date on patches
Firewalling/Access Control
presentation. Oracle
ORACLE’S VULNERABILITY HISTORY
“[…] 2003 and beyond […] the numbers went through the roof […]”
HARDING ORACLE - TNS LISTENER
TNS Listener
“The TNS Listener is the hub of all
communications in Oracle. […] When a client
wishes to access the database server, the client
connects first to the Listener. […] In versions of
Oracle prior to 10g, the TNS Listener could be
administered remotely What makes this
particularly dangerous is the fact that by default
the Listener is installed without a password […]”
– The Database Hacker’s Handbook
HARDING ORACLE - TNS LISTENER
Set a password for TNS Listener
Administration
listener.ora file
PASSWORDS_listenername = somepass
Use the lsnrctl utility
LSNRCTL> change_password
HARDENING ORACLE - DEFAULT
ACCOUNTS
Decent amount of default accounts
Be aware what they are
Ensure the passwords do in fact get changed
appropriatly
10g forces admin to set passwords for many
default accounts on install and may lock or
expire them.
SELECT slides FROM
SQL Server
presentation.
HARDENING SQL SERVER – LOCAL
ADMINS
Removing Local Builtin\Administrators group
from sysadmins
Ifthey are an administrator on a system running
SQL Server they can get to anything in any
database.
HARDENING SQL SERVER -
AUTHENTICATION
presentation. MySQL
HARDING MYSQL – DISABLING
NETWORK ACCESS
The Oracle® Hacker’s Handbook:
D.Litchfield,
Hacking and Defending Oracle, Indianapolis:
Wiley Publishing Inc., 2007.
Available on Books 24x7
http://databasesecurity.com
http://blogs.msdn.com/raulga/archive/2007/01/04/dynamic
http://msdn.microsoft.com/msdnmag/issues/05/06/SQLSer
http://www.cgisecurity.com
Questions or Comments?