Scanning a multitude of files can be a chore. File Monitor employs a proprietary whitelisting technology that allows to mark some files or processes as trusted. This whitelisting is incorporated into the klif driver and serves for the purposes:
For example, some processes are known to File Monitor as trusted processes. Files created by trusted processes are not scanned by File Monitor until rescanning criteria are met. Whitelisting-enabled klif driver monitors files created by trusted process and marks these files as trusted. Typical examples of trusted processes are setup processes. Files created by trusted processes are known as trusted files.
Trusted files are considered safe and adhere to the same rule as trusted processes. Such files are not scanned until rescanning criteria triggers. When KAV SDK notifies your process that File Monitor component has scanned a file, it calls your callback handler and sets its dwEvent parameter to EVENT_OK. The EVENT_OK event is raised by KAV SDK to indicate that scanning of a file finished and file is safe or, in other terms, it is white. When klif driver intercepts a file created by a trusted process, the file is whitelisted, it is added by klif driver to the list of safe files. Safe files have a trust indicator and do not require scanning and as a result File Monitor does not raise EVENT_OK for such files.
Trust indicators
The trust indicator is a mark that tags a process or a file as safe. This mark is set by klif driver in the following cases.
A file is considered safe when it has been scanned by the File Monitor and has received a clean status; your callback handler is called with EVENT_OK event code to indicate this status.
A file created by a trusted process is a safe descendant. Note, the child process for the trusted process is not a safe descendant!
Trust indicators are inherited depending on the object that holds them, a process or a file. Files created by trusted processes are also trusted. If a trusted file archiving process has been used to create a self-extracting archive, this archive is also trusted. If you attempt to copy this archive, it will not be scanned by File Monitor.
This is not true for trusted processes that do not inherit the trust status. Child processes created by a trusted process do not inherit their status from their trusted parent. However, they inherit their status from trusted files. Processes created from trusted files are considered trusted processes.
Trust indicators of files are persistent and are reused by File Monitor until a rescanning criteria is met.
Rescanning criteria
Trust indicators of files are persistent and last the lifetime of applications that use the File Monitor component. To guarantee that security surface is constantly monitored and there are no false positive (safe file is considered unsafe) or false negative results (unsafe file has been marked as safe), KAV SDK sets triggers that specify when the trust indicators are reset.
The following events are reset triggers for trust indicators that serve as rescanning criteria:
When any of the mentioned reset triggers occur, trusted status of files and processes is reset and reevaluated. Consider in some scanning session a file has been marked trusted. This file is never scanned by File Monitor whenever you access this file until a rescanning criteria is met. You may access the file for reading, modify it from a trusted process or copy, the file will not be scanned by File Monitor because klif driver provides information that the file is safe. Even if you restart your application or host computer, trust status is kept in the trust database maintained by the klif driver. However, when you update malware definitions, rescanning criteria is met and the trust database is flushed resetting the trust indicator for the file.