This section describes what happens in the situation when the scanning function is called with the KAV_REQUEST cleaning mode and the suspicious object is detected.
The stateflow for this mode when dealing with suspicious objects slightly differs from that of infected object. Infected object are detected by some known criteria which provide the KAV Engine a basis to disinfect this object. Knowledge to detect provides the knowledge to disinfect. Suspicious objects are detected by heuristic analysis. These objects cannot be disinfected because the KAV Engine does not have data necessary to successfully disinfect these objects.
Please notice that there is no EVENT_DISINFECTED event passed to the callback function compared to the stateflow with processing detectable objects.
The stateflow for this mode represents a mixture of stateflows for KAV_CLEAN_SKIP, KAV_CLEAN_DELETE and KAV_DELETE modes. If the infected object is detected, the corresponding callback function (there can be several callback functions) is automatically called with the first parameter set to EVENT_REQUEST; the information on the infected object and the malware name are passed as other callback function parameters. Depending on the callback return value, the corresponding mode is selected by KAV SDK and the stateflow branches corresponding to the chosen mode:
CLBK_CLEAN_OBJECT is returned—KAV_CLEAN_SKIP mode is selected for the scanning functionCLBK_CLEAN_DELETE_OBJECT is returned—KAV_CLEAN_DELETE mode is selected for the scanning functionCLBK_DELETE_OBJECT is returned—KAV_DELETE mode is selected for the scanning functionIn some cases EVENT_ERROR may arise at some of the stages of the stateflow. This may happen as a result of disk access error, lack of memory and related errors.
For any of the cleaning modes the EVENT_PREDETECT callback event always arises before the detection event. It enables to cancel further scanning of the object by using the corresponding callback function return code.
The diagram below demonstrates the sequence of callback function calls.

Detection of suspicious objects in KAV_REQUEST cleaning mode
Page top