Drivers

Some additional functionality such as monitoring features or quick scanning of system environment is implemented using proprietary Kaspersky drivers. The drivers are delivered in the KAV SDK package.

For example, drivers are used to hook file operations or to intercept network traffic. When scanning of the system memory is performed, the presence of the File Monitor driver (klif.sys) is mandatory for successful detection and disinfection of some types of malware.

Drivers from the KAV SDK setup package may come into a conflict with third-party anti-virus products and security applications. Under such conditions, please contact your Technical Account Manager for appropriate recommendations.

32-bit versions of KAV SDK are distributed with both 32-bit and 64-bit drivers (operate on x64 Windows platforms). The 32-bit drivers operate on x86 Windows platforms while 64-bit drivers are installed only when the 32-bit KAV SDK is installed on a 64-bit operating system. In this case user mode subsystem of KAV SDK runs in a 32-bit space and the kernel mode part runs in the native 64-bit address space.

Please note that 64-bit native versions of KAV SDK are distributed without drivers. Following technologies depend on drivers and are not supported in native 64-bit builds of KAV SDK:

Drivers provide the key functionality for the KAV SDK product necessary to neutralize complex threats. For example, detection and disinfection of sophisticated rootkits and bootkits such as Sinowal is only possible when kl1 driver is started.

When working with such types of threats, make sure you first do quick system scan using QSCAN technology before performing other types of scan. This will help to neutralize malware that, when loaded into system memory, can hide its presence in other system areas such as boot sectors.

Proprietary driver stack used in KAV SDK has been re-imagined (starting from builds 8.3.x.x) to incorporate changes necessary to fully support for driver model changes and features delivered in Microsoft Windows 8, and further optimize built-in driver chain. Changes are also targeted on delivering smooth support for networking implemented by Modern apps delivered with Microsoft Store in Windows 8. In KAV SDK 8.5.x.x we brought a new set of application level drivers for network interception that analyze network connections, and a dedicated monitoring driver that handles calls to system functions.

Renovated driver infrastructure

KAV SDK 8.5.x.x introduces a new driver ecosystem with the klhk and kltdf/klwtp drivers. The klhk allows to handle malicious attempts to exploit core operating system capabilities. The kltdf/klwtp drivers allow your product to organize a proxy-less sink system that handles network events on the application level. These architectural changes make a set of previously required drivers unnecessary.

When integrating KAV SDK 8.5.x.x or later, please note that obsolete network drivers can only be removed from the system and cannot be updated.

Obsolete drivers have been replaced by the new kltdf/klwtp. The obsolete drivers cannot be installed using the UDInstaller tool.

Functionality provided by these drivers is covered by kltdf/klwtp drivers each specific to the target platform. For example, if you are migrating to KAV SDK components versions 8.5.x.x or later, following obsolete drivers must be removed from your system:

Driver stack

Сurrent KAV SDK version is used with the following drivers:

Installing drivers

The KAV SDK drivers are installed by using UDInstaller tool. The UDInstaller tool provides means to install and remove drivers developed by Kaspersky Lab for KAV SDK. The KAV SDK package contains two versions of UDInstaller for 32-bit and 64-bit flavors of Windows operating system.

Syntax

For x86 platforms:

udinstaller32 <--install|--uninstall|--cleanup> <driver> [--verbose]

The --verbose parameter allows you to turn on driver installation logging. Logs will be written to the udinstaller.log file located the same directory as the utility.

For x64 platforms:

udinstaller64 <--install|--uninstall|--cleanup> <driver> [--verbose]

The driver installation tool supports the following switch parameters and arguments.

Driver platform dependency

Parameter

Argument

Description

install

<klhk|klif|kltdf|
klwtp|klbg|kl1|
klelam>

Installs the driver specified in the argument in the operating system.

Type: parameters

uninstall

<klhk|klif|kltdf|
klwtp|kltdi|klwfp|
kneps|klbg|klelam|
kl1|kl2|
klim5|klim5_m|klim6>

Removes the driver specified in the argument from the operating system.

Type: parameter

cleanup

N/A

Removes helper cleaning drivers—such as KLBG—from the system.

Only for Windows 10.

Use this option when you remove KAV SDK from the system, as to uninstall the product, or as a part of the upgrade procedure.

Run udinstaller with the cleanup option first. Then run udinstaller with uninstall or install option.

driver

N/A

Specifies the driver to be installed or removed.

This argument parameter depends on the previous parameter.

