SGBox CLI – SGBox Next Generation SIEM & SOAR https://www.sgbox.eu Next Generation SIEM & SOAR Mon, 02 Dec 2024 16:17:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.sgbox.eu/wp-content/uploads/2020/09/cropped-Logo-SGBox-Trasparente-NO-SCRITTA-150x150.webp SGBox CLI – SGBox Next Generation SIEM & SOAR https://www.sgbox.eu 32 32 Configure SGBox Timezone https://www.sgbox.eu/en/knowledge-base/configure-sgbox-timezone/ Thu, 27 Oct 2022 07:10:57 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7854 Set / Change SGBox Timezone

This article explain how to configure the SGBox Timezone. By default the SGBox timezone is set to Europe/Rome.
Following the steps, if you need to change it.

Connect via ssh (using a program like Putty) to the SGBox specifying the user cli.
If you haven’t changed them through the wizard, the default credentials are:

user: cli
pass: CL1changePW

Select Appliance Management > Set Timezone
Configure SGBox Timezone

First of all select Manage this host time zone in order to change the machine timezone.
Configure SGBox Timezone

Select your time zone

Configure SGBox Timezone Configure SGBox Timezone

Save the configuration and remember the timezone set
Configure SGBox Timezone

After click OK  the restart of process starts. It should take time, wait till it’s finished.

Configure SGBox Timezone Configure SGBox Timezone

After click OK  the restart of process starts. It should take time, wait till it’s finished.
Then select Manage DB time zone  in order to change the Database timezone

Configure SGBox Timezone

Select Edit configuration file, scroll down the configuration till <timezone> entry and put your timezone.
Be careful with changes made in the configuration file!

Configure SGBox Timezone Configure SGBox Timezone

After saved the configuration Select Restart Database in order to apply your changes

Configure SGBox Timezone

]]>
Collector TCPDump https://www.sgbox.eu/en/knowledge-base/collector-tcpdump/ Wed, 27 Jul 2022 13:12:16 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7671 Collector TCPDump

There are some tools you can use via CLI in order to check if there are some problems to receive or visualize data.
Connect via ssh (using a program like Putty) to the collector specifying the user sgbox.
If you haven’t changed them through the wizard, the default credentials are:

user: sgbox
pass: sgbox

Choose Appliance statistics

Dump network traffic

This option allows you to run a tcpdump directly on SGBox in order to check if the platform is correctly receiving logs from the data source, using the right port or protocol.
From
Collector TCPDump
Collector TCPDump
it’s possible choose three different way:

  1. Filter by IP: simple filter on data source IP all ports and protocols
  2. Filter SGBox ports: simple filter on ports 514 and 443 from all the data source
  3. Expert: you can enter all the tcpdump parameters.

In our example we choose Expert and we filter on host 192.168.2.9.
Collector TCPDump
Collector TCPDump
Collector TCPDump

]]>
Configure SGBox IP https://www.sgbox.eu/en/knowledge-base/configure-sgbox-ip/ Wed, 22 Jun 2022 12:37:30 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7555 Configuration

You can configure the SGBox network configuration using this tool.

Connection method:

  • SSH
  • Hypervisor Console

Connect via ssh (using a program like Putty) to SGBox specifying the user cli. If you haven’t changed them through the wizard, the default credentials are:

user: cli
pass: CL1changePW

Choose Network management
Configure SGBox IP

Configure SGBox interfaces

This option allows you to configure all the parameters (IP, Gateway, DNS and Domain) by following the wizard

Configure SGBox IP
Select the interface you want configure.
Configure SGBox IP

Select static option from the menu
Configure SGBox IP

Configure all the parameter.
Configure SGBox IP

Click on Submit to finish the configuration and choose when apply it.

Advanced network configuration

It’s also possible edit the interface file in order to specify advanced settings like: double interfaces, routes, etc..
From Network management select Edit interface file

Configure SGBox IP

specify the options and click on save.

Configure SGBox IP

]]>
TCPDump and SGTop https://www.sgbox.eu/en/knowledge-base/tcpdump-and-sgtop/ Mon, 20 Jun 2022 07:57:51 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7536 SGBox Troubleshoot

There are some tools you can use via CLI  in order to check if there are some problems to receive or visualize data.
Connect via ssh (using a program like Putty) to SGBox specifying the user cli.
If you haven’t changed them through the wizard, the default credentials are:

