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!

If the Remove unselected services check box is selected, IIS Lockdown will remove the services from the server, not just disable them. Removing unused services is a good idea on servers whose role doesn't change often because if the services are gone, no one can accidentally activate them later.

Next, the wizard displays the Script Maps dialog box, which Figure 2 shows. Script maps associate a specific file extension with the Internet Server API (ISAPI) executable that interprets the file's contents (e.g., .asp maps to asp.dll). IIS Lockdown disables specified file types by altering the script map to point to a DLL that returns a File not found message when a user attempts to execute a file of that type. Clear a file type's check box to disable that file type.

Figure 3 shows the final IIS Lockdown dialog box, Additional Security, which lets you remove unnecessary directories and secure your file system from unauthorized access. IIS is installed with a variety of virtual directories that are intended for development and training purposes but aren't required in a production environment. IIS Lockdown removes the virtual directories you select but leaves intact the data those directories contain.

By default, IIS restricts anonymous access to Web content directories. But you should place another level of security on your system utilities (e.g., cmd.exe) to prevent unauthorized access in the event of a system security failure. If you select the Running system utilities (for example, Cmd.exe, Tftp.exe) check box, IIS Lockdown modifies the access control entry (ACE) for all executable files in \%windir% and its subdirectories, explicitly denying execute rights for the local groups Web Anonymous Users and Web Applications. If you select the Writing to content directories check box, IIS Lock-down also secures all Web content directories, including files and folders on remote computers, by setting the ACE to deny write rights for the local groups Web Anonymous Users and Web Applications.

Web Distributed Authoring and Versioning (WebDAV) allows for remote Web content creation and management. Do you use this technology? If not, select the Disable Web Distributed Authoring and Versioning (WebDAV) check box. IIS Lockdown will set an ACE on httpext.dll, the WebDAV executable, to prevent it from being loaded into the inetinfo.exe process and to effectively disable the WebDAV functionality.

IIS Lockdown next asks whether you want to install URLScan. If you'd like to install a filter that prevents IIS from processing certain types of URLs that crackers commonly use as attack vectors, you can use URLScan as the front door (i.e., the filter). A future article in this newsletter will cover URLScan in depth. In the meantime, you can learn more about it at http://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/tools/urlscan.asp.

Before starting the modification process, IIS Lockdown displays a list of actions it will perform. You can stop IIS Lockdown or click Next to begin the lockdown process. After the lockdown begins, you can't stop it.

Depending on the changes IIS Lockdown makes, the tool might create in the \%windir%\system32\inetsrv folder several of the log and IIS metabase—backup files that Web Table 2 shows. I can't stress enough that you need to safeguard the IIS Lockdown log and metabase-backup files. Unless you want to reverse IIS Lockdown's actions manually or reinstall the OS, you need the log files to undo the IIS Lockdown operation. Copy the files to a disk or store them on a separate server in a directory associated with the modified server.

If you run IIS Lockdown on a production server, be sure to do so during scheduled downtime. IIS Lockdown stops the server's Web services when the tool starts applying changes and you don't want to inconvenience users more than necessary.

Undo
If you attempt to run IIS Lockdown a second time, the only option that's available is to undo the previous operation. If you can find the oblt-log.log file, IIS Lockdown can perform an undo. If you want to apply a new IIS Lockdown configuration, first you must undo the previous operation, then restart IIS Lockdown and continue with the new configuration. If you chose to remove unnecessary IIS services during lockdown, you'll need to use the Control Panel Add/Remove Programs applet to reinstall them. Similarly, if you chose to install URLScan during lockdown, you must use the Add/Remove Programs applet to uninstall it.

   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
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 24, 2008

An often irreverent look at some of the week's other news, including a Vista Capable dismissal request, Zune price reductions, Morrow musings, Novell and Microsoft sitting in a tree ... two years later, Yahoo!, IE 6 on Windows Mobile, and so much more ...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Top 10 Email Security Challenges and Solutions

Introduction to Identity Lifecycle Manager "2"

Delivering Reliable and Effective Web-Based Applications

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.


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