Re: Is there any way to prevent hacker trying to guess sa password?

From: Russell Stevens (rustyprogrammer_at_online.nospam)
Date: 10/13/05


Date: Wed, 12 Oct 2005 23:29:19 -0400

Rob,

  I have been down this road - you can use SQL Profiler to record
unsuccessful login attempts. You can include the login (such as sa, admin,
root, are the common ones they try). When you see a break in attempt you can
run netstat or netstat -n. Look for entries that are for ms-sql and that say
"Time Wait". The hackers will be obvious. You can then block that IP (use a
firewall or local security policy). You may need to do this several times
per day as new drones are coming online all the time searching for SQL
servers. They will never be able to guess a strong sa password but they can
use up a lot of bandwidth trying. Microsoft refuses to fix this in SQL
2000 - you cannot rename the sa account or delete it or stop continuous
login attempts.

  Microsoft has fixed the problem in SQL 2005 - due to be released next
month. It allows you to use the OS features - ie - you can allow say 5
unsuccessful logins then block them for 30 minutes (or whatever you
specify). This totally fixes the bandwidth issue for nerds trying to login
as sa, root, admin, etc. Of course if someone is trying to login with a
login that you actually use, you can end up locking yourself out - but you
shouldn't be using the sa login for anything anyway.

Russ Stevens



Relevant Pages

  • Re: Registry
    ... If you use FTS you need to add a login for ... there's nothing stopping a domain admin adding ... Jasper Smith (SQL Server MVP) ...
    (microsoft.public.sqlserver.security)
  • Re: Permission question - another one
    ... If I add an Sql Login it does add the TRAVAC\ in front of the names, ... seems to be users that were setup to use SQL Server Authentication. ... RAPTOR is the Server that has SQL Server running on it. ... > " I could think I am taking permissions away from someone, ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL 2k5 SP2 Mirroring - SQL in Mixed mode.
    ... US\sqlservices (old SQLservice account) still member of built-in local admin ... Login: US\sqlservices ... How can I transfer the SQL logins to ... Here is SP_help_revlogin results from the Principal Server (NYSQL-3) ...
    (microsoft.public.sqlserver.clustering)
  • Re: Renamed Windows login not found in SQL Server 2000
    ... It's almost like SQL tuck some knowledge away in an area ... of memory that only gets released on Windows stop. ... > I am running SQL Server 2000 SP2 with Windows ... > login gets corrupted) I am unable to add the new login to ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Server on XP Home Network
    ... The sa account is the system administrator "God" account witihin SQL ... This account is a SQL-Server login. ... You might be able to use Enterprise Manager to go in and create a new SQL ... Select the "SQL Server Authentication" ...
    (microsoft.public.sqlserver.setup)