Overview

The Kaspersky SDK consists of a number of components interacting with each other. The main component is the anti-virus scanner. It contains the KAV Engine that is the core of the product performing all scanning for malware, monitoring and repairing activity.

The figure below demonstrates how the application communicates with the Kaspersky SDK.

Architecture of KAV SDK library

KAV SDK architecture

The functionality provided by the kave8.dll//libkave8.so library is used while initializing the KAV SDK. When a file or other object is passed by the application to the KAV scanner, the KAV SDK checks license validity, generates an ID for the scan task, puts the object into the scanning queue, initiates scan and monitor dispatchers, and performs other initial actions.

The kavesd.dll/libkavesd.so library is responsible for managing scanning threads and monitors. Scan dispatcher manages scanning queue and schedules the scan tasks between the threads available.

For a given scanning thread, the kavessi.dll/libkavessi.so library provides tools for marshaling and unmarshaling the object. Unmarshalled object is passed to the KAV scanner. After the scan is done, and, if necessary, the object is cured, it is passed back to the application.

Real time protection is achieved by using monitor or several monitors. They intercept certain operations inside the operating system and send objects like files and memory blocks to the KAV scanner. There are several types of monitors: file system monitor, mail monitor, web monitor and proactive defense monitor.

The API module provides C API interface for making possible to integrate into the application.

Although the KAV SDK provides the complete solution for implementing anti-virus defense, some of its secondary parts—for example, IPC mechanism or scan ID generator—can be replaced with custom solutions.

Page top