About Mail Monitor

Mail monitor is intended to prevent incoming and outgoing email from transferring dangerous objects. It scans emails transferred via POP3 and SMTP protocols as well as those delivered via SSL-secured connections.

Starting from version 8.1.x.x, KAV SDK supports volume anti-malware database storage where malware definition files and anti-malware components used in KAV SDK are stored in a dedicated component storage database (CSD). Unlike the obsolete component storage scheme deemed flat storage, where you have all your updated files stored as separate files, volume storage allows components and anti-malware definition files be put in a single log0 file known as CSD database.

When CSD is used, components and definition files are placed to the log0 database file during update procedure performed by external API provided by Updater SDK or separate keepup2date8 command line tool used for updating and shipped with the Updater SDK.

The Updater SDK, the keepup2date8 tool, and related documentation are delivered in a separate package but can be used together with the KAV SDK.

The Mail Monitor component bundled with KAV SDK version 8.3.x.x and later requires that the CSD volume storage is used. Please make sure to enable CSD mode when updating your malware database with Updater SDK and keepup2date8 tool by setting DoNotUseStorage configuration option to 0. See documentation shipped with Updater SDK for details.

Make sure you do not use volume and flat storage simultaneously. When upgrading to KAV SDK version 8.3.x.x or later, make sure always perform fresh malware database update. Always remove existing flat database storage before starting to use Mail Monitor component shipped with KAV SDK version 8.3.x.x and later. When flat database is removed, enable the CSD storage with Mail Monitor and start the database update.

When malware database update is started, Updater API in Updater SDK or keepup2date8 creates the CSD volume storage and stores libraries used by the following components to the CSD volume log0 storage database:

Libraries used by other KAV SDK components will be stored in a flat view.

Mail Monitor intercepts all emails received and sent by the user. The body and attachments of the email (including OLE attachments) are scanned for malware. The results of scanning by a Mail monitor can be obtained and processed by using the callback function. Please see section "Detection of infected objects by Mail Monitor" for more detail on scanning workflow used in Mail Monitor.

Mail Monitor settings are defined by the KAV_POP3_MONITOR_SETTINGS structure. They include the same settings as are used by scanning functions—scanning mode and scanning timeout. There is also an option to scan incoming email only.

Note that Mail Monitor functionality requires mail monitor drivers to be installed. For more information, see section "Drivers".

Handling email messages

Depending on what cleaning mode specified in the dwCleaningMode field of the KAV_POP3_MONITOR_SETTINGS, notification messages you retrieve from KAV Engine may vary and email messages and infected attachments within them are handled accordingly. The KAV_POP3_MONITOR_SETTINGS data structure is used by kaveLoadMonitor function to retrieve configuration settings of Mail Monitor.

You can start the Mail Monitor is a mode that enables the monitor to disinfect found malicious attachments. To do that you initialize dwCleaningMode field of the KAV_POP3_MONITOR_SETTINGS structure to KAV_CLEAN_DELETE. If a scanned email contains a malware, the Mail Monitor attempts to disinfect such an attachment and rebuild it so that the email contains clean attachment. When disinfection cannot be done, infected attachment is removed. Additionally, the infected attachment can be placed to the backup storage before removing. This helps prevent from inadvertent removal of attachments as a result of false positive detection, a type I error when the KAV Engine could identify a malicious attachment, which in fact is a clean attachment.

As part of notification measures, Mail Monitor modifies scanned emails to tag it with a status that matches a specific event code. Tags are added to the Subject field of each scanned email whenever a malicious file is found attached to this email and are used in every work mode of Mail Monitor. The following table lists possible subject status tags that may be added to email subjects upon completing the scan.

Subject status tags

Tag

Description

Message is infected :

Scanned message contains an infected attachment; found threat was not eliminated.

Detection type: exact detection of malicious code.

Message has been disinfected :

KAV Engine has successfully disinfected malicious attachments in the scanned email message.

Detection type: exact detection of malicious code.

Message has a suspicious part :

The scanned multipart email message contains a suspicious malware, an attachment that is probably infected; found threat wasn't eliminated.

Detection type: fuzzy detection of suspicious code.

Suspicious part has been deleted :

A mutlipart email message contains a probably malicious attachment that cannot be disinfected. To complete cleanup procedure, the KAV Engine has successfully removed malicious attachments from the scanned email message.

Typically this tag is added when there is no quarantine component, found suspicious attachment cannot be quarantined and must be deleted.

Detection type: fuzzy detection of suspicious code.

Suspicious part has been quarantined :

A mutlipart email message contains a probably malicious attachment that needs to be disinfected or removed. To prevent attachment from being inadvertently removed as part of cleanup procedure, the KAV Engine placed the attachment to the backup storage.

When the attachment file is disinfected or removed, it can be always restored from the backup storage whenever you might need the original attachment in the future.

Detection type: fuzzy detection of suspicious code.

Page top