Skip to main content
srahmat
Staff
Staff
December 4, 2025

Technical Tip: How to dynamic scan Python file type in Optional VM

  • December 4, 2025
  • 0 replies
  • 133 views
Description This article describes how to dynamic scan Python file type in FortiSandbox by using Optional VM images published by Fortinet.
Scope FortiSandbox.
Solution

Optional VM are image published by Fortinet and can be download from FortiSandbox device to be use for dynamic scanning.

 

Fortinet published Ubuntu VM images such as 'Ubuntu18V5' and 'Ubuntu20V1'. Both of these Ubuntu VM images had a Python application installed by default. See Viewing applications installed on a VM for more information.

 

image.png

 

By default, only 'ELF, OBJ, and SH' file types are allowed to be scanned inside the Ubuntu VM.

To do a dynamic scan for Python file type in the Ubuntu guest VM, add the user-defined extensions for the Ubuntu VM in the VM Association:

Go to Scan Policy & Object -> Scan Profile -> VM Association and edit the selected VM. Select the '+' sign and enter a new extension. Select 'Apply' after adding the user defined extensions to save the settings.

 

image.png

 

On the Scan Policy and Object -> Scan Profile -> Pre-Filter, enable the 'User Defined Extensions'.

 

image.png

 

For this example, the Python file '.py' extension will be able to dynamically scan inside the Ubuntu VM. The job details will show the file type as 'User Defined'.

 

image.png

 

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!