SQL Server Security
Home > SQL Server Tips > Database Management and Administration
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE MANAGEMENT AND ADMINISTRATION

Password cracking tools for SQL Server


Kevin Beaver, CISSP
05.09.2006
Rating: -4.69- (out of 5)


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


If you're performing a penetration test or higher-level security audit of your SQL Server systems, there's one test you must not miss. It seems obvious, but many people overlook it: SQL Server password testing. Given the inherent weaknesses compared with more secure Windows authentication, you should especially test for password flaws if you're using SQL Server authentication in mixed mode. Password testing will help you determine how easily others can break into your database and help you ensure SQL Server users are being responsible with their accounts.

To get things rolling, you need to determine which systems are available to test. You may know your environment like the back of your hand, but it doesn't hurt to ferret out servers you may have forgotten or those someone else connected to the network. You should at least run SQLPing2, but I highly recommend SQLRecon to find SQL instances you might not otherwise be able to discover. Both tools are downloadable at Chip Andrews' site.

In the figure below, you'll see how SQLPing2 discovered various SQL Server systems and determined that one of the systems has a blank sa password. This is SQL Server password cracking at the most basic level.

[IMAGE]
SQLPing2: Discovering a blank sa password

SQLPing2 can also run dictionary attacks against SQL Server. This is as simple as loading your own user account and password lists, as shown in the following figure.

[IMAGE]
SQLPing2: Running dictionary attacks

Another free tool, Cain and Abel, allows you to dump and crack SQL Server hashes, as shown in the following figure:

[IMAGE]
Cain and Abel: Dumping and cracking SQL Server hashes

On the commercial side, NGSSoftware's NGSSQLCrack product is a good tool for performing both dictio...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Database Management and Administration
Using traces in SQL Server Profiler
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
How SQL Server 2008 components impact SharePoint implementations
Troubleshooting Distributed Transaction Coordinator errors in SQL Server
Achieving high availability and disaster recovery with SharePoint databases
Clearing the Windows page file and its effect on server performance
Deploying a SQL Server virtual appliance for Microsoft Hyper-V
How to create SQL Server virtual appliances for Hyper-V

SQL Server Security
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
SQL Server security made simple and sensible
Blog: Protect your databases from the internal threat
Setting up SQL Server Service Broker for secure communication
The keys to database backup protection for SQL Server
Understanding transparent data encryption in SQL Server 2008
The fine line between not encrypting your databases and breach notification
Securing SQL Server with access control, login monitoring and DDL triggers

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
data corruption  (SearchSQLServer.com)
data hiding  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


nary and brute-force password cracking. There's also Application Security's AppDetective, which comes with built-in password cracking functionality as shown in the following figure:

[IMAGE]
AppDetective: Built-in password cracking

It's important to remember that SQL Server password cracking shouldn't be taken lightly. Treat this as a formal penetration test or audit and get the approval of management and carefully plan things out. You don't want to create trouble. Speaking of that, there are a few downsides to password cracking to keep in mind:

Finally -- and perhaps most importantly -- make sure you follow up on your findings. That may mean sharing your findings with upper management, tweaking your password policy and making others aware that they need to be more security conscious.

About the author: Kevin Beaver is an independent information security consultant, author and speaker with Atlanta-based Principle Logic, LLC. He has more than 18 years of experience in IT and specializes in performing information security assessments. Kevin has written five books including "Hacking For Dummies" (Wiley), "Hacking Wireless Networks For Dummies," and "The Practical Guide to HIPAA Privacy and Security Compliance" (Auerbach). He can be reached at kbeaver@principlelogic.com.

More information from SearchSQLServer.com

  • Tip: Ten hacker tricks to exploit SQL Server systems
  • Tip: Tool to configure and lock down SQL Server services
  • Tip: Using Metasploit for real-world security tests

  • Rate this Tip
    To rate tips, you must be a member of SearchSQLServer.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    SQL Server Development - .NET, C#, T-SQL, Visual Basic
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts