wazuh icon indicating copy to clipboard operation
wazuh copied to clipboard

Google Workspace/Google Suite integration

Open arguellesm opened this issue 4 years ago • 40 comments

Wazuh version Component Action type
- Rules/Decoders Improve

Description

We should add support for Google Workspace (formerly Google Suite) logs.

Service

Offer official rules to manage Google Workspace log information.

Improvements

Current results

No Google Workspace rules or decoders.

Expected results

To be able to retrieve and analyze Google Workspace logs, raising alerts whenever it's needed.

Resources

Log source

Logs come from different sources, namely Workspace Enterprise Groups, Workspace Login Audit and Workspace Admin Activities (doc).

Log reference

Log examples

Example of an AuditLog object held in the protoPayload field of the log entry (see log format) (source).

{
  "serviceName": string,
  "methodName": string,
  "resourceName": string,
  "numResponseItems": string,
  "status": {
    object (Status)
  },
  "authenticationInfo": {
    object (AuthenticationInfo)
  },
  "authorizationInfo": [
    {
      object (AuthorizationInfo)
    }
  ],
  "requestMetadata": {
    object (RequestMetadata)
  },
  "request": {
    object
  },
  "response": {
    object
  },
  "metadata": {
    object
  },
  "serviceData": {
    "@type": string,
    field1: ...,
    ...
  }
}

arguellesm avatar Nov 08 '21 17:11 arguellesm

I think that @dariommr could be able to help to identify which events related to Google Workspace/Google Suite we can get using the existing GCP integration.

havidarou avatar Sep 15 '22 14:09 havidarou

Hi team,

Any news on that? Google Workspace's audit, security and other different type of logs are very relevant for an organization.

Thanks in advance!

ghost avatar Oct 13 '22 11:10 ghost

We'd also be interested in this. Seems surprising that Google Workspace support doesn't come out of the box with Wazuh

Nexus2k avatar Oct 18 '22 10:10 Nexus2k

We'd also be interested in this.

rodrigosec avatar Oct 24 '22 16:10 rodrigosec

This should be similar to Office 365 integration. The aim should be to gather information related to:

  • User audit logs.
  • Group audit logs.
  • App audit logs.
  • Gmail audit logs.
  • Google drive audit logs.
  • Others...

havidarou avatar Nov 25 '22 14:11 havidarou

Very very interested in seeing this move forward. I've got multiple clients who would benefit from Google Workspace audit log SIEM visibility.

branchnetconsulting avatar Nov 26 '22 03:11 branchnetconsulting

We'd also be interested in this. do you have any ETA for the same.

If any one create the decoder Please share with me

[email protected]

Thanks you

vslknsgr avatar Jan 25 '23 15:01 vslknsgr

Interested as well ! thx

arnaud-bastion avatar Feb 02 '23 20:02 arnaud-bastion

Interested in this feature!

elielsardanons avatar Feb 04 '23 00:02 elielsardanons

I think that @dariommr could be able to help to identify which events related to Google Workspace/Google Suite we can get using the existing GCP integration.

I've just set up the GCP integration, and I've shared the audit logs from Google Workspace with GCP. I've also created a sink using the gcloud console in the organisational context in order to gain access to the logs from workspace (apparently this is not possible from the web interface) to my pub/sub subscriber. I can see admin audit logs and login audit logs like the following in Wazuh:

  • google.login.LoginService.2svEnroll
  • google.login.LoginService.passwordEdit
  • google.login.LoginService.loginVerification
  • google.login.LoginService.loginSuccess
  • google.login.LoginService.loginChallenge
  • google.login.LoginService.riskySensitiveActionAllowed
  • google.apps.cloudidentity.groups.v1.MembershipsService.UpdateMembership
  • google.admin.AdminService.securityInvestigationQuery
  • google.admin.AdminService.alertCenterView
  • google.admin.AdminService.alertCenterListChange
  • google.admin.AdminService.alertCenterListRelatedAlerts
  • google.admin.AdminService.alertCenterListFeedback

This is probably not an exhaustive list since I've just enabled the extension, and Google probably lists all the events that it provides in its documentation. I think these (at least on the Business Starter plan) is pretty much all the logs I can get. It doesn't appear that Google Workspace allows forwarding audit logs for apps like Drive, Chat etc. to GCP. The link above specifies exactly which types of logs that can be forwarded. Are there other ways of accessing these audit logs that Wazuh could create an integration for?

The admin and login audit events are still pretty useful. The dashboard needs a serious update to make use of the data, however. This shouldn't be a big task, but I'm not sure how much of help I am, being mostly a Grafana user. I'll take a look. The current event columns are also not very useful for me for viewing the Workspace events.

I don't see any work done on rules for the admin/login events, so I'll probably start writing my own. The events show up, but I'd probably want descriptions and different alert levels.

misje avatar Mar 01 '23 08:03 misje

How can I implement this integration please?

captainido avatar Jun 02 '23 09:06 captainido

I would just like to inform you that I now have access to a Google Workspace Business Standard licence (upgraded from the previous tier), and I've already created my own rules to match all events of interest (to me). Tell me if this is of interest.

misje avatar Jun 02 '23 09:06 misje

@misje Those would be of interest to me. Please share.

kmfreder1 avatar Jun 02 '23 12:06 kmfreder1

Please share. I want it.

On Friday, 2 June 2023, Ken Fredericksen @.***> wrote:

@misje https://github.com/misje Those would be of interest to me. Please share.

— Reply to this email directly, view it on GitHub https://github.com/wazuh/wazuh/issues/10776#issuecomment-1573651141, or unsubscribe https://github.com/notifications/unsubscribe-auth/A72OHJHEMUG4XQNTUMUHGRDXJHLM7ANCNFSM5HTFDWFQ . You are receiving this because you commented.Message ID: @.***>

captainido avatar Jun 02 '23 18:06 captainido

Hello, also please share with me

Sent from Yahoo Mail for iPhone

On Saturday, June 3, 2023, 12:27 AM, captainido @.***> wrote:

Please share. I want it.

On Friday, 2 June 2023, Ken Fredericksen @.***> wrote:

@misje https://github.com/misje Those would be of interest to me. Please share.

— Reply to this email directly, view it on GitHub https://github.com/wazuh/wazuh/issues/10776#issuecomment-1573651141, or unsubscribe https://github.com/notifications/unsubscribe-auth/A72OHJHEMUG4XQNTUMUHGRDXJHLM7ANCNFSM5HTFDWFQ . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

vslknsgr avatar Jun 03 '23 03:06 vslknsgr

@misje could you share them with me as well?

joostgrunwald avatar Jun 19 '23 14:06 joostgrunwald

Can you share with me please?

On Friday, 2 June 2023, Andreas Misje @.***> wrote:

I would just like to inform you that I now have access to a Google Workspace Business Standard licence (upgraded from the previous tier), and I've already created my own rules to match all events of interest (to me). Tell me if this is of interest.

— Reply to this email directly, view it on GitHub https://github.com/wazuh/wazuh/issues/10776#issuecomment-1573462618, or unsubscribe https://github.com/notifications/unsubscribe-auth/A72OHJHOET5UI6QONNMEGODXJGZVDANCNFSM5HTFDWFQ . You are receiving this because you commented.Message ID: @.***>

captainido avatar Jun 19 '23 15:06 captainido

@misje :- Please share with me

vslknsgr avatar Jun 19 '23 15:06 vslknsgr

@misje could you share your Google workspace integration with me as well?

ghost avatar Jun 20 '23 19:06 ghost

Looking forward to this! @misje could you share Google Workspace integration with me? :)

brmb avatar Jun 23 '23 10:06 brmb

@misje could you share Google Workspace integration with me? :)

rodrigosec avatar Jun 23 '23 12:06 rodrigosec

@misje can you share your steps on how to integrate please?, thanks

all the love

Ajauregui69 avatar Jul 24 '23 16:07 Ajauregui69

@misje

As a fellow user of Google Workspace, I have recently had the opportunity to implement Wazuh into our organization and I must say it has been quite beneficial so far. I am also looking for integration of Google Workspace in Wazuh with your assistance.

zemoso-itsec avatar Jul 27 '23 07:07 zemoso-itsec

I've also ended up writing rules myself. It's not that difficult. Would anybody be willing to pay for them?

Nexus2k avatar Jul 27 '23 07:07 Nexus2k

@Nexus2k

Some of us may well be interested. Share out a list of your custom Google Workspace Wazuh rule descriptions to demonstrate the scope of your work, and you may well get some offers.

Thanks, Kevin

branchnetconsulting avatar Jul 27 '23 13:07 branchnetconsulting

Sorry for the delay, I've been focusing on other priorities.

Here are examples of how some of the many available Google Workspace audit rules available through cloud audit logs. I have only bothered to write rules for some of those I've actually seen in my system, and I haven't got around to add fields like mitre, gdpr, nist etc. Hardly any rule levels have been tuned to something other than 3. Also note that the rule IDs are outside of the recommended range by Wazuh, but they also do not conflict with any existing IDs.

There is much work to be done, and the rules would be far more useful if Wazuh supported accessing nested JSON data. I believe this feature is blocked by a rewrite of the rule engine?

If anyone is interested in a collective effort on working on these rules, I'll probably be interested in continuing working on them!

misje avatar Aug 01 '23 06:08 misje

Hi @misje, does the integration works on the starter plan or the standard plan is required? Is it possible to track SSO with google account? Do you think it is feasible to add DLP rules inside for mail content?

metrogeekythinker avatar Aug 22 '23 10:08 metrogeekythinker

@misje I left a comment adding a MITRE Attack technique to them :) thanks for creating the rules

joostgrunwald avatar Aug 28 '23 17:08 joostgrunwald

We're testing out Wazuh and a Google Workspace integration is one of the main things we would need, is there any update on when this may happen? GWS is one of the most used apps for business now so it's kinda weird that this isn't prioritized more.

dakotahjackson avatar Oct 16 '23 15:10 dakotahjackson

Hi @misje, does the integration works on the starter plan or the standard plan is required? Is it possible to track SSO with google account? Do you think it is feasible to add DLP rules inside for mail content?

I'm sorry it took so long for me to get back to you. It appears that Business Standard doesn't give you any additional audit events (through GCP pub–sub) compared to Business Starter. There may be additional auditing features, but none will reach Wazuh, unfortunately. This all means that the lower-tier Google Workspace "Business Starter" works just as well as the next tier in terms of Wazuh/GCP logging.

For specific auditing needs, please check my link on what's available, and add missing rules.

misje avatar Oct 16 '23 15:10 misje