IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: Install and Configure the Yara Connector

EDR: Install and Configure the Yara Connector

Environment

  • EDR Server: 7.7.x
  • Yara Connector: 2.2.0
  • Yara Manager: 2.2.0

Objective

Install and configure the Yara Connector.

Resolution

The Yara Connector analyzes new binaries against the current rules.  If enabled, EDR alerts on the matched binaries.  
The Yara Manager (optional) provides a easy method to manage the Yara Connector from the EDR Console.  Check the KB "Installing and Configuring the Yara Manager".

A.  Install Yara Component (derived from developer.carbonblack.com)

  1. Create the Carbon Black open source repo
cd /etc/yum.repos.d
curl -O https://opensource.carbonblack.com/release/x86_64/CbOpenSource.repo
  2. Install the cb-yara-connector 
yum install python-cb-yara-connector
  3. Install the cb-yara-manager (optional)
yum install python-cb-yara-manager
 

B. Configure and Enable Yara Connector (all environments)

1. Obtain an admin user token.
psql cb -p 5002 -c “select username, auth_token from cb_user where global_admin=true;”
2. Create the yara-configuration file
cd /etc/cb/integrations/yara/
mv connector.conf.example to yaraconnector.conf
vi /etc/cb/integrations/cb-yara-connector/yaraconnector.conf
3.  Modify yaraconnector.conf
mode=standalone   (for EDR cluster and EDR standalone environments distribution comms now use EDR redis)
cb_server_url=https://127.0.0.1
cb_server_token=< API TOKEN from step B1 GOES HERE >
broker_url=redis://127.0.0.1:6379 
numb_days_binaries=365 (default is best; initial scan span)
database-scanning_interval=900 (default is best; cannot be less than 360)
4. Use the default rule (already included) to get cb-yara-connector working, then add rules later.
5. Start Yara-connector.
systemctl stop cb-yara-connector
systemctl status cb-yara-connector
systemctl start cb-yara-connector
6. Enable the Threat Intelligence Yara Feed tile.
EDR Console > Threat Intelligence > Yara tile
Click "Enabled".
Notifications > "Create Alert"
 

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎05-25-2023
Views:
382
Contributors