Azure-Sentinel icon indicating copy to clipboard operation
Azure-Sentinel copied to clipboard

VMware Carbon Black Cloud Sentinel Data connector not ingesting alerts- Sentinel

Open sandeep5234 opened this issue 1 year ago • 14 comments

We have updated the VMware carbon black data connector to new version. There are 2 functions in it, The audit event function is working ok. But AlertsAPITimer function is not ingesting data. We have noticed that ORG KEY ID is a new field required as well because notification_cl is deprecated. We have added the ORK KEY ID into Environmental variables. But this didn't fix the issue.

We can see there are no errors as well. But there is no data as well for alerts, We have triggered few test alerts from Carbon black console, but still no data. This is all the output we see image

sandeep5234 avatar Jun 20 '24 00:06 sandeep5234

Hi @sandeep5234, Thanks for flagging this issue, we will investigate this issue and get back to you with some updates by 27 June 2024. Thanks!

v-rusraut avatar Jun 21 '24 06:06 v-rusraut

thank you @v-rusraut .

sandeep5234 avatar Jun 21 '24 06:06 sandeep5234

Hi @sandeep5234, We are working on reproduce the issue. Thanks

v-rusraut avatar Jun 28 '24 06:06 v-rusraut

Thanks for the update @v-rusraut

sandeep5234 avatar Jun 28 '24 07:06 sandeep5234

@v-rusraut Any update on this?

sandeep5234 avatar Jul 02 '24 01:07 sandeep5234

Hey @sandeep5234, While configuring the function app, what value you have added for Log Types? Could you please check with below one :-

image

v-sudkharat avatar Jul 02 '24 12:07 v-sudkharat

@v-sudkharat I have added above log types and getting below error now. image image image image

sandeep5234 avatar Jul 03 '24 03:07 sandeep5234

@v-sudkharat above error coming up on AuditEventAlertsTimer function but the AlertsAPITimer function is still showing same output after adding new log types image

sandeep5234 avatar Jul 03 '24 03:07 sandeep5234

@v-sudkharat I have added above log types and getting below error now. image image image image

@sandeep5234, Check with the log's by updating the PowerShell version to 7.4 in configuration tab : image

And also check the runtime version as well, it should be 4: image

Once, update above changes restart the function app and check for the logs. Thanks!

v-sudkharat avatar Jul 03 '24 07:07 v-sudkharat

ok checking now @v-sudkharat

sandeep5234 avatar Jul 03 '24 07:07 sandeep5234

@v-sudkharat things looking better than last time. I will ask customer to raise test alerts and confirm back.

image

sandeep5234 avatar Jul 03 '24 07:07 sandeep5234

@sandeep5234, Great. So can we close this issue? if your issue gets resolved. Please let us know if anything for us. Thanks!

v-sudkharat avatar Jul 03 '24 08:07 v-sudkharat

Hey @sandeep5234, While configuring the function app, what value you have added for Log Types? Could you please check with below one :-

image

Hi - Please can you confirm the correct format for this variable is as pictured or the value should be -

["alert","audit","event","alertSIEMAPI"]

Thanks for your help!

MBCloudTeck avatar Jul 03 '24 15:07 MBCloudTeck

Further to this, are there any full configuration documents you would recommend. The most helpful we have found is https://simple-security.ca/2023/05/02/cheat-sheet-for-configuring-carbon-black-cloud-edr-for-sentinel/

MBCloudTeck avatar Jul 03 '24 15:07 MBCloudTeck

@v-sudkharat We have generated few alerts in Carbon black console but still didn't get notifications in Sentinel workspace. What else can we we check?

sandeep5234 avatar Jul 08 '24 06:07 sandeep5234

Hey @sandeep5234, While configuring the function app, what value you have added for Log Types? Could you please check with below one :- image

Hi - Please can you confirm the correct format for this variable is as pictured or the value should be -

["alert","audit","event","alertSIEMAPI"]

