Proactive Defense Rollback mode

The Proactive Defense Monitor (PDM) component features the rollback mode developed to clean the malware activity traces off of the end-user system. Specially crafted mechanism tracks down typical malware activity to trap writes and changes in file system, registry and intercept malware that tries to spawn its processes. This helps to protect from issues when the threat has been detected after the malicious actions have been performed.

When enabled, the rollback mode allows the Proactive Defense Monitor to clean off the following activity:

A rollback will be performed to return to the state to how it has been before the malware has performed its actions.

Rollback is performed only for the changes made by malware after the current PDM monitor session has been started.

Rollback is not supported for malware file activity performed on network drives.

A special set of constants is provided to invoke the rollback mode from within your application. These constants are enumerated within the PDM_ROLLBACK_MODE field of the KAV_PDM_MONITOR_SETTINGS3 structure and represent the modes where the PDM can operate in. Once the KAV SDK is initialized, this structure can be filled with the necessary settings. The rollback mode can be defined by setting the dwRollbackMode parameter.

This mode is not supported in the current KAV SDK version for Linux-based solutions.

It is recommended that you use the KAV_PDM_MONITOR_SETTINGS3 structure where possible. The KAV_PDM_MONITOR_SETTINGS and KAV_PDM_MONITOR_SETTINGS2 structures are deprecated and left for backward compatibility only.

When using the KAV_PDM_MONITOR_SETTINGS structure in the kaveLoadMonitor and kaveSetMonitorSettings functions, the dwRollbackMode is not available and the PDM_ROLLBACK_OFF mode is used.

The table below lists the constant values that could be written to the dwRollbackMode parameter.

Proactive Defense rollback modes

Mode

Description

PDM_ROLLBACK_OFF

The rollback mode is disabled..

PDM_ROLLBACK_AUTO

The rollback mode is enabled. PDM clean up actions are performed automatically. No calls to the KAV SDK user are made.

If rollback has succeeded, the KAV SDK user will be notified with one of the EVENT_PDM_* events (see section "Proactive Defense events") passed to the callback function along with the dwParam1 option set to PDM_ACTION_ROLLBACK_SUCCEEDED.

If rollback operation has failed, the SDK user will be notified with one of the EVENT_PDM_* events passed to the callback function along with the dwParam1 option set to PDM_ACTION_ROLLBACK_FAILED.

PDM_ROLLBACK_ASK

The rollback mode is enabled. PDM clean up actions are performed based on the value returned from the event handler of an EVENT_PDM_* event (see section "Proactive Defense events"). In case the CLBK_ROLLBACK value is returned, rollback mode gets activated. Rollback is not performed if any value is returned not equal to CLBK_ROLLBACK. This can be the CLBK_OK value or any other return code.

In this mode the KAV SDK user will be notified with one of the EVENT_PDM_* events passed to the callback function along with the dwParam1 option set to PDM_ACTION_ROLLBACK.

If rollback has succeeded, the SDK user will be notified with one of the EVENT_PDM_* events (see section "Proactive Defense events") passed to the callback function along with the dwParam1 option set to PDM_ACTION_ROLLBACK_SUCCEEDED.

If rollback operation has failed, the KAV SDK user will be notified with one of the EVENT_PDM_* events (see section "Proactive Defense events") passed to the callback function along with the dwParam1 option set to PDM_ACTION_ROLLBACK_FAILED.

Page top