USM Appliance™

Configure Database Plugins

Applies to Product: USM Appliance™ AlienVault OSSIM ®

Database plugins extract data from an external database and plow them into Events. USM Apparatus supports MySQL and Microsoft SQL Server using the UTF-8 character set encoding.

The database plugin configuration file provides information on how USM Apparatus should connect to and query the database.

Anatomy of the Plugin Configuration File

See beneath for a description of diverse sections in the database plugin configuration file above.

Modify the Plugin Configuration File

Before modifying the plugin configuration file, yous must first obtain the IP address, port number, and an authenticated user account of your database.

Alarm: For Microsoft SQL Servers, you must use SQL Server Authentication. You lot will receive a "Connexion refused" error if you utilise Windows Authentication instead.

This task enables advice with the external database from which the plugin receives data. You volition need control line access to USM Appliance to complete this task.

To configure communication with an external database

  1. Connect to the AlienVault Panel through SSH and apply your credentials to log in.

    The AlienVault Setup card displays.

  2. On the AlienVault Setup chief bill of fare, select Jailbreak System to gain command line access.

    Select Yes when prompted. You will exist in the root directory.

  3. Create the file /etc/ossim/agent/plugins/<database-plugin>.cfg.local.

    For example, to configure the mcafee-epo plugin, you demand to create the mcafee-epo.cfg.local file.

  4. In the .local file, add the fields shown beneath and supervene upon the angle subclass part (including the brackets) with your database settings.

    [config]

    source_ip=<database_IP>

    source_port=<database_port>

    user=<username>

    password=<user_password>

    db=<database_name>

    sleep=<number_of_seconds_between_sending_queries>

  5. Save the file.
  6. Restart all services for changes to apply:

    alienvault-reconfig -c -v -d

Of import: If connecting to multiple databases, you lot must repeat this task for every external database you want to receive information from. In other words, you must create a different <database-plugin>.cfg.local file for each database you want to connect to.

If you do not meet any events in Analysis > Security Events (SIEM) later y'all have modified the plugin configuration file and enabled the plugin, you can troubleshoot the database connexion using tcpdump or ngrep. The following example examines the traffic to a MSSQL database.

ngrep -d eth0 host ten.ten.10.10

where 10.10.10.10 is the IP address of the database server. If the database connexion is established, y'all will see output like to the post-obit. You can confirm the user name, countersign, and database name (loftier-lighted in bold) from the output.

interface: eth0 (ten.ten.10.10/255.255.255.224)

filter: (ip or ip6) and ( host 10.x.x.10 )

......

#####

T 10.10.10.20:54983 -> ten.ten.x.10:1433 [AP]

........10.x.10.x..................siem.................... Password

..............37876...............pymssql............10.x.ten.10............

...... PASSWORD....................DB-Library........us_english.............

....L.........................ANSI_X3.iv-1968..................512............

#

T 10.ten.10.10:1433 -> 10.10.ten.20:54983 [AP]

.....chiliad.......ePO4_HOSTNAME17.master.B.E.....-.Inverse database context to

'ePO4_HOSTNAME17'..HOSTNAME15........iso_1... .......Microsoft SQL

Server.._........512.512.........

If the database connexion cannot be established, yous will receive an error instead.