10 steps to protect SQL Server 2000)

Source: Internet
Author: User
Tags strong password

This section describes ten things you can do to improve the security of SQL Server installation:

1. Install the latest service package

To improve server security, the most effective method is to upgrade to SQL Server 2000 Service Pack 3A (sp3a ). To download sp3a, visit the SQL Server 2000 sp3a page.

In addition, you should install all released security updates. To subscribe to notifications of new security updates, visitProductSecurity notification page.

2. UseMicrosoftBaseline Security Analyzer (mbsa) to evaluate server security

Mbsa is a tool that scans insecure configurations of multiple Microsoft products, including SQL Server and Microsoft SQL Server 2000 Desktop Engine (MSDE 2000 ). It can run locally or through the network. This tool detects the installation of SQL Server for the following issues:

Too many SysAdmin fixed server role members.

Authorize a role other than SysAdmin to create a cmdexec job.

Empty or simple password.

Fragile Authentication mode.

Grant too many permissions to the Administrator group.

Incorrect access control table (ACL) in the SQL server data directory ).

Use the plain text SA password in the installation file.

Grant excessive permissions to the Guest account.

Run SQL server in a system that is also a domain controller.

The owner (everyone) group is incorrectly configured to provide access to a specific registry key.

The SQL Server service account is incorrectly configured.

No necessary service packages and security updates are installed.

3. Use Windows Authentication Mode

Whenever possible, you should require the Windows Authentication Mode for the connection to the SQL server. It protects SQL Server against most Internet tools by limiting connections between Microsoft Windows users and domain user accounts ,. In addition, your server will also benefit from Windows security enhancement mechanisms, such as stronger authentication protocols and mandatory password complexity and expiration time. In addition, credential delegation (the ability to bridge creden between multiple servers) can only be used in Windows Authentication mode. On the client, password is no longer required for Windows Authentication mode. The storage password is an application that uses standard SQL Server for logon.Program.

To install Windows Authentication Mode in Enterprise Manager of SQL Server, follow these steps:

Expand a server group.

Right-click the server and click Properties.

On the Security tab, click authentication only for Windows.

4. Isolate your server and regularly back up

Physical and logical isolation forms the foundation of SQL Server Security. The machine hosting the database should be physically protected, preferably a locked data center equipped with a flood detection and fire detection/Fire Fighting System. The database should be installed in the security area of the enterprise intranet. Do not directly connect to the Internet. Regularly back up all data and store copies outside the secure site. For a guide to the backup process and other operational best practices, see the SQL Server 2000 operation guide.

5. assign a strong SA Password

The SA account should always have a strong password, even on Servers configured to require Windows authentication. This will ensure that no blank or fragile SA will appear when the server is reconfigured as a hybrid authentication.

To assign a SA password, follow these steps:

Expand the server group and then expand the server.

Expand security and click log on.

In the details pane, right-click SA and then click Properties.

In the Password box, enter a new password.

6. Restrict SQL Server Service Permissions

SQL Server 2000 and SQL Server Agent run as Windows Services. Each service must be associated with a Windows Account and the security context is derived from this account. SQL Server allows users (sometimes other users) who log on to the SA to accessOperating SystemFeatures. These operating system calls are created by the security context of the account that owns the server process. If the server is broken, these operating system calls may be exploited to attack other resources, as long as the processes (SQL Server service account) can be accessed. Therefore, it is very important to grant only necessary permissions to the SQL Server service.

We recommend that you use the following settings:

SQL Server engine/MSSQLServer

If you have specified instances, they should be named MSSQL $ InstanceName. Run as a Windows domain user account with general user permissions. Do not run as a local system, local administrator, or domain administrator account.

SQL Server Agent service/SQLServerAgent

If you do not need this service in your environment, disable it; otherwise, run it as a Windows domain user account with general user permissions. Do not run as a local system, local administrator, or domain administrator account.

Key Points: If one of the following conditions is true, the SQL Server Agent requires local Windows administrator privileges:

The SQL Server Agent uses standard SQL Server authentication to connect to SQL Server (not recommended ).

The SQL Server Agent uses multiple servers to manage the master server (MSX) account, which uses standard SQL Server Authentication for connection.

The SQL Server Agent runsMicrosoftActiveX script or cmdexec job.

To change the account associated with the SQL Serve R service, use SQL Server Enterprise Manager. Enterprise Manager sets the appropriate permissions for the files and registry keys used by SQL Server. Do not use the "service" on the Microsoft Console (in the Control Panel) to change these accounts, as this requires manual modulation of a large number of registry keys and NTFS file system permissions and micorsoft Windows user permissions.

Changes to account information will take effect the next time the service is started. If you need to change the account associated with SQL Server and SQL Server Agent, you must use Enterprise Manager to change the two services respectively.

7. Disable the SQL server port on the firewall

By default, SQL Server monitors TCP port 1433 and UDP port 1434. Configure your firewall to filter out the packets that reach these ports. In addition, the firewall should also block other ports associated with the specified instance.

8. Use the safest File System

NTFS is the most suitable File System for SQL Server installation. It is more stable and easier to restore than the fat file system. It also includes some security options, such as file and directory ACLs and file encryption (EFS ). If NTFS is detected during installation, SQL Server sets an appropriate ACL on the registry key and file. You should not change these permissions.

Through EFS, database files are encrypted under the Account identity that runs SQL Server. Only this account can decrypt these files. If you need to change the account for running SQL Server, you must first decrypt these files under the old account and then re-encrypt them under the new account.

9. delete or protect old installation files

The SQL Server Installation File may contain plain text or simple encryption creden。 and other sensitive configuration information recorded during installation. The storage location of these log files depends on the installed SQL Server version. In SQL Server 2000, the following files may be affected: : \ Program Files \ Microsoft SQL Server \ MSSQL \ install folder, and : \ Program Files \ Microsoft SQL Server \ MSSQL $ \ Install sqlstp. Log, sqlsp. log, and setup. ISS in the folder

If the current system is upgraded from SQL Server 7.0, check the following files: setup. ISS in the % WINDIR % folder and sqlsp. log in the Windows Temp folder.

Microsoft released a free utility, killpwd, which will find and delete these passwords from your system.

10. Review the connection to SQL Server

SQL Server can record event information for System Administrator review. At least you should record failed SQL server connection attempts and regularly view this log. If possible, do not save these logs and data files on the same hard disk.

To Audit Failed Connections in Enterprise Manager of SQL Server, follow these steps:

Expand a server group.

Right-click the server and click Properties.

On the Security tab, click audit level.

To make this setting take effect, you must stop and restart the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.