SmartConnector For Snort DB - Configuration Guide
SmartConnector For Snort DB - Configuration Guide
Configuration Guide
SmartConnector for Snort DB
September 30, 2014
Copyright 2003 2014 Hewlett-Packard Development Company, L.P.Confidential computer software. Valid license
from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer
Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S.
Government under vendor's standard commercial license.
The information contained herein is subject to change without notice. The only warranties for HP products and services
are set forth in the express warranty statements accompanying such products and services. Nothing herein should be
construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions
contained herein.
Follow this link to see a complete statement of ArcSight's copyrights, trademarks and acknowledgements:
http://www.hpenterprisesecurity.com/copyright.
The network information used in the examples in this document (including IP addresses and hostnames) is for illustration
purposes only.
This document is confidential.
Revision History
Date
Description
09/30/2014
05/15/2012
02/15/2012
08/12/2011
02/15/2011
09/24/2010
02/11/2010
06/30/2009
05/15/2009
Noted that PostgreSQL is supported only for Snort DB versions 1.8 and later.
03/27/2009
Configuration Guide
Product Overview
Snort is an open-source network intrusion detection system, capable of performing realtime traffic
analysis and packet logging on IP networks. It can perform protocol analysis and content
searching/matching, and can be used to detect a variety of attacks and probes, including buffer
overflows, stealth port scans, CGI attacks, SMB probes, and OS fingerprinting attempts.
Configuration
Configure Snort to Use MySQL
The Snort DB can be created in MySQL. See your Snort documentation for more information. MySQL
JDBC driver version 5.0.8 is supported.
To configure Snort to use MySQL with the SmartConnector for Snort DB:
1
Within the snort.conf file, locate the following line and remove the comment symbol (#):
output database: alert, mysql, user=<your_snort_mysql_user id>
dbname=<database_created_file_with_create_mysql>
host=<location_of_mysql_db> sensor_name=<your given sensor name>
Notes:
When Snort DB is run on Linux, the sensor name is assigned a format such as
snorthostname:snifferingNICInterface such as localhost:eth1. If the sniffering NIC
has not been assigned an IP address, there could be a problem with host name resolution. To
avoid this, append the sensor name field in the snort.conf files, as shown in the previous example.
MySQL Database Versions 5.0.8 and earlier are supported. If the MySQL version is 4.1 or later,
the password hash format must be changed for compatibility, as follows:
Login to MySQL as root and select "mysql" as the database. Run the following command:
update user set password = old_password(`your password) where user =
`your snort database user name;flush privileges;
Confidential
Is the name of the database used by Snort (the database created with create mysql).
MySQLuser
ConnectorHost
The hostname (or IP address) of the host running the ArcSight SmartConnector (for testing
purposes, you could use %, which means "any host").
MySQLPassword
The password of the user you created for the Snort DB.
Click Start; select Control Panel -> Administrative Tools -> Data Sources (ODBC).
Enter the parameters for your DSN (Database, Server, User Name, and Password) and, optionally,
enter a description.
Click Save.
Test the ODBC data source by clicking Test Data Source. If the connection is established
successfully, click OK to close the ODBC Data Source window.
Remember the ODBC name, username, and password you used in the DSN creation; it will be required
when you install the SmartConnector.
Confidential
Configuration Guide
For complete product information, read the Administrator's Guide as well as the Installation and
Configuration guide for your ArcSight product before installing a new SmartConnector. If you are
adding a connector to the Connector Appliance, see the ArcSight Connector Appliance Administrator's
Guide for instructions, and start the installation procedure at step 3.
Before installing the SmartConnector, be sure the following are available:
Administrator passwords
Unless specified otherwise at the beginning of this guide, this SmartConnector can be installed on all
ArcSight supported platforms; for the complete list, see the SmartConnector Product and Platform
Support document, available from the HP SSO and Protect 724 sites.
1
Download the SmartConnector executable for your operating system from the HP SSO site.
When the installation of SmartConnector core component software is finished, the following window
is displayed.
Confidential
Enter the required SmartConnector parameters to configure the SmartConnector, then click Next.
Parameter
Description
Snort Database
JDBC Driver
Snort Database
URL
Confidential
Configuration Guide
Parameter
Description
For PostgreSQL databases, use the format 'jdbc:postgresql://<HostName or Ip
Address>:5432/<Database Name>'. PostgreSQL databases are not supported for Snort
DB 1.8 and earlier versions.
Snort Database
User
Login name of database user with appropriate privilege to access the database.
Snort Database
Password
The next window asks for the destination type; make sure ArcSight Manager (encrypted) is
selected and click Next. (For information about any of the other destinations listed, see the
ArcSight SmartConnector User's Guide as well as the Administrator's Guide for your ArcSight
product.)
Enter the Manager Host Name, Manager Port, and a valid ArcSight User Name and Password.
This is the same user name and password you created during the ArcSight Manager installation.
Click Next.
Enter a name for the SmartConnector and provide other information identifying the connector's use
in your environment. Click Next; the connector starts the registration process.
10 The certificate import window for the ArcSight Manager is displayed. Select Import the certificate
to the connector from destination and click Next. If you select Do not import the certificate to
connector from destination, the connector installation will end.
Confidential
The certificate is imported and the Add connector Summary window is displayed.
11 Review the Add connector Summary and click Next. If the summary is incorrect, click Previous
to make changes.
12 The wizard now prompts you to choose whether you want to run the SmartConnector as a standalone process or as a service. If you choose to run the connector as a stand-alone process, skip
step 13. If you choose to run the connector as a service, the wizard prompts you to define service
parameters. See "Run the SmartConnector" later in this guide for more information.
Confidential
Configuration Guide
13 Enter the service parameters and click Next. The Install Service Summary window is displayed.
14 Click Next.
To complete the installation, choose Exit and click Next. To enable FIPS-compliant mode, choose
Continue, click Next, and continue with "Enable FIPS Mode."
Complete any Additional Configuration required, then continue with the "Run the SmartConnector."
For connector upgrade or uninstall instructions, see the SmartConnector User's Guide.
Confidential
10
Device-Specific Field
4, 5, or 6
0 or 1
Destination Address
IP_DST
Destination Port
Device Address
IPADDR
SIG_GID
SIG_REV
ICMP_TYPE
ICMP_CODE
Preprocessor
data_payload
SIG_CLASS_NAME
HOSTNAME
INTERFACE
Device Product
'Snort'
TIMESTAMP
Device Severity
SIG_PRIORITY
Device Vendor
'Snort'
Name
SIG_NAME
Source Address
IP_SRC
Source Port
Transport Protocol
IP_PROTO
Confidential
Configuration Guide
Payload Support
Payload support is available with this SmartConnector. Payload refers to the information carried in the
body of an event's network packet, as distinct from the packet's header data. While security event
detection and analysis usually centers on header data, packet payload may also be forensically
significant.
You need not explicitly enable payload. However, payloads are downloaded and stored only on
demand; you must configure ESM to log these packets. By default, 256 bytes of payload will be
retrieved.
To get payload from the SmartConnector for Snort DB, run the SmartConnector as a user who has
permission to access the payload files generated by Snort. Otherwise, the SmartConnector will receive
an access denied error when trying to read the payload files.
You can retrieve, preserve, view, or discard payloads using the ArcSight Console. Because event
payloads are relatively large, ArcSight does not store them by default. Instead, you can request
payloads from devices for selected events through the Console. If the payload is still held on the device,
the ArcSight SmartConnector retrieves it and sends it to the Console.
Whether an event has a payload to store is visible in event grids. Unless you specifically request to do
so, only the event's "payload ID" (information required to retrieve the payload from the event source) is
stored. Payload retention periods are controlled by the configuration of each source device.
Locate Payload-Bearing Events
The first step in handling event payloads is to be able to locate payload-bearing events among the
general flow of events in a grid view. In an ArcSight Console Viewer panel grid view, right-click a
column header and choose Add Column < Device > Payload ID. Look for events showing a
Payload ID in that column.
Retrieve Payloads
In a Viewer panel grid view, double-click an event with an associated payload. In the Event
Inspector, click the Payload tab, then click Retrieve Payload.
Preserve Payloads
In a grid view, right-click an event with an associated payload, select Payload, then Preserve.
Alternatively, in the Event Inspector, click the Payload tab, then Preserve Payload.
Discard Payloads
In a grid view, right-click an event with an associated payload and select Payload, then Discard
Preserved. You also can use the Event Inspector: In a grid view, double-click an event with an
associated payload. In the Event Inspector, click the Payload tab. Click Discard Preserved
Payload.
Save Payloads to Files
In a grid view, double-click an event with an associated payload. In the Event Inspector, click the
Payload tab. Click Save Payload. In the Save dialog box, navigate to a directory and enter a name
in the File name text field. Click Save.
Confidential
11
Troubleshooting
How do I make sure that the Snort database is running on the right port?
If the ArcSight SmartConnector fails to communicate with the Snort database, make sure Snort
database is running on the correct port (by default, it is 3306). The netstat command is one way to
check this:
netstat -an | grep 3306
How can I get historical events when the Snort database connector is restarted?
When you stop the SmartConnector, the ArcSight Manager will not receive real-time events. To capture
events that are generated when the connector is down, follow these steps to configure the
SmartConnector to pick up historical events when it is restarted:
12
When the connector configuration window is shown, click No to enter non-wizard mode.
Highlight the Snort database connector and find the entry called preserve state.
Restart the SmartConnector so that the last event ID will be saved the next time you stop the
SmartConnector.
Confidential