Kaspersky Security for Mail Server MS KS4Exchange PoC 0922 En
Kaspersky Security for Mail Server MS KS4Exchange PoC 0922 En
0
for Microsoft Exchange
Servers
Proof of Concept guide
Ivan Panin
Kaspersky Lab
06.09.2022
Content
Introduction ...................................................................................................................................................................2
Who should use this guide? ......................................................................................................................................2
About Kaspersky Security for Microsoft Exchange Servers ......................................................................................2
Application components and their purpose ...............................................................................................................3
Application deployment models depending on your corporate Microsoft Exchange infrastructure ..........................4
Prepare an environment ...............................................................................................................................................5
Review hardware and software requirements ...........................................................................................................5
Download required files .............................................................................................................................................5
Account permissions .................................................................................................................................................5
PoC environment description ....................................................................................................................................5
Deployment and configuration ......................................................................................................................................7
Install Active Directory ...............................................................................................................................................7
Install Microsoft Exchange Server ...........................................................................................................................17
Configure Microsoft Exchange Server .....................................................................................................................27
Deploy and configure hMailServer ..........................................................................................................................34
Configure DNS ........................................................................................................................................................39
Install Kaspersky Security for Microsoft Exchange Servers ....................................................................................42
Configure Kaspersky Security for Microsoft Exchange Servers ..............................................................................53
Capability scenarios ....................................................................................................................................................57
Anti-Virus .................................................................................................................................................................57
Anti-Spam ................................................................................................................................................................62
Anti-Phishing ...........................................................................................................................................................65
Content Filtering: Attachments ................................................................................................................................68
Content Filtering: List of keywords ..........................................................................................................................71
Content Filtering: Regular expression .....................................................................................................................74
Allow and Block lists ................................................................................................................................................78
Reporting .................................................................................................................................................................80
Appendix A: POC success criteria ..............................................................................................................................82
Appendix B: Troubleshooting......................................................................................................................................83
Introduction
Who should use this guide?
This guide is built to help you quickly deploy and configure Kaspersky Security for Microsoft Exchange Servers
(KS4Exchange) for evaluation. It guides you through detailed scenarios in a Proof of Concept (PoC) environment to
help you better understand how KS4Exchange works when deployed in a corporate infrastructure. These instructions
provide an evaluation method for the most common KS4Exchange use cases.
The guide is intended for use primarily by Kaspersky’s presales engineers and technical specialists wishing to
evaluate the KS4Exchange product.
Kaspersky Security provides anti-spam protection on the level of your corporate mail server, saving your employees
the trouble of deleting unwanted mail manually.
Kaspersky Security protects mailboxes, public folders, and relayed mail traffic on a Microsoft Exchange Server
against malware, spam, and phishing. Kaspersky Security scans all e-mail traffic passing through the protected
Microsoft Exchange Server.
• Scan mail traffic, incoming and outgoing mail, as well as email messages stored on the Microsoft Exchange
Server (including shared folders) for malware. The scan processes the message and all of its attachments.
Depending upon the selected settings, the application disinfects and removes detected harmful objects and
provides users with complete information about them.
• Filter mail traffic to prevent unsolicited mail (spam) and messages with fake senders (spoofing). The Anti-
Spam component scans mail traffic for spam content. In addition, Anti-Spam allows you to create Allow and
Block lists of sender addresses and supports flexible configuration of anti-spam scanning sensitivity.
• Filter attachments in email messages by format, name, and size of attached files.
• Save backup copies of objects (an object consists of message content and its attachments) and spam
messages prior to their disinfection or deletion to enable subsequent restoration, if required, thus preventing
the risk of data losses. Configurable filters allow the user to easily locate specific stored objects.
• Notify the sender, the recipient and the system administrator about messages that contain malicious objects.
• Manage identical settings of multiple Security Servers in centralized mode by means of profiles.
• Maintain event logs, display statistics, and create regular reports on application activity. The application can
create reports automatically according to a schedule or manually.
• Configure the application settings to match the volume and type of relayed mail traffic, in particular, define
the maximum connection wait time to optimize scanning.
• Update the Kaspersky Security databases automatically or in manual mode. Updates can be downloaded
from the FTP and HTTP servers of Kaspersky, from a local / network folder that contains the latest set of
updates, or from user-defined FTP and HTTP servers.
• Re-scan old (previously scanned) messages for the presence of new viruses or other threats according to a
schedule. This task is performed as a background scan and has little effect on the mail server’s performance.
• Perform anti-virus protection on storage level based on the list of protected storages.
Refer to KS4Exchange Online Help > About Kaspersky Security 9.0 for Microsoft Exchange Servers:
https://support.kaspersky.com/KS4Exchange/9.6/en-US/22779.htm
• The Security Server is installed on the Microsoft Exchange server and is responsible for protection against
viruses and filtering of mail traffic against spam and phishing content. Security Server intercepts messages
coming to the Microsoft Exchange Server and scans them for viruses, spam and phishing content using
embedded Anti-Virus and Anti-Spam modules, respectively. If an incoming message is infected with a virus
or if a message contains indicators of spam or phishing links, the application takes the actions defined in the
settings of the corresponding module.
• The Management Console is a dedicated isolated snap-in integrated into Microsoft Management Console
3.0. You can use the Management Console to create and edit the list of protected Microsoft Exchange servers
and manage Security Servers. The Management Console can be installed both on a Microsoft Exchange
server with the Security Server and on a remote computer.
• The Kaspersky Security for Microsoft Exchange Servers administration plug-in includes libraries allowing you
to manage a protected object through Kaspersky Security Center.
Refer to KS4Exchange Online Help > Application architecture > Application components and their purpose:
https://support.kaspersky.com/KS4Exchange/9.6/en-US/26311.htm
Security Server consists of the following modules:
• Email interceptor. Intercepts messages arriving on the Microsoft Exchange server and forwards them to Anti-
Virus and Anti-Spam. This module participates in Microsoft Exchange processes using Transport Agents
technology.
• Anti-Virus. Scans messages for viruses and other malicious objects. This module comprises an anti-virus
kernel and a storage for temporary objects, which is used for scanning objects in RAM. The storage is located
in the working folder Store.
• Anti-Spam. Filters out unsolicited mail. Copies of deleted messages can be stored in Backup.
• Internal Application Management and Integrity Control Module. It is the Kaspersky Security 9.0 for Microsoft
Exchange Servers service in Microsoft Windows. The module is started automatically when the first message
passes through the Microsoft Exchange server. This service does not depend on the state of the Microsoft
Exchange Server (whether it is started or stopped), so the application can be configured when the Microsoft
Exchange Server is stopped.
• The application stores Backup data and application statistics in a special database deployed on a Microsoft
SQL Server, the so-called the Backup and statistics database.
Refer to KS4Exchange Online Help > Application architecture > Security Server modules:
https://support.kaspersky.com/KS4Exchange/9.6/en-US/26311.htm
Application deployment models depending on your corporate
Microsoft Exchange infrastructure
• The Security Server is installed on the computer hosting the stand-alone Microsoft Exchange Server.
Management Console is installed on the same computer.
• The Security Server is installed in the Database Availability Group (hereinafter also "DAG"). In this case,
the Security Server and Management Console must be installed together on each Microsoft Exchange
server belonging to the DAG.
Refer to KS4Exchange Online Help > Common application deployment procedures and scenarios > Basic
application installation models: https://support.kaspersky.com/KS4Exchange/9.6/en-US/26303.htm
This particular PoC guide describes the scenario of deploying the KS4Exchange for the stand-alone
Microsoft Exchange Server.
Prepare an environment
Review hardware and software requirements
• KS4Exchange Online Help > Hardware and software requirements:
https://support.kaspersky.com/KS4Exchange/9.6/en-US/28855.htm
• Windows Server operating system prerequisites for Exchange Server 2019 Mailbox servers and Edge
Transport servers. Refer to Exchange Server 2019 prerequisites: https://docs.microsoft.com/en-
us/exchange/plan-and-deploy/prerequisites?view=exchserver-2019
Account permissions
This deployment scenario is suitable for you if you have sufficient privileges to perform all installation operations on
your own without the assistance of other specialists and if your account has the appropriate set of access rights.
• Make sure that the account intended for deploying the application is included in the local "Administrators"
group on the Microsoft Exchange server on which you are deploying the application.
• Make sure that the account intended for deploying the application is included in the "Domain
Administrators" and "Enterprise Administrators" groups. If not, include the account in these groups. This is
needed in order for the Installation Wizard to be able to create a configuration storage and a role-based
access group in Active Directory.
Refer to KS4Exchange Online Help > Scenario of application deployment with the full set of access privileges:
https://support.kaspersky.com/KS4Exchange/9.6/en-US/89868.htm
1. Anti-Virus.
2. Anti-Spam.
3. Anti-Phishing.
4. Content Filtering: Attachments.
5. Content Filtering: List of keywords.
6. Allow and Block lists.
7. Reporting.
Anti-Virus
In this scenario we will demonstrate that KS4Exchange can detect viruses and other malware and apply different
actions to the messages containing malware in accordance with the filtering rules. An EICAR 1 file will be used as a
virus sample.
Evaluation steps:
Expected results:
KS4Exchange will detect and delete the EICAR test file in accordance with the filtering rule. A copy of email
message will be placed in Backup.
Instructions:
1. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
2. To download or create the test file, you need to disable protection on the computer used for sending test
messages.
Download the EICAR file from this link: https://www.eicar.org/?page_id=3950 or create a new text file and
add the following string to this file:
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
After completing these steps, you have successfully demonstrated that KS4Exchange can protect email
infrastructure from a malware.
Anti-Spam
In this scenario we will demonstrate that KS4Exchange can detect spam and apply different actions to the
messages containing spam in accordance with the filtering rules. A GTUBE 2(Generic Test for Unsolicited Bulk
Email) string will be used as a spam sample:
XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X
Evaluation steps:
Expected results:
KS4Exchange will detect the spam message and a copy of this message will be placed in Backup in accordance
with the filtering rule.
Instructions:
1. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
After completing these steps, you have successfully demonstrated that KS4Exchange can detect a spam
messages and apply different actions in accordance with the filtering rule.
Anti-Phishing
In this scenario we will demonstrate that KS4Exchange can detect phishing links and apply different actions to the
messages containing phishing links in accordance with the filtering rules.
Evaluation steps:
Expected results:
KS4Exchange will reject the phishing message and add message copy to the Backup.
Instructions:
1. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
https://www.kaspersky.com/te
st/aphish_h.
Evaluation steps:
Expected results:
KS4Exchange will detect the password protected archive, specific tag is added to an email subject.
Instructions:
1. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
After completing these steps, you have successfully demonstrated that KS4Exchange provide content message
filtering, it can detect specific attachments, and apply different actions to such messages in accordance with the
filtering rule.
Content Filtering: List of keywords
In this scenario we will demonstrate that KS4Exchange can recognize keywords in messages, detect and delete
such emails.
Evaluation steps:
Expected results:
Instructions:
1. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
Evaluation steps:
Expected results:
Instructions:
5. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
Date of Birth
(Date of
birth:|Birthday:)\s+(?:19
\d{2}|20[01][0-9]|2020)[-
/.](?:0[1-9]|1[012])[-
/.](?:0[1-9]|[12][0-
9]|3[01])\b
For example:
• Date of birth: 1900/12/01
• Date of birth: 2019.01.25
• Birthday: 2099-10-3
For example:
• Passport Number:
123456789
• Passport No. 123456789
(Номер
паспорта|Паспорт|паспорт
№|мой паспорт|паспортные
данные|номер
паспорта)\W*\ [0-9]{4}
[0-9]{6}
For example:
• номер паспорта: 1234
562290
• Мой паспорт 0234
558723
Evaluation steps:
Expected results:
Instructions:
1. Log in to the computer with KS4Exchange management console and another computer that to be used to
send the test message.
After completing these steps, you have successfully demonstrated that KS4Exchange provides the Allow and Block
lists capability and can apply different actions to such messages email subject.
Reporting
In this scenario we will demonstrate that KS4Exchange reporting capability. Kaspersky Security supports creation
and viewing of reports on the activity of the Anti-Virus and Anti-Spam modules. The application can generate a
separate activity report for each module covering a period of one day or longer.
Evaluation steps:
Expected results:
Instructions:
After completing these steps, you have successfully demonstrated that KS4Exchange provides reporting
capabilities.
Appendix A: POC success criteria
# Task Success criteria Notes
1.1. Review the requirements. PoC environment meets all the imposed
requirements.
3. Capability scenarios.
3.5. Allow and Block lists An email message from a “blocked” sender
was detected and the message subject was
tagged appropriately.
If you face with technical issues with Exchange Server: Open Microsoft Exchange Management Shell and run:
Test-ServiceHealth