Microsoft Windows Security Resource Kit

Microsoft Baseline Security Analyzer

The Microsoft Baseline Security Analyzer (MBSA) is a tool that can determine which critical updates are installed on a target computer, as well as which security updates are required. MBSA allows you to target the current computer, a remote computer, a specified list of computers, a range of IP addresses, or all computers in a designated domain. The tool will scan computers for an update status based on a downloaded XML catalog file and will report the status in output files or to the screen.

MBSA allows scanning for common security misconfiguration errors on target computers. MBSA reports only on the current status of the computer and does not provide you with any distribution functionality. Once a computer is analyzed, other tools must be used to deploy the missing service packs and updates. Otherwise, the missing service packs and updates must be manually downloaded and installed.

To run MBSA, a user must be a local administrator on the target computer. This prevents attackers from using MBSA to scan a remote computer to determine potential weaknesses.

MBSA version 1.1 scans for the latest service packs and security updates for the following products:

What About HfNetChk?

MBSA version 1.1 includes the same functionality provided by Shavlik s hotfix network checker (HfNetChk) tool, meaning that Microsoft no longer provides updates to the HfNetChk tool. You can still download and use the HfNetChk tool from the Shavlik Web site to scan for security updates. The functionality is the same as MBSA s command-line version. Because Microsoft no longer provides updates to the HfNetChk tool, we recommend you visit the Shavlik Web site for updates.

In addition, Shavlik produces a full-feature version of the tool, known as HfNetChkpro, which provides a GUI interface and allows the distribution and installation of missing security updates after the initial scan. For more information on Shavlik tools for security updates, see http://www.shavlik.com.

Scanning for Updates in the GUI Mode

By default, MBSA runs in a GUI mode that allows you to define scanning options and view the results of the security scan in the MBSA window. The security update scan performed by MBSA only scans and reports on updates designated as critical security updates by the Windows Update site.

If you enable the option to use an SUS server, MBSA does not download the updates from the SUS server. Instead, MBSA will report only updates approved at the SUS server in its XML report for the target computer.

When scanning for security updates, perform the following procedure:

  1. Open MBSA.

  2. Choose whether to scan a single computer or multiple computers.

  3. To scan for security updates only, designate your target computer or computers as shown in Figure 23-5, enable the Check For Security Updates option, and click Start Scan.

  4. When the scan is complete, you can view an XML file for each computer. For each computer, the output will report any missing security updates for Windows, IIS, Windows Media Player, Exchange Server, and SQL Server, as well as give a security assessment rating for the target computer.

    Figure 23-5. Scanning for security updates with MBSA

Security scan reports are stored in the %userprofile%\SecurityScans folder at the computer where MBSA is executed. The reports are in an XML format and are best viewed in the MBSA interface.

For details on using MBSA for performing security audits, see Chapter 24, Using Security Assessment Tools.

Scanning for Updates with the Command-Line Version of MBSA

MBSA includes a command-line version executable, Mbsacli.exe, which can perform scans for security updates and service packs. Version 1.1 of the Mbsacli.exe utility can perform the same tests performed by Shavlik s HfNetChk.exe utility.

When you execute Mbsacli.exe with the /hf switch, indicating an HfNetChk -style scan, all security-related updates are included in the scan and the resulting reports. The results of the Mbsacli.exe scan are displayed in the command window, rather than in XML files.

When scanning for security updates with the Mbsacli.exe /hf command, you can use the following parameters:

Категории