user: cli
pass: CL1changePW

Choose Appliance statistics
TCPDump and SGTop

Dump network traffic

This option allows you to run a tcpdump directly on SGBox in order to check if the platform is correctly receiving logs from the data source, using the right port or protocol.
From
TCPDump and SGTop
it’s possible choose three different way:

  1. Filter by IP: simple filter on data source IP all ports and protocols
  2. Filter SGBox ports: simple filter on ports 514 and 443 from all the data source
  3. Expert: you can enter all the tcpdump parameters.

In our example we choose Expert and we filter on host 192.168.2.9.
TCPDump and SGTop
TCPDump and SGTop
TCPDump and SGTop

SGTop

This tool is designed to focus on SGBox processes. If you receive the packets from the data source but you can’t see the logs in SGBox, maybe they are still in the queues. When SGBox has no problems: the queues should contain few objects and you can see your logs in SGBox.
TCPDump and SGTop

TCPDump and SGTop

*Queues: is a portion of disk or memory where the logs is temporary stored before to be write to the database.

]]>
Rsyslog TCP TLS Support https://www.sgbox.eu/en/knowledge-base/rsyslog-tcp-tls-support/ Wed, 13 Apr 2022 11:59:35 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7278 Rsyslog TCP with TLS support

It’s possible configure SGBox to support TCP with TLS protocol to receive syslog messages.

Requirements:

Be careful!! Making errors in the configuration can cause that service will not start correctly

In this section will be described the steps:
Connect to SGBox using terminal (like putty). Go to Appliance Management > Syslog > Edit configuration File.

Go down to SGBox customization Section and add the following strings:

# provides TCP TLS syslog reception
global(
DefaultNetstreamDriver="gtls"
DefaultNetstreamDriverCAFile="/etc/apache2/custom_certs/chain_bundle.crt"
DefaultNetstreamDriverCertFile="/etc/apache2/custom_certs/crt_bundle.crt"
DefaultNetstreamDriverKeyFile="/etc/apache2/custom_certs/key_bundle.key"
)
module(
load="imtcp"
StreamDriver.Name="gtls"
StreamDriver.Mode="1"
StreamDriver.Authmode="anon"
)
input(
type="imtcp"
port="6514"
ruleset="remote"
)

Save the configuration and click Restart Service

]]>
Rsyslog TCP support https://www.sgbox.eu/en/knowledge-base/rsyslog-tcp-support/ Fri, 01 Apr 2022 09:33:32 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=7260 Rsyslog TCP support

It’s possible configure SGBox to support both UDP and TCP protocol to receive syslog messages.

Be careful!! Making errors in the configuration can cause that service will not start correctly

In this section will be described the steps:
Connect to SGBox using terminal (like putty). Go to Appliance Management > Syslog > Edit configuration File.

Go down ti SGBox customization Section and it should appear as following:

# provides UDP syslog reception
$ModLoad imudp
$InputUDPServerBindRuleset remote
$UDPServerRun 514

# provides TCP syslog reception
$ModLoad imptcp
$InputPTCPServerBindRuleset remote
$InputPTCPServerRun 514

Save the configuration and click to Restart Service

]]>
Reset OpenVAS Password https://www.sgbox.eu/en/knowledge-base/reset-openvas-password-from-webui/ Thu, 25 Feb 2021 15:47:49 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=5075 Reset OpenVAS Web Interface password from WebUI

This article explains how to change the OpenVAS password on collectors version 5.

Connect to the collector on port 4000:

https://192.168.2.103:4000
user: admin
pass: admin

Go in the top right corner and select My Settings
Reset OpenVAS Password

Click on Edit My Settings
Reset OpenVAS Password

Enter the current admin’s password and type the new password.
Reset OpenVAS Password

!!! Be Careful !!!
If you change the admin password you need to change it also in NVS Configuration editor

Connect to the collector using cli interface, default user are:

user: sgbox
pass: sgbox

Go to Configuration > NVS Configuration editor
Reset OpenVAS Password

]]>
Extend Full Disk (SGBox V5) https://www.sgbox.eu/en/knowledge-base/extend-full-disk/ Wed, 01 Apr 2020 09:31:02 +0000 http://10.253.1.91/?post_type=epkb_post_type_1&p=3783 Extend the entire disk size