The following values are supported for this argument parameter when used with install parameter:

  • klhk
  • klif
  • klbg
  • kltdf
  • klwtp
  • kl1
  • klelam

    The following values are supported for this argument parameter when using with uninstall parameter:

  • klhk
  • klif
  • klbg
  • klelam
  • kl1
  • kl2
  • klim5
  • klim5_m
  • klim6
  • kneps
  • kltdf
  • klwtp
  • kltdi
  • klwfp

    Each argument indicates the name of the driver as listed earlier in this section.

    Type: argument

verbose

N/A

Turns on verbose output to provide more details during the installation or removal of the driver.

Type: switch parameter

Examples

To install KLIF driver for the x86-64 platform with verbose logging, run the following command:

udinstaller64 --install klif --verbose

Platform dependency

Each platform requires specific KAV SDK driver stack listed in the following table.

Driver platform dependency

Platform

Driver stack

  • Windows XP
  • Windows Server 2003
  • klhk
  • klif
  • kltdf
  • [optional] klbg
  • kl1
  • Windows Vista
  • Windows 7
  • Windows Server 2008
  • Windows Server 2008 R2
  • [optional] klbg
  • klhk
  • klif
  • klwtp
  • kltdf (Windows Vista only)
  • kl1
  • Windows 8
  • Windows 8.1
  • Windows Server 2012
  • [optional] klbg
  • klhk
  • klif
  • kl1
  • [optional] klelam
  • klwtp

Component dependency

Each component of the KAV SDK requires specific KAV SDK driver stack listed in the following table. Because some components do not require presence of all KAV SDK drivers, you may save on installing some drivers based on the information in this table.

Component dependency

Platform

Driver stack

  • File Monitor
  • klhk
  • klif
  • Web Monitor
  • klhk
  • klif
  • kl1
  • kltdf (or klwtp depending on the target platform)
  • Mail Monitor
  • klhk
  • klif
  • kl1
  • kltdf (or klwtp depending on the target platform)
  • Proactive Defense Monitor
  • klhk
  • klif
  • klbg

    This driver is not necessary for the PDM component to initialize properly but it may facilitate scanning through QSCAN functionality.

  • Advanced Disinfection
  • klhk
  • klif
  • klbg

    This driver is not necessary for the Advanced Disinfection component to initialize properly but it may facilitate scanning through QSCAN functionality.

  • klelam

    This driver provides removal of malicious drivers at the early-launch stage and requires QSCAN functionality.

    Make sure to enable QSCAN anti-rootkit mechanism for klelam driver to start and operate properly. This mechanism can be enabled by invoking the kaveScanCriticalArea function with the enCriticalAreaType parameter set to STARTUP_QSCAN.

    To run scanning with Advanced Disinfection technology enabled, make sure to initialize dwScanningMode parameter of the particular scanning function you are using to KAV_O_M_ADVDIS, see section "Scanning functions" for details.

Driver installation order

The drivers should be installed strictly in the defined order. Depending on the version of KAV SDK components you are using, different drivers are used and so is the installation order.

Use the following setup order when integrating KAV SDK 8.5.x.x or later.

  1. [optional] klelam

    The pre-boot klelam driver, which is provided for Windows 8 platform, can be installed at any time later, although it is recommended that you install this driver in the first place.

  2. klhk
  3. klif
  4. [optional] klbg

    When the installation of the klbg driver finishes, the utility adds the '0x00000000' error code to the log file indicating that installing the klbg driver has finished successfully and no reboot is necessary.

  5. kl1
  6. kltdf/klwtp

    Install klwtp driver if you are installing KAV SDK on Microsoft Windows 7 or later, otherwise install kltdf driver.

    For more information about driver platform compatibility, see Platform dependency section.

After the driver is installed it starts automatically.

Make sure to check the return code, which is returned by the UDInstaller at the end of driver installation procedure. The following codes may be returned:

After a driver is removed, you need to restart the system to finish the operation.

The UDInstaller tool supports automatic updating of outdated and obsolete drivers with the latest drivers. During the update procedure, the UDinstaller tool automatically removes the old drivers, without you having to remove the drivers manually (see restrictions below), and installs the new. When necessary, you can still manually remove drivers before running driver update.

Make sure to always restart your operating system after UDinstaller has finished the driver setup procedure, unless this is your first install and you are installing drivers on a fresh operating system that did not have any Kaspersky drivers installed before then. For more details on installing drivers in various scenarios, see section "Typical usage scenarios".

In this section

Typical usage scenarios

Updating the KLBG driver

Enabling driverless mode

Page top