Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


May 2002

IIS Lockdown

RSS
Subscribe to Windows Web Solutions | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Remove excess fat from your Web server

Installing Windows 2000 or Windows NT 4.0 (with the Option Pack) renders IIS operational under its default security settings. Some of these default settings can result in security exposures, as the CodeRed Worm showed.

Microsoft has created two tools that let you better control IIS configuration and operation: IIS Lockdown and URLScan (which is included in IIS Lockdown 2.1). IIS Lockdown 2.1 offers the following capabilities:

  • disables or removes unnecessary IIS services and components
  • secures system files and Web content directories beyond the default settings
  • installs URLScan to filter HTTP requests

I show you how to use IIS Lockdown 2.1 to perform the first two bulleted items. Note that the information I present here is for IIS Lockdown 2.1 specifically. Previous versions of the utility operate quite differently.

IIS Lockdown Caveats
IIS Lockdown alters the behavior of IIS, so the tool is likely to conflict with applications that depend on certain IIS features. For example, you must give special consideration to installing IIS Lockdown and URLScan on servers that support Microsoft Exchange 2000 Server, Exchange Server 5.5, or Microsoft SharePoint Portal Server (formerly code-named Tahoe). Two Microsoft articles outline difficulties you might encounter and how to work around them: "XADM: Known Issues and Fine Tuning When You Use the IIS Lockdown Wizard in an Exchange 2000 Environment" (http://support.microsoft.com/default.aspx?scid=kb;en-us;q309677) and "SPS: IIS Lockdown Tool Affects SharePoint Portal Server" (http://support.microsoft.com/default.aspx?scid=kb;en-us;q309675). You should also search the Microsoft Knowledge Base before implementing either IIS Lockdown or URLScan to make sure you have the most up-to-date information about any problems pertaining to your type of installation. After you've read the latest Microsoft articles and considered their suggestions, install IIS Lockdown on a test server and perform rigorous testing to verify that features required by your applications, both proprietary and commercial, are still available and functioning. Finally, you should perform a full system backup to speed system recovery in the event that testing results in an extreme loss of functionality.

Installation
You can obtain IIS Lockdown 2.1 from the IIS Lockdown Tool (version 2.1) download site (http://www.microsoft.com/downloads/release.asp?releaseid=33961). After you download iislockd.exe to your system, you can double-click the filename in Windows Explorer or click Start, Run and type

iislockd

to extract the files to a temporary directory and launch the IIS Lockdown Wizard. However, if you have multiple servers to protect, extracting the files to a permanent working directory as I outline in the steps below is best.

You should be aware that the IIS Lockdown self-extracting executable and the standalone executable inside the self-extracting executable have the same name. This duplicate naming causes problems if you try to download the self-extracting executable and unpack it into the same directory. Avoid these problems by performing these installation steps:

  1. Download iislockd.exe to a temporary directory.
  2. From the temporary directory, open a command prompt and execute the command
  3. iislockd.exe /q /c
    /t:c:\IISLockdown

    to extract the IIS Lockdown files. The /q switch places the installation in quiet mode, and the /c switch instructs IIS Lockdown to perform only the file extraction and works in conjunction with the /t switch, which specifies the temporary working directory to which you would like to extract the files. Enclose the directory name in double quotes if it contains spaces (e.g., /t:"c:\IIS Lockdown"). Web Table 1 lists the files that iislockd.exe places into the specified directory. (You can access Web Table 1 at http://www.windowswebsolutions.com, InstantDoc ID 24480.)Notice that iislockd.exe contains the files for URLScan, which I don't cover in detail in this article. IIS Lockdown doesn't install any menu or desktop shortcuts, so you must launch the tool from Windows Explorer; Start, Run; or a command line.

Operation
IIS Lockdown operation is fairly straightforward. When you launch iislockd.exe, the Internet Information Services Lockdown Wizard steps you through the lockdown process. After an opening dialog box and an End User License Agreement (EULA) dialog box, the wizard prompts you to select the type of server you want to secure, as Figure 1 shows. Select the server template that most closely matches your server configuration. For this article, I used the Static Web server template. Select the View template settings check box to see a series of dialog boxes that present configuration options for your server type. If the check box isn't selected, the wizard will bypass these dialog boxes and take you straight to the URLScan installation.

Click Next to see the Internet Services dialog box (which Web Figure 1 shows)—the first of the actual IIS Lockdown configuration pages. IIS Lockdown can disable or remove the four IIS services: HTTP, FTP, SMTP, and Network News Transport Protocol (NNTP). How do you know which services you require? The server template you chose gives you some hints, and personal experience and lab testing your environment and applications are also helpful. The IIS service options in the Internet Services dialog box are in one of three states:

  • Enabled—The option is selected, and the check box has a checkmark. Clearing the check box will disable the service.
  • Enabled, disabling recommended—The option isn't selected, and the check box doesn't have a checkmark. Leaving the check box cleared will disable the service.
  • Disabled, not selectable—If an option is shaded and its check box has no checkmark, you can't alter the service because the service isn't installed or the server template you've chosen requires the service.
   Previous  [1]  2  3  Next 


Reader Comments
In-depth article, but it did not address the major issues:

Why should I use IIS Lockdown?
What specific vulnerabilities are there that IIS lockdown solves?
What environments/aplications would best benefit from IIS Lockdown?
How would a small business (2-10 web servers)benefit from IIS Lockdown?

Thanks.

Phil Wyatt August 12, 2003


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

More fun TechEd 2005 Resources

Kevin points out some more TechEd resources ...

What service packs and fixes are available?

...


Security Whitepapers Protecting (You and) Your Data with Exchange Server 2007

Extended Validation SSL Certificates

Unauthorized applications: Taking back control

Related Events Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Microsoft Exchange & Windows Connections event returns to Las Vegas Nov 10 - 13
Connections returns to Las Vegas for this exciting event where each attendee will receive SQL Server 2008 standard with 1 CAL. Co-located with Microsoft ASP.NET, SQL Server, and SharePoint Connections with over 250 in-depth sessions.

Free Online Event! Virtualization:Get the Facts!
Register now and attend this free, live in-depth online conference on November 13 and 20, 2008, produced by Windows IT Pro. All registrants are eligible to receive a complimentary one-year digital subscription to Windows IT Pro (a $49.95 value)!

Check Out Hyper-V Video on ITTV
Watch Karen Forster's interview on Hyper-V's performance on ITTV.net.

Ease Your Scripting Pains with the Flexibility of PowerShell!
Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer!

Latest Advancements in SSL Technology
There are a variety of different kinds of SSL to explore to ensure customer data is kept confidential and secure. In this paper, we will discuss some of these SSL advances to help you decide which would be best for your organization.

PASS Community Summit 2008 in Seattle on Nov 18-21
The don’t-miss event for Microsoft SQL Server Professionals. Register now and you’ll enjoy top-notch Microsoft and Community speakers and more.



Solving PST Management Problems
In this white paper, read about the top PST issues and how to administer local/network PST Files.

Get Protected -- Data Protection Manager 2007
Protect your virtualized environment with Data Protection Manager

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

Maximize Your SharePoint Investment: Get Your Data Moving
Watch this web seminar now to learn how to maximize your SharePoint investment! Join us as we take a look at the complex business of securing, accessing and managing vast amounts of information in a global network and various ways to get your data moving.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing