KAV SDK supports Self Defense—protective technology that allows you to protect objects created by your application at runtime and ensure operating system integrity on Windows platform.
Securable objects
Objects protected by Self Defense technology are securable.
The following types of securable objects are supported:
These are files and file folders.
Registry keys, values and value data.
Processes created by your application.
Secured access and process visibility
Securable objects are protected by Self Defense technology from inadvertent modification by the user or malicious software. Any attempt to access a securable object for reading or modification from a running process, is prohibited by KAV SDK.
There are several types of processes distinguished by Self Defense:
A visible process is any running process in the system environment that is monitored by KAV SDK. Self Defense controls attempts of such processes to access securable objects.
A process protected by Self Defense. Protected processes are not only allowed to access other protected processes but also can add, remove or modify access rules for Kaspersky driver. Digitally signed processes with a verifiable signature are automatically considered protected.
Added to access rules a process becomes protected immediately after the rules are set, see section Getting started with Self Defense in KAV SDK.
Invisible processes are transparent to KAV SDK and are not monitored by Self Defense. An invisible process can access all types of processes and protected objects, but is not allowed to make changes to access rules.
By default, KAV SDK considers following processes invisible:
%systemroot%\system32 folder.Process visibility applies to all types of processes. It allows you to mark any process as invisible for KAV SDK an exclude it from monitoring. Trusted process marked as invisible gets excluded from monitoring by Self Defense.
Access rules
Once enabled in the application powered by KAV SDK, Self Defense automatically secures objects specified by access rules—structured sets that define securable objects. You create protection rules in your application using the provided configuration structure of access rules. These rules are automatically applied when passed to the installer API and are enabled through kaveSelfDefenseSetConfig API, see section "kaveSelfDefenseSetConfig".
Supported integration modes
The Self Defense technology can only be implemented for in-process integration mode of KAV SDK.
Supported platforms
The Self Defense technology is shipped only with 32-bit builds of KAV SDK and supports 32-bit and 64-bit versions of Windows XP and later.