Thanks for your help!

Yes, you add those values.

v-sudkharat avatar Jul 08 '24 08:07 v-sudkharat

Hi @sandeep5234, Could you please check the data is ingesting into the table - CarbonBlackAlerts_CL, and let us know the result. Currently, our team is planning to make this change into solution as well. Thanks!

v-sudkharat avatar Jul 08 '24 08:07 v-sudkharat

@v-sudkharat looks like that table is not created in the workspace image Will we need to create that table manually?

sandeep5234 avatar Jul 08 '24 12:07 sandeep5234

@v-sudkharat looks like that table is not created in the workspace image Will we need to create that table manually?

No the table should self create.

MBCloudTeck avatar Jul 08 '24 12:07 MBCloudTeck

Hey @sandeep5234, While configuring the function app, what value you have added for Log Types? Could you please check with below one :- image

Hi - Please can you confirm the correct format for this variable is as pictured or the value should be - ["alert","audit","event","alertSIEMAPI"] Thanks for your help!

Yes, you add those values.

To confirm this only worked using the values seen in the document. NOT the ones I included here.

Powershell Version 7.2 in the app configuration.

The APP type variable - alertSIEMAPI,audit,event

Make these changes then restart the app. Re Run.

Within the Function app - Under LOG Stream, post any further errors!

MBCloudTeck avatar Jul 08 '24 12:07 MBCloudTeck

@MBCloudTeck applied above settings but no change. My function app is not even creating the table in the workspace. But I can see it says 0 alert . We definitely had some alerts over the weekend.

image

sandeep5234 avatar Jul 08 '24 13:07 sandeep5234

@v-sudkharat I have asked customer to generate test alerts. In total 3 alerts were generated and I can see 3 alerts in the function app logs but no data appears in the sentinel workspace.

Please see below

image

Do you think it is something to do with dates shown so far behind in the logs?

sandeep5234 avatar Jul 08 '24 23:07 sandeep5234

Based on you getting that far, I would now go back to basics and investigate,

2, Validate the function app access to the Log Analytics Workspace, or better temp "Contributor to the Resource group" the Log analytics sits in, and give it Sentinel Contributor temporally just to be safe.

1, The format of the logs. Ensuring the exact string above is listed. Use postman to validate the call and response.

MBCloudTeck avatar Jul 09 '24 21:07 MBCloudTeck

@v-sudkharat I have checked the Function app from my side but stuck now. Please let me know the next steps.

sandeep5234 avatar Jul 10 '24 06:07 sandeep5234

Based on you getting that far, I would now go back to basics and investigate,

2, Validate the function app access to the Log Analytics Workspace, or better temp "Contributor to the Resource group" the Log analytics sits in, and give it Sentinel Contributor temporally just to be safe.

1, The format of the logs. Ensuring the exact string above is listed. Use postman to validate the call and response.

thanks @MBCloudTeck I think function post request used Workspace ID and Key to post data and I think same ID and key can be used to create authorisation header as well.

Not sure what else to check.

sandeep5234 avatar Jul 10 '24 06:07 sandeep5234

Hi @sandeep5234, Let's connect via a call, to understand and troubleshoot the issue, could you please send mail id with us on - [email protected]

v-sudkharat avatar Jul 11 '24 08:07 v-sudkharat

@v-sudkharat I have sent you the email and added my availability as well.

sandeep5234 avatar Jul 11 '24 08:07 sandeep5234

Hi @sandeep5234, Sent an invite via a mail. Thanks!

v-sudkharat avatar Jul 15 '24 08:07 v-sudkharat

Hey @sandeep5234, As we are in touch with our support team for this issue, and keeping you updated over mail, so can we close this issue from GitHub? Thanks!

v-sudkharat avatar Aug 05 '24 11:08 v-sudkharat

@v-sudkharat yes you can close this case. Thank you.

sandeep5234 avatar Aug 05 '24 12:08 sandeep5234