2.2.7. Sigflow detection engine

To analyze the captured flow, the following steps must be taken:

  • Activate one or more capture interfaces on the GCap

  • Pair the GCap and GCenter

  • Activate of the Sigflow monitor engine, by default it is deactivated


2.2.7.1. Activate one or more capture interfaces on the GCap

2.2.7.1.1. CLI commands

Managing the capture interfaces is done using the CLI commands listed in the Summary of orders by theme and level table.


2.2.7.1.2. Use case procedures

To view or configure the capture interfaces, refer to the table Manage the network.


2.2.7.2. Aggregation of capture interfaces `monx`

For more information on this aggregation, please refer to Capture and capture interfaces `monx` between TAP and GCap: aggregation possibility.
For more information on how to configure this aggregation, refer to the paragraph Capture interfaces: aggregation.

2.2.7.3. Pairing the GCap with GCenter

Once the network configuration is done, it is necessary to pair the GCap with GCenter.
For more information on pairing, refer to Procedure to pair a GCap with the GCenter.

2.2.7.4. Activating the Sigflow monitor engine

By default the GCap monitor engine is disabled.


2.2.7.4.1. Checking the status of the Sigflow monitor engine (activating procedure)

The status of the engine can be checked with the `show status` command.


2.2.7.4.2. Starting the Sigflow analysis engine

It is essential to start the Sigflow monitor engine (detection engine).
The flow capture only takes place after this start.
To do this:

The command prompt is displayed.

(gcap-cli)
  1. Enter the monitoring-engine start command

  2. Validate
    monitoring-engine start
    
    The system displays the following message indicating that the engine started.
    Starting Detection Engine...
    This operation may take a while... Please wait.
     etection Engine has been successfully started.
    
    Once the monitor engine is activated, the configuration possibilities of the GCap probe change.
    Some of them cannot be configured while the engine is running.

    Note

    The `eve-stats` command in the `show` sub-group enables displaying the Sigflow (monitoring-engine) statistics.


2.2.7.4.3. Grace period

The grace period is the sum of:

  • The maximum starting time

  • The maximum stopping time

In order to be able to load the rules of the detection engine before starting the engine, the engine cannot start until a certain time called maximum start time or startup grace period (start-timeout).

Similarly, there is the maximum stopping time or grace period when the engine shuts down (stop-timeout).


2.2.7.5. Deactivating the Sigflow monitor engine

2.2.7.5.1. Checking the status of the Sigflow monitor engine (deactivating procedure)

The status of the engine can be checked with the `show status` command.


2.2.7.5.2. Stopping the Sigflow monitor engine

In the same way, stopping is carried out with the monitoring-engine stop command:

monitoring-engine stop

The system displays the following message indicating that the engine stopped.

Stopping Detection Engine...
This operation may take a while... Please wait.
Detection Engine has been successfully stopped.

2.2.7.6. Compatibility mode

The compatibility mode between the GCap and GCenter must be specified via the set compatibility-mode command.


2.2.7.7. MTU

The Maximum Transfer Unit (MTU) of each GCap capture interface can be adjusted via the CLI.
Indeed, the maximum packet size to be captured at one time on an interface is configurable.

2.2.7.7.1. Display of the current MTU value

The MTU value can be displayed using the show interfaces command:

image0

The administrator can change the MTU's value in bytes of the GCap capture interfaces.
This setting must be between 1280 and 9000 bytes.

Note

Note that XDP Filtering features is not supported if the MTU > 3000.


2.2.7.7.2. Changing the current MTU value

Regarding the modification of the MTU, this is done with the set advanced-configuration mtu command followed by the parameters:

  • Name of the interface, for example enp4s0

  • Value, for example 1300

Note

To change the MTU of the enp4s0 interface to 1300 :

  • Enter the set advanced-configuration mtu enp4s0 1300 command

  • Validate

set advanced-configuration mtu enp4s0 1300

The system displays the parameter update information.

Updating Monitoring Network MTU configuration to:
      - enp4s0: 1300

2.2.7.8. Rebuilding files

Rebuilding files occurs on the GCap thanks to its monitor engine (Sigflow).
These files are rebuilt under certain conditions that can be set from GCenter.
These conditions include the following:
  • The size of the observed file

  • The type of file observed, based either on the extension or on the filemagic

In addition, file reconstruction is only possible on certain protocols, the list of which varies according to the different GCap versions.
Here is the list of protocols supported by the GCap:
  • HTTP

  • SMTP

  • SMB

Other protocols are available from GCenter.
For more information, please refer to the GCenter documentation.

Note

Namely, the protocols on which it is possible to rebuild depends on the GCap and not the GCenter.
If the GCenter configuration instructs the GCap to rebuild a certain file type but the GCap is not capable of doing so, the rebuild will not take place.