KAV_EXTRA_OBJECT_INFO_HTTP

Contains information about a file that is extracted from the HTTP protocol data.

Syntax

struct KAV_EXTRA_OBJECT_INFO_HTTP

{

KAV_EXTRA_OBJECT_INFO_BASE baseInfo;

char *objectHttpReq;

char *objectHttpRsp;

char *objectUrl;

char reserved;

};

Members

KAV_EXTRA_OBJECT_INFO_HTTP structure members

Member name

Description

baseInfo

An instance of the KAV_EXTRA_OBJECT_INFO_BASE data structure that stores the size of KAV_EXTRA_OBJECT_INFO_HTTP structure.

Incorporating the structure that stores the size of its parent allows you to dynamically extend the KAV_EXTRA_OBJECT_INFO_HTTP structure size by adding or removing its members in the future.

objectHttpReq

A pointer to the address with the text of the HTTP request header as extracted from the HTTP transaction message.

The text data must be associated with the URL specified in the objectUrl. Format must comply to RFC 2616.

objectHttpRsp

A pointer to the address with the text of the HTTP response header as extracted from the HTTP transaction message.

The pointer must reference text data with an HTTP response to a request for the URL specified in the objectUrl. Format of the response must comply to RFC 2616.

Response example:

HTTP/1.1 200 OK

Accept-Ranges: bytes

Content-Length: 23

Content-Type: text/html

Date: Sun, 31 Mar 2013 23:11:06 GMT

ETag: "b74ae91e407ba1:0"

Last-Modified: Wed, 31 Aug 2011 12:21:12 GMT

Server: Microsoft-IIS/8.0

 

document.write("DUMMY")

objectUrl

A pointer to the requested URL address.

reserved

This parameter is ignored in the current KAV SDK version.

Remarks

The structure contains technical data that is used in following scanning functions:

As an enhancement measure to aid in scanning efficiency, listed scanning functions support scanning methods that use HTTP protocol data. Gathered on the gateway interface, this data extracted from HTTP protocol may facilitate scanning of in-memory objects and file system objects. For example, HTTP protocol data may contain specific information used by attacker to encrypt malicious files intercepted on perimeter network. Built-in scanning methods use this data as provided in parameters of scanning functions to decrypt files or perform any other actions that help analyzing files and detecting malware.

The members of the KAV_EXTRA_OBJECT_INFO_HTTP structure must be initialized using the custom obatained information. This information must be gathered on the gateway network interface for downloaded files prior to be used for scanning in the aforementioned functions.

If no information can be obtained on the gateway interface, or it is not possible to obtain information for a specific parameter, the corresponding member parameter(s) of the KAV_EXTRA_OBJECT_INFO_HTTP structure must be initialized to NULL. For example, if you do not have the data for the HTTP response header, set the objectHttpRsp parameter to NULL.

If you do not want the HTTP protocol data be used in scanning functions, set every member of the KAV_EXTRA_OBJECT_INFO_HTTP structure to NULL. No additional scanning methods will be used against the scanned data; decryption of scanned data based on HTTP data will not be possible.

Page top