This article explains how to expand the capacity of SGBox’s disk. With version 5 is possible extend the full disk, not only the data partition. In order to extend the disk:

Requirements:

  • SGBox version 5 is required.
  • You need to extend SGBox disk from your hypervisor.
  • ⚠️ It may be necessary to reboot the machine after expansion on the hypervisor

Connect in ssh (using for example Putty program) to SGBox specifying the user cli.
If you haven’t changed them through the wizard, the default credentials are:

user: cli
pass: CL1changePW

Select Hard disk management

Extend Full Disk (SGBox V5)

Select Show current configuration in order to see your disk.

Extend Full Disk (SGBox V5)

In our case, we see that:

  • The hard disk is called: vda.
  • The partition with root mounted is the number: 2.
  • The SGBox partition is: 20G.

If the disk size is not increased maybe you need to restart you virtual machine! (also done after expansion by CLI interface, Appliance Management -> Reboot)

Extend Full Disk (SGBox V5)

Select Resize HDD to maximum partition size.

Extend Full Disk (SGBox V5)

Enter your hard disk name, in our case: vda.

Extend Full Disk (SGBox V5)

Enter the partition number, in our case: 2.

Extend Full Disk (SGBox V5)

Details has been shown during the partitioning…

Extend Full Disk (SGBox V5)

The hard disk is now succesfully extended.

    • New partition size is: 22G.

Extend Full Disk (SGBox V5)

]]>
Extend Data Disk (SGBox V4) https://www.sgbox.eu/en/knowledge-base/extend-data-disk/ Fri, 28 Jun 2019 11:58:19 +0000 https://10.253.1.90/sgbox/EN/?post_type=epkb_post_type_1&p=1652 The data disk

This article explains how to expand the capacity of SGBox’s data disk. Using LVM partitions you can add new disks and show them as a big single disc.
In order to extend disk

Requirements:

  • Sgbox must support LVM partitions: in the login screen there is an L next to the version number.
  • You have to add a new disk to the virtual machine.
  • SGBox must be updated to version 4.0.0.

Connect in ssh (using for example Putty program) to SGBox specifying the user cli.
If you haven’t changed them through the wizard, the default credentials are:

user: cli
pass: CL1changePW

Select Hard disk management
Extend Data Disk (SGBox V4)

Re-enter cli user password.
Extend Data Disk (SGBox V4)

Select Rescan drives.
Extend Data Disk (SGBox V4)

In our case, we see that:

  • The hard disk sda: has a partition ( sda2 ) with the LVM configured (vg_sgbox-lv_sgbox)
  • New added disk appears with sdb and is not partitioned

Extend Data Disk (SGBox V4)

Select Extend SGBox storage to another disk.
Extend Data Disk (SGBox V4)

A warning asks if we want to continue with the installation.
Click on Yes.
Extend Data Disk (SGBox V4)

Write the name of the hard disk you want to partition, in our case sdb.
Extend Data Disk (SGBox V4)

A warning tells us that hard disk will be partitioned and all data on the hard disk we have indicated will be deleted.
Click on Yes.
Extend Data Disk (SGBox V4)

We are shown as first step the partitioned sdb hard disk.
Click on OK
Extend Data Disk (SGBox V4)

We are then shown the hard disk with LVM configured.
Click on OK.
Extend Data Disk (SGBox V4)

Click OK again to exit the wizard.
Extend Data Disk (SGBox V4)

Below we can see two images of the dashboard, before and after the disk extension.
data disk is 15G
Extend Data Disk (SGBox V4)

After the procedure, the data disk is 16G
Extend Data Disk (SGBox V4)

]]>
Reset Admin password https://www.sgbox.eu/en/knowledge-base/reset-admin-password/ Fri, 28 Jun 2019 11:57:17 +0000 https://10.253.1.90/sgbox/EN/?post_type=epkb_post_type_1&p=1650 Reset Web Interface Admin password

This article explains how to reset the web interface admin password.

Connect via ssh (using a program like Putty) to SGBox specifying the user cli.
If you haven’t changed them through the wizard, the default credentials are:

user: cli
pass: CL1changePW

Select Password management
Reset Admin password

Select Reset admin password (web interface)
Reset Admin password

Enter the user’s password cli.
Reset Admin password

Enter new admin user password
Reset Admin password

Re-enter admin user password
Reset Admin password

Click on OK
Reset Admin password

]]>