This chapter is part of the Security Operations Guide for Exchange 2000 Server.
When you increase the security of any network, you should not only examine the security of the computers themselves, but also the data that travels between them. As with any system, the best approach is to look at the functionality that is available, and examine what you require, considering the risk posed by each piece of functionality.
In this guide we are assuming that you require the ability to a) send and receive e-mail over the Internet and b) access Exchange over the Internet using Outlook Web Access. If you do not require these pieces of functionality, you will be able to lock down your systems more. On the other hand, if you require POP3 and IMAP4 functionality, you will need to open up the environment to accommodate them.
The front-end/back-end environment suggested in this guide will allow you to send mail to and from the Internet, and to offer Exchange access over the Internet. This chapter looks at how to secure that communication, and also examines securing communication at the client.
Note: It is possible to access Outlook over the Internet by using an Exchange remote procedure call (RPC) application filter provided with ISA Server. This method of accessing Exchange is not covered in this guide. See the "Configuring and Securing Microsoft Exchange 2000 Server and Clients" white paper and the Microsoft Exchange 2000 Server Hosting Series (Microsoft Press, ISBN: 0-7356-1829-1 and 0-7356-1830-5) listed in the "More Information" section.
On This Page
Securing Communications in Outlook 2002There are a number of measures you can take in Outlook 2002 to increase the security of your communications. These include:
Encrypting the MAPI Connection from Outlook 2002 to Exchange ServerWindows 2000 has a built-in security feature allowing for 128-bit encryption of RPC communication. MAPI connections take place over RPC and so you can take advantage of this feature to increase the security of your connection from the Outlook 2002 client to the Exchange server. To enable RPC encryption of the of the MAPI connection from Outlook 2002 to Exchange server
Note: You can also specify this setting when setting up User profiles in Outlook 2002. RPC encryption only encrypts the data from the MAPI client to the Exchange server. It does not encrypt the messages themselves. Signing and Encrypting MessagesOutlook 2002 has the ability to sign and encrypt messages for delivery to internal or external recipients. For this encryption you will need a certificate. If you want to deliver signed and/or encrypted e-mail to Internet recipients, you will need to use a recognized certificate (known as a Digital ID) from a third-party vendor. Once you have a certificate installed on the client, you can begin to send signed and encrypted messages using S/MIME. You can only send encrypted mail to other users if you have access to their public key. This is achieved by having the other user send you a signed message and then adding that user to your contacts. You will now have their public key available. Note: For more information on signing and encrypting messages see Knowledge Base article 286159, "Encryption and Message Security Overview." Key Management Service If you wish to routinely send signed and encrypted messages between users inside your Exchange organization, you should consider using the Key Management service provided with Exchange 2000. This service uses Windows 2000 Certificate Services and provides access to public keys with secure, centralized access to private keys. This gives clients seamless access to signed and encrypted messages, allowing them to send these messages to any other security-enabled recipient in the global address list (GAL). Note: If you use Key Management Server with a certificate authority (CA) that is subordinate to a third-party CA, you can integrate your Key Management service with others on the Internet. Securing OWA CommunicationsUpon initial review, communications with OWA are very simple. Web browsers communicate with OWA servers for e-mail. This occurs over port 80, or port 443 if the communication is secure. However, that is not the end of the story. While clients do connect to front-end servers over port 80 or port 443, those front-end servers then need to communicate with domain controllers in their domain to authenticate the users. They also need to communicate with Exchange back-end servers to actually access information from the appropriate mailbox or public folder. OWA front-end servers can be secured by placing them inside a perimeter network (also known as DMZ), with the back-end server inside the inner firewall. However, in order for this to work, a large number of ports have to be opened on the inner firewall. Using ISA Server to Secure OWATo minimize the ports you need to open on the inner firewall, you can use an application layer firewall, such as Microsoft Internet Security and Acceleration (ISA) Server. ISA Server allows you to position both your SMTP server and your OWA front-end server behind the firewall. Using Server Publishing and Web Publishing rules, ISA Server will impersonate internal servers to the outside world without placing those servers in the DMZ. Note: For a list of the ports used for communication between front-end and other servers, see the "Exchange 2000 Front-end and Back-end Topology" white paper listed in the "More Information" section at the end of the chapter. The diagram shows an ISA Server publishing an OWA Server to OWA clients on the Internet: Note: In this configuration, external DNS entries for the front-end OWA server will need to refer to the IP address published on the ISA Server, not the address of the OWA front-end server. Note: If you are not able to change your existing two firewall infrastructure to accommodate ISA Server, you can place ISA Server inside your current inner firewall and pass TCP port 443 through to the ISA server. Firewalls will help protect your servers from being attacked. However, you also need to protect the data that is traveling to and from your servers. When Web browser clients on the Internet access Exchange via OWA using HTTP, the following occurs:
As part of the configuration of IIS to support OWA you need to enable basic authentication. Integrated Windows authentication will not work as the only protocol being used for communication is either HTTP or HTTPS, and you must not use anonymous access as this will open up your e-mail environment to anyone on the Internet. Basic authentication means that over an HTTP connection, passwords and e-mail will pass over the Internet in an unencrypted form. If no additional encryption methods are used, these packets continue to travel unencrypted between the ISA Server and the OWA front-end server in clear text. After OWA performs authentication, the same unencrypted information, including passwords, will be sent over HTTP between OWA front-end server and back-end server. To prevent this from happening, it is vital to encrypt the user credentials along the entire path between the Web browser and the back-end Exchange server. This can be accomplished by:
We will examine each of these in turn. Securing Communication Between Web Browsers and ISA ServersTo encrypt the data between Web browsers and an ISA Server using SSL, you need to install an SSL certificate on the ISA Server and the appropriate SSL listener. Your certificate should be issued by a globally trusted CA because it will be used by external Web clients that may not be part of your organization's infrastructure. Configuring ISA Server to Support SSL Communications ISA Server can be configured in a number of ways to accept SSL requests from Web browsers. It can:
Note: Decrypting and re-encrypting SSL communication requires ISA Server SP1 or later. The below procedures will not work correctly unless ISA Server SP1 or later is installed. Of these three methods, the most secure is to decrypt the packets and re-encrypt them again, because this allows the ISA Server to inspect the data for vulnerabilities. It also protects the data from attack inside the ISA Server. Note: The laws of certain countries may prevent you from decrypting data and inspecting it at an intermediary point in your network. You should check the legal implications of this solution before adopting it. Note: To improve the performance and reduce the overhead of SSL, you should consider using SSL accelerator network adapters. To successfully encrypt the data, you should ensure the following:
ISA Server uses a Web Publishing Rule to make the OWA server available to Internet clients. However, before creating the Web Publishing Rule, Web Publishing itself must be prepared on the ISA Server. This is done by configuring Incoming Web Requests and Outgoing Web Requests. Note: Before completing the following procedure, you need to import your external certificate. To configure Incoming Web Requests
To configure Outgoing Web Requests Note: Performing the following procedure will prevent users on the internal network from using the ISA Server as a proxy server to access web sites on the Internet. This procedure is not needed to make OWA available through ISA but is included for additional security.
You are now in a position to configure Web Publishing to support OWA. To configure Web Publishing for OWA
Note: You will also need to configure appropriate rules for port 80 and port 443 on the appropriate routers and firewalls in your environment. Note: For more information on publishing SMTP and OWA using ISA Server, see Knowledge Base articles 290113, "How to Publish Outlook Web Access Behind ISA Server" and 308599, "How to Configure ISA Server to Publish Exchange for OWA." Encryption between ISA Servers and OWA Front-End ServersTo encrypt HTTP traffic between ISA Server and an OWA front-end server, you need to install an SSL certificate on the OWA front-end servers. ISA Servers and OWA front-end servers are part of your organization's infrastructure, so the OWA front-end certificate can be issued by your organization's internal root CA or any of its trusted subordinate certificate authorities. To request a certificate for your OWA front-end server Note: The following steps assume you have a CA installed in your environment.
Note: The common name is the FQDN of the OWA server because this matches the OWA Publishing Rule Property on the ISA Server. ISA Server checks the validity of the OWA Web certificate, along with the certificate trust chain verification and certificate expiration date, during the publishing process. Encryption between OWA Front-End Servers and Back-End Exchange ServersYou cannot encrypt data between OWA front-end servers and back-end servers using SSL. However, as both front-end and back-end servers are running Windows 2000, you can use IPSec for this encryption. IPSec has the benefit of being significantly faster than SSL. Note: To improve performance and reduce the overhead of IPSec, you should consider using specialized network adapters which offload IPSec processing to the adapter. IPSec allows you to control which protocols are accepted by the network adapter, blocking or allowing certain ports, and encrypting others. In the case of front-end/back-end server communication, you need to ensure that port 80 is encrypted. IPSec is controlled through IPSec policies which are defined within Windows 2000 Group Policy. Table 4.1 IPSec Policy Settings
It is possible to block inbound requests from the front-end server, because the front-end server initiates all communications with the back-end server. Blocking these requests will avoid accidental transmission of user credentials in clear text and minimize the risk of buffer overflow attacks on the front-end server. Creating the OWA Front-End Server IPSec Policy The first policy to create and configure is for the OWA front-end server. To create the outbound TCP 80 filter
To create the inbound TCP 80 filter
To create the block action to be used with the inbound TCP port 80 filter
To create the encrypt action to be used with the outbound TCP port 80 filter
To create the IP Security policy, apply the filters and specify the actions
To apply the outbound filter to Group Policy
To apply , Group Policy to the OWA front-end server
Creating the Back-End Server IPSec Policy The policy on the back-end server encrypts inbound port 80 traffic. To create the Inbound TCP 80 filter
To create the IP Security policy, apply the filters and specify the actions
To apply the inbound filter to Group Policy
To apply , Group Policy to the back-end server
Note: You may wish to also apply IPSec settings at each local computer. This ensures that IPSec will still be used, even in the event of a problem accessing Group Policy from the domain controller. Monitoring IP Security connections After you have configured IPSec, it is a good idea to verify its functionality by auditing IPSec-related events and by using the IP Security Monitor tool. To start and configure the IP Security Monitor
To verify successful configuration of IPSec
Note: For more information on IPSec, see the "Step-by-Step Guide to Internet Protocol Security (IPSec)", see the "More information" section for details. Securing SMTP CommunicationsEvery Exchange back-end server will run SMTP, as it is responsible for mail transport between Exchange servers and across the Internet. In this section we will look at how to provide SMTP communications to your network while minimizing the risk of attack to your organization. Using ISA Server to Secure SMTPAs with your OWA front-end server, it is possible to minimize the number of ports open on your inner firewall by using the capabilities of ISA Server. In this case you can use the ISA Server Publishing feature to publish your SMTP server, positioning the Exchange server itself behind the firewall. ISA Server will impersonate the internal SMTP server without you having to place Exchange inside the perimeter network. Note: In this configuration, external DNS entries for SMTP will need to refer to the IP address published on the ISA Server, not the address of the SMTP server. Note: If you are not able to change your existing two firewall infrastructure to accommodate ISA Server, you can place ISA Server inside your current inner firewall and pass TCP port 25 through to the ISA Server. Note: You cannot publish outgoing SMTP on an ISA Server if the server is an active member of an ISA array. Using Content Filtering with the Message Screener Content filtering enables the SMTP filter, which accepts incoming traffic on port 25, inspects it, and passes it on only if the rules allow it. The filter can accept or reject messages based on the username or domain name of the sender, attachments or keywords and even provide some protection against buffer overflow attacks. However, for the SMTP filter to have full functionality, you should also install the Message Screener. Message Screener is a separate utility supplied with ISA Server. It can be installed in a number of different configurations; however the most secure implementation of the message screener is to place it on a server running IIS with an SMTP virtual server. This virtual server would then communicate with Exchange in order to send and receive e-mail. This has the advantage of further isolating your Exchange server from the edge of the internal network. Note: For information on deploying Message Screener, see the Knowledge Base article 315132, "HOW TO: Configure SMTP Message Screener in ISA Server 2000." For more details, see the "More Information" section at the end of this chapter. Additional Measures to Secure SMTPPublishing SMTP through ISA Server and using the SMTP filter with Message Screener will help you protect your Exchange SMTP servers. However, there are some other actions you should consider. Using a Separate SMTP Gateway As part of your defense-in-depth strategy, you may wish to protect your Exchange back-end servers from SMTP attack by using a separate SMTP gateway inside your network. All incoming mail from the Internet would encounter this server before any of the Exchange servers. This server would not be part of any Windows 2000 domain and would therefore not be running Exchange. The advantage of this is that an external attacker trying to use SMTP to attack Exchange servers would encounter the separate SMTP server first. Taking down the SMTP server may shut down your ability to send e-mail over the Internet, but you will still be able to send internal e-mail. You could also run anti-virus software on this server. Preventing Mail Relay Mail relaying is the process of using an interim server to accept and then resend mail to recipients on another server. It can be used for legitimate means. For example, roaming users may wish to connect to your SMTP server in order to send mail when they are outside your network. If you choose to allow limited relaying from outside your network, you should be very sure to regulate what is done, and ensure authentication from those users who need to take advantage of it (authentication is enabled by default). If you open up SMTP relaying too widely, you will soon find very large amounts of mail passing through your SMTP server, which will affect the performance of your environment and add to the amount of unsolicited mail on the Internet. You may also find that you become listed on spam block-lists which may prevent your legitimate mail getting to its destination. Even authorized mail relaying can cause problems for your mail server. Attackers use the fact that your mail server accepts authenticated requests to attempt a dictionary attack against the server. A good approach to protecting your server is to disable relaying as much as possible. External users do not need to connect directly to your SMTP server in order to send mail, as they can use OWA. To protect your Exchange Servers against mail relay, you consider the following measures on your internal SMTP virtual servers:
You will need to open up this configuration a little on SMTP Servers at the gateway. The exact settings will depend on your message flow and the configuration of your ISP's mail server. However, the best way to increase your security is to lock down your systems completely to prevent relaying and then finding the minimum settings required to allow e-mail to flow successfully. Note: SMTP for authenticated computers is required if you are going to support IMAP and POP3. If you choose to enable these protocols, you should consider creating a separate virtual server for this traffic and using SSL to protect the virtual server. Note: For more information on preventing unwanted SMTP relaying in Exchange, see the TechNet article, "Controlling SMTP Relaying in Microsoft Exchange" and Knowledge Base article 319356, "HOW TO: Prevent Unsolicited Commercial E-Mail in Exchange 2000." SummaryYou cannot consider Exchange to be as secure as possible unless you take measures to secure its data flow. If you are allowing OWA over the Internet, this is particularly important, as without security in place, passwords are passed as clear text over the Internet and inside your internal network. Use the guidelines in this chapter to increase the security of your Exchange communications. More InformationConfiguring and Securing Microsoft Exchange 2000 Server and Clients: http://www.microsoft.com/technet/isa/2000/deploy/isaexch.mspx Microsoft Exchange 2000 Server Hosting Series: From Microsoft Press Volume 1: Planning (ISBN: 0-7356-1829-1) and Volume 2: Deployment (ISBN: 0-7356-1830-5) Details on signing and encrypting messages: http://support.microsoft.com/default.aspx?scid=kb;en-us;286159&sd=tech For a detailed discussion of front-end/back-end server environments in Exchange: Details on publishing SMTP and OWA using ISA Server: http://support.microsoft.com/default.aspx?scid=kb;en-us;290113sd=tech and http://support.microsoft.com/default.aspx?scid=kb;en-us;308599sd=tech Step-by-Step Guide to Internet Protocol Security (IPSec) is available at: http://www.microsoft.com/technet/prodtechnol/windows2000serv/howto/ispstep.mspx Information on controlling SMTP relaying with Microsoft Exchange: http://www.microsoft.com/technet/security/prodtech/exchangeserver/excrelay.mspx Details on setting up and configuring an SMTP virtual server: http://support.microsoft.com/default.aspx?scid=kb;en-us;308161sd=tech Details on preventing unsolicited mail using Outlook 2002: http://office.microsoft.com/assistance/2002/articles/OlManageJunkAndAdultMail.aspx Details on preventing unsolicited commercial e-mail: http://support.microsoft.com/default.aspx?scid=kb;en-us;319356sd=tech | In This Article
|