TAXII Connector for EDR
Carbon Black EDR (Endpoint Detection and Response) is the new name for the product formerly called CB Response.
VMware Carbon Black EDR connector for pulling and converting STIX information from TAXII Service Providers into EDR Feeds.
You can install the pre-built RPMs via YUM by using the CB Open Source repository. (See instructions below.)
This document describes how to install and use the EDR TAXII Connector. This connector allows for the importing of STIX data by querying one or more TAXII services, retrieving that data, and then converting it into CB feeds using the CB JSON format for IOCs. The job queries for available STIX/TAXII data that is newer than the last time it asked, and by default runs every hour.
For each TAXII service, available “collections” are enumerated and a Cb Response Feed is created. For example, if you have two TAXII services and each exposes two collections, you will have four CB feeds as a result of this connector.
The following IOC types are extracted from STIX data:
- MD5 Hashes
- SHA-256 Hashes
- Domain Names
- IP-Address Ranges
This EDR TAXII Connector has the following requirements:
- VMware Carbon Black EDR 5.0 (or greater) – this integration leverages API calls and feed functionality available in Cb Response 5.0 and newer. In order to check the version, you can run the following rpm command on your server:
[root@localhost ~]# rpm -qa | grep cb-enterprise cb-enterprise-220.127.116.11122.1654-1.el6.x86_64
- Access to TAXII Service Provider – the purpose of this integration is to retrieve STIX threat information via a TAXII service, so if you do not have access to a TAXII service this integration will be of no value. Example services are SoltraEdge and HailATaxii.com
Take the following steps to install the Cb Response Taxii Connector:
- Install the CbOpenSource repository if it does not already exist:
cd /etc/yum.repos.d curl -O https://opensource.carbonblack.com/CbOpenSource.repo
- Install the RPM:
yum install python-cbtaxii
When an upgrade is available, install it by executing:
yum install python-cbtaxii -y
NOTE: If upgrading from 1.0/1.1 to 1.2, you will need to set auth_token (EDR Admin API Token) in the config file under the cbconfig directive.
Please note that a new
/etc/cb/integrations/cbtaxii/cbtaxii.conf.example might be made available in some cases,
at which point any new settings should be studied, understood, and applied to the production configuration file if necessary.
Use the supplied sample configuration file as the basis of your own configuration file:
cp /etc/cb/integrations/cbtaxii/cbtaxii.conf.example /etc/cb/integrations/cbtaxii/cbtaxii.conf
From here, one or more TAXII services can be configured. The example configuration file is placed here along with the comments it contains:
Imports taxii/stix feeds into VMware Carbon Black EDR feeds # general cbconfig options [cbconfig] # change this if your API port is different #(API port is usually the same port that you login using for the UI) server_port=443 # You MUST set this to a CB Server Admin API Token auth_token= # # Put each site into its own configuration section. # You might just have a single site, like soltra edge or a remote taxii # server # Make sure each section like this has a unique name # [soltraedge] # the address of the site (only server ip or dns; don't put https:// or # a trailing slash) # for example, site=analysis.fsisac.com site=192.168.230.205 # change to true if you require https for your TAXII service connection use_https=false # by default, we validate SSL certificates. Turn this off by setting # sslverify=false ssl_verify=false # if you need SSL certificates for authentication, set the path of the # certificate and key here. Please leave blank to ignore. cert_file= key_file= # username for auth username=admin # password for auth password=avalanche # you can optionally specify which collections to convert to feeds # (comma-delimited) collections=* # the output path for the feeds, probably leave this alone output_path=/usr/share/cb/integrations/cbtaxii/feeds/ # the icon link, we come with soltra and taxii icons, but if you # have your own, this will show up icon_link=/usr/share/cb/integrations/cbtaxii/soltra-logo.png # automatically create CB feeds, probably leave this to true feeds_enable=true # Do you want feed hits in CB to generate alerts? Available options # are syslog or cb, and you can do both by putting syslog,cb feeds_alerting=syslog,cb # there have been a lot of indicators that are whole class Cs. # Set this to false if you do not want to include these indicators, # otherwise set to true enable_ip_ranges=true # (optional) the start date for which to start requesting data. # Defaults to 2015-01-01 00:00:00 if you supply nothing start_date=2015-03-01 00:00:00 # (optional) the minutes to advance for each request. This # defaults to 15. If you don't have a lot of data, you could # advance your requests to every 60 minutes or multiply 60 times # number of hours, so 1440 to ask for data in daily chunks minutes_to_advance=30 # (OPTIONAL) # The number of reports to collect from each site, limited to 10K by # default when committed reports_limit=10000
By default the linux cron daemon will run this integration every hour to check for new data from the TAXII services
you have configured. When it runs it will use the current settings found in
so make sure you are careful when changing any of those settings.
When you first install the connector, you might not want to wait until the hour mark for the job to run. In this case, you can force the connector to run manually. As either root or cb user on the EDR Server, execute the following command:
/usr/share/cb/integrations/cbtaxii/cbtaxii -c /etc/cb/integrations/cbtaxii/cbtaxii.conf
- This script can take a long time to run depending on the amount of data available from the TAXII services you have configured.
- This script logs everything to
/var/log/cb/integrations/cbtaxii/cbtaxii.log, so you will see very little output when you run it manually.
If you want to check that your credentials work and list the available collections, execute the same command with -l (lowercase-L):
/usr/share/cb/integrations/cbtaxii/cbtaxii -c /etc/cb/integrations/cbtaxii/cbtaxii.conf -l
If you suspect a problem, please first look at the cbtaxii connector logs found here:
(There might be multiple files as the logger “rolls over” when the log file hits a certain size).
We’ve seen where Soltra Edge had a user account that wasn’t returning data past a particular date for a specific username. We don’t know why this was the case. The customer created a new SoltraEdge user account and used those credentials in our connector and everything went back to working.
Additionally, due to STIX being a particularly verbose format, sometimes IOCs are stored in fields that we don’t expect. This could result in some IOCs you see in your Taxii platform (such as SoltraEdge) but not show up in EDR. For this and other issues, you can export the raw XML that our connector receives so we can see how information is represented. To export, use the following command, then contact us and we’ll set up a place for you to place the exported XML for our analysis.
/usr/share/cb/integrations/cbtaxii/cbtaxii -c /etc/cb/integrations/cbtaxii/cbtaxii.conf --export
If you are running on CentOS/Redhat 6 then you need to use the source package of lxml from pip.
Use this command to obtain python requirements:
pip install --no-binary lxml -r requirements.txt
The GitHub repository is here.
- View all API and integration offerings on the Developer Network along with reference documentation, video tutorials, and how-to guides.
- Use the Developer Community Forum to discuss issues and get answers from other API developers in the VMware Carbon Black Community.
- Report bugs and change requests to Carbon Black Support