When you configure CloudPassage Halo integration to send log data to USM Anywhere, you can use the CloudPassage Halo plugin to translate the raw log data into normalized events for analysis.
|Device type||Unified threat management|
|Vendor link||See the Common Event Format Configuration Guide for Python on https://github.com/cloudpassage/halo-event-connector-python.|
Integrating CloudPassage Halo
Before you configure the integration, you must have:
- Reachability of the USM Anywhere Sensor
- IP address of the USM Anywhere Sensor
- Access to your CloudPassage API key
- Python 2.6 or above
- Event Connector script and its associated files
The Event Connector retrieves events from your CloudPassage Halo account by making calls to the CloudPassage API. The API requires the script to authenticate itself during every session. For this purpose, you must make your CloudPassage API Key available to the script.
To configure CloudPassage Halo to send log data over syslog to USM Anywhere
Place all the halo-event-connector script files in the same location. These consist of the following:
- cpapi.py and cputils.py
- (Windows users only) remote_syslog.py
- Create a file called haloEvents.auth and place it in the same location as the other files.
Retrieve and save your CloudPassage API key by following these steps:
- Log in to the CloudPassage Portal.
Go to SETTINGS > Site Administration and click the API Keys tab. If you haven’t generated an API key yet, do so by clicking Add New Key.
If you do create an API Key, we recommend that you make the permission Read Only, as a best practice. You don't need a higher permission for this purpose.
To retrieve both the Key ID and the Secret Key values for the API key, on the API Keys tab, display both values by clicking Show.
Copy both and paste them into the empty haloEvents.auth file, as just one line, with the key ID and the secret separated by a vertical bar ("|"):
Note: If you want to stream events from multiple Halo accounts, add one additional line to this file for each account, containing the account's key ID and secret key, formatted as shown.
Configure your syslog daemon to forward the logs retrieved to the USM Anywhere Sensor, using one of thefollowing methods.
Check for the appropriated syslog configuration file, and add and save your USM Anywhere Sensor IP address to it:
ls –d /etc/*syslog*
MS Windows users
Edit the remote_syslog.py file and replace ... host='localhost' ... in the file with ... host='<usm-anywhere-ip/hostname>'....
Launch the script using the following flags:
haloEvents.py --cefsyslog --port=514
- --cefsyslog = Outputting the log data in the format supported by the plugin.
- --port=514 = (Optional) Configures the UDP port to be 514, if that is not the number you currently use for UDP.
For plugin enablement information, see Adding AlienApps to an Asset.
Available Plugin Fields
The following plugin fields are important attributes extracted from the syslog message. The USM Anywhere reports use these fields, and you can also reference them when creating custom reports. In addition to reporting, the USM Anywhere correlation rules make use of these fields.
For troubleshooting, refer to the vendor documentation: