LogRhythm
Integrate GravityZone Cloud with LogRhythm
As a Bitdefender partner, you can integrate GravityZone with Logrythm using GravityZone APIs and a LogRhythm Open Collector. With this service, you are able to send data from GravityZone Control Center to LogRhythm.
Requirements
A LogRhythm instance installed with the PM role.
A virtual machine with a LogRhythm Open Collector agent installed.
A virtual machine with a LogRhythm System Monitor Agent installed.
Integration steps
Enable Event Push API in GravityZone Control Center
Log in to GravityZone Control Center.
Go to My Account.
Under API keys section, click Add.
Select the Event Push Service API check box and click Save. The new key appears in the API Keys table.
Click Save to preserve the changes made in My Account page.
Configure the integration in Logrythm
Log in to the endpoint that has Open Collector installed.
Configure a Webhook Beat.
Initialize the Webhook Beat:
Start the Beat:
./lrctl webhookbeat start
The configuration menu is displayed. Use your keyboard arrows to navigate between fields.
Select New webhookbeat instance from the list.
Under Enter the unique identifier for the webhookbeat instance, enter a name for the instance.
Set up a listener using the Enter the hostname/IP for webhook configuration. The default value is
localhost
.Note
If you provide your own hostname/external IP, make sure it is publicly exposed on the specified port and is mapped to the same system on which the beat is running.
Under Enter the port on the Webhook server beat where data should be sent, enter 8080.
Under Do you want to enable HTTPS?, select
No
.Restart Open Collector and Metrics to apply new settings.
./lrctl oc restart && ./lrctl metrics restart
Configure Open Collector to process Antimalware and Firewall events from GravityZone Event Push Service.
Download these plugin files and copy them to the Open Collector machine where the
lrctl
script is located.Enable a Custom OC Pipeline, if not present.
./lrctl ocpipeline install ./lrctl lrjq install
Import the plugin.
cat bitdefender.pipe | ./lrctl oc pipe augument import
Restart all the services on the Open Collector.
./lrctl webhookbeat restart && ./lrctl metrics restart && ./lrctl oc restart
Prepare a certificate to use in the
main.go
script. You can use one of your existing certificate or generate a new one.Run the
main.go
script and configure it to receive events from the Event Push Service.Run
main.go
for the first time. You need to configure the webhook address, certificate and private key.go run main.go
Enter the IP of the webhook. If you are running the script on the same machine where you are running the webhook, you can leave
localhost
.Config file not found. Please provide the following information: For the OC webhook, localhost is the default. Would you like to change it? (y/n)
Enter
8080
as the port.For the OpenCollector Webhook Port, 8081 is the default. Would you like to change it? (y/n)
Use the certificate you prepared in step 5.
Enter the path of the certificate.crt file ca_crt_file_path (you may want to try fullchain.crt:
Enter the certificate's private key.
Enter the path to privkey.cem file ca_priv_file_path (you may want to try privkey.pem:
Disable debug mode.
Enable debug mode? (y/n)
Run again the script as a server.
This will listen on the port 443 and it is the location where the endpoint should send the events.
Post the following JSON to the GravityZone API with the tags below replaced to match your setup, and the events you want to monitor set to
true
:{ "params": { "status": 1, "serviceType": "jsonRPC", "serviceSettings": { "url": "https://<agent_ip>:443/webhook", "requireValidSslCertificate": false, "authorization": "<secret>" }, "subscribeToEventTypes": { "hwid-change": true, "modules": true, "sva": true, "registration": true, "supa-update-status": true, "av": true, "aph": true, "fw": true, "avc": true, "uc": true, "dp": true, "device-control": true, "sva-load": true, "task-status": true, "exchange-malware": true, "network-sandboxing": true, "malware-outbreak": true, "adcloud": true, "exchange-user-credentials": true, "exchange-organization-info": true, "hd": true, "antiexploit": true } }, "jsonrpc": "2.0", "method": "setPushEventSettings", "id": "1" }
Note
Only
av
andfw
events are available in LogRhythm.Configure LogRhythm to display events with low priority and test out the integration by using an EICAR or performing a port scan:
On LogRhythm PM, open LogRhythm console.
Select Deployment Management.
Open Platform Manager tab.
Change global risk priority from
50
to0
.Note
EICAR test events have 10 points, and port scan is 19 points.
Apply changes.
Use the EICAR or prot scan to generate an event.
Configure the risk priority in LogRhythm specified in step 8 to match your specific requirements and environment.