Using Kaspersky Scan Engine in ICAP mode with GoAnywhere MFT

You can configure Kaspersky Scan Engine to work with GoAnywhere MFT. For convenience, this process is separated into several steps.

Configuring Kaspersky Scan Engine

To be integrated with GoAnywhere MFT, Kaspersky Scan Engine must be working in ICAP mode.

To configure Kaspersky Scan Engine,

Enable sending a 204 No Content HTTP status code. You can do it in the following ways:

Configuring GoAnywhere MFT to work with Kaspersky Scan Engine

To add Kaspersky Scan Engine into GoAnywhere MFT:

  1. In the GoAnywhere MFT web console, open the Resources page.
  2. In the Resource Types list, choose ICAP Servers.

    "ICAP servers" selected in the "Resource Types" list.

    GoAnywhere MFT. ICAP servers

  3. Click the Add ICAP Server button.
  4. Fill out the form that opens:
    • Name. Specify any name for the Kaspersky Scan Engine server. For example, Kaspersky Scan Engine ICAP.
    • URL. Specify the URL that Kaspersky Scan Engine uses in response mode. That is, the URL must contain the part that specifies the RESP method. For example, icap://{KSE_ICAP}:1344/resp.

    ICAP server settings: Name = Kaspersky Scan Engine ICAP, URL = icap://IP_address:1344/resp.

    GoAnywhere MFT. Kaspersky Scan Engine ICAP server settings

  5. Click the Test button.

    GoAnywhere MFT tests the connection with the newly added Kaspersky Scan Engine server. An example of a successful test is shown in the picture below.

    Test Results: Resource test was successful.

    GoAnywhere MFT. Successful connection to the Kaspersky Scan Engine ICAP server

  6. Click Save.

You can now use Kaspersky Scan Engine to scan objects from GoAnywhere MFT.

Resource "Kaspersky Scan Engine ICAP" was added successfully.

GoAnywhere MFT configuration complete

Creating a regular scan task

You can create a task to scan objects in Kaspersky Scan Engine on a regular basis.

To create a regular scan task:

  1. In the GoAnywhere MFT web console, open the Workflow/Projects page.
  2. Click the Create a Project button.
  3. In the form that opens, fill in the Project Name field (for example, Kaspersky Scan Engine regular scan).
  4. Click Save.

    The page with the Component Library list opens.

    "Create File List" selected.

    GoAnywhere MFT. Component Library

  5. In the Component Library list:

    a. Double-click the File System/Create File List element, and then fill out the form that opens:

    • File List Variable. Specify files.
    • Base Directory. Specify the path to the directory that contains the objects to send for scanning in Kaspersky Scan Engine.

    File List Variable =  files, Base Directory = /opt/kaspersky/temp.

    GoAnywhere MFT. File List settings

    b. Double-click the Loops/For-Each Loop element, and then fill out the form that opens:

    • Items Variable. Specify ${files}.
    • Current Item Variable. Specify file.

    c. Double-click the Integration/ICAP element, and then fill out the form that opens:

    • ICAP Server. Specify Kaspersky Scan Engine ICAP.
    • Source File. Specify ${file}.
    • Output Variables/ICAP Status Code Variable. Specify icap_resp_code.

    ICAP server integration. Label = SendtoScanEngine, ICAP Server = Kaspersky Scan Engine ICAP, Source File = ${file}, ICAP Status Code Variable = icap_resp_code.

    GoAnywhere MFT. ICAP server integration settings

    d. Double-click the Job Control/If element, and then fill out the form that opens:

    • Condition. Specify ${icap_resp_code == 200}.

    "If" element. Label = IfMalicious, Condition = ${icap_resp_code == 200}.

    GoAnywhere MFT. "If" condition

    e. Double-click the File System/Delete element, and then fill out the form that opens:

    • Input Files Variable. Specify ${file}.

    "Delete" element. Input Files Variable = ${file}.

    GoAnywhere MFT. Input Files Variable

    Kaspersky specialists recommend removing malware instantly, but you can specify a different action, such as moving the malware to another directory, renaming the malware, or configuring GoAnywhere MFT to send a notification to a security specialist.

  6. After creating these elements, arrange them in the following hierarchy:
    • File System/Create File List
    • Loops/For-Each Loop
      • Integration/ICAP
      • Job Control/If
        • File System/Delete

    TestProj, Main, CreateFileList, TestLoop, SendToScanEngine, IfMalicious, RemoveMalware.

    GoAnywhere MFT. Settings hierarchy

  7. Open the Workflow/Schedule page, and then fill out the form:

    a. In the Project field, specify Kaspersky Scan Engine regular scan.

    Project settings. Name = KSE  regular scan, Project = /Kaspersky Scan Engine regular scan, Admin User = admin, Password hidden.

    GoAnywhere MFT. Regular scan project

    b. In the Schedule tab, specify the required scanning frequency.

    Scan schedule. Schedule Frequency = Daily.

    GoAnywhere MFT. Regular scan schedule

    c. Click Save.

Page top