File reputation checking

This section describes the scenario of taking file reputation verdict during the scanning or monitoring. The sequence of process reputation checking is the following:

  1. When new file is passed to check by one of the scanning or monitoring functions, KAV SDK checks the file according to the offline technologies (e.g. malware definition databases and heuristic analysis). Offline technologies return a Danger or Clean verdict.
  2. If Cloud Protection is disabled, verdict, returned by offline technologies, is considered as final. KAV SDK notifies your application project about verdict availability.
  3. If Cloud Protection is enabled, the following steps depend on whether the verdict, returned by offline technologies, is Danger or Clean:
    • If offline technologies return a Danger verdict, KAV SDK verifies, whether the verdict is false positive, requesting the information from verdicts cache. If there is no verdict in the cache, or TTL of the verdict has expired, KAV SDK requests the verdict from the cloud.

      KAV SDK does not check if the Danger verdict, returned by offline technologies, is false positive, when the detection type is KDT_RISKWARE.

      The false positive checking request is performed synchronously – the requesting thread is waiting for response from the cloud.

    • If offline technologies return a Clean verdict, KAV SDK verifies, whether the verdict is false clear, KAV SDK requests the cloud verdict from the cache. If there is no verdict in the cache, or TTL of the verdict has expired, KAV SDK requests the verdict from the cloud.

      The false clear checking request is performed synchronously.

  4. When the file reputation from the cloud is received, the summary verdict is evaluated by the following algorithm:
    • When the verdict, returned by the offline technologies, is Clean, and the cloud verdict is Danger, the summary verdict is Danger.

      In this case the KDT_URGENT and KDD_HIGH values are passed in dwParam1 and dwParam2 parameters of the callback function.

    • When both verdicts are Danger, the summary verdict is Danger.

      In this case the detection type and severity are determined by offline technologies.

    • When the cloud verdict is Clean the summary verdict is Clean regardless of the verdict returned by the offline technologies.
    • When the cloud verdict is Unknown, or response timeout is over, the summary verdict is the same as the verdict, returned by offline technologies.

      The detailed information about evaluation of summary verdicts, is described in section "Evaluation of summary verdicts".

  5. KAV SDK generates an event which notifies your project application about summary verdict availability. If the summary verdict is Danger, KAV SDK generates EVENT_PREDETECT event (for scanning function one EVENT_PREDETECT event is generated, and for File Monitor there are two EVENT_PREDETECT events) and requests confirmation of the verdict from your application project. Depending of response from your application, the next actions are the following:
    • If the summary verdict is not confirmed, the reputation checking finishes.
    • In the summary verdict is confirmed, KAV SDK generates the EVENT_VERDICT_CURABILITY and EVENT_DETECT (or EVENT_SUSPECTED, depending on the checking results returned by the offline technologies) events. The KDT_URGENT and KDD_HIGH values are passed in the dwParam1 and dwParam2 parameters of the callback function.
Page top