FortiEDR
FortiEDR automates the protection against advanced threats, pre and post-execution, with real time orchestrated incident response functionality.
tberber
Staff
Staff
Article Id 289257

Description

This article describes how to retrieve a file from a running collector by using Rest-API.

Scope

FortiEDR version 5 and above.

Solution

About Get-File API Command:

  1. Login to the EDR console with the desired credentials.
  2. To the end of the console address, add '/rest-ui' and press enter.
  3. From the top left corner of the web-page, locate the search bar and type 'get-file'.
  4. Carefully inspect each parameter.

Recommended Rest-API Software Tool.

 

Postman: Download Link.

  1. Select the 'Import' button located at the upper-left corner of the Postman application.

    • Upload the previously downloaded api-docs.json file.

2023-12-14_10h25_07.png

  1. Search for 'get-file'.

2023-12-14_10h28_51.png

  1. Edit Parameters according to the needs.

  2. For Authorization, make sure the user will have an API role assigned and select 'Basic Authentication'.

 

2023-12-14_10h58_27.png

 

  1. Once the result is retrieved successfully, save the response in a ***.zip file format.

     

  2. Extract the file by using the 'enCrypted' zip password.

     

  3. The file extracted will have ***.ensilo as an extension, modify and remove ***.ensilo.#.

     

  4. Now the original file is restored and retrieved from the target host.

 

2023-12-14_10h50_27.png