Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Google Workspace] Add the domain recipient into the related.hosts field for the rules dataset. #5468

Closed
leandrojmp opened this issue Mar 7, 2023 · 2 comments · Fixed by #5469

Comments

@leandrojmp
Copy link
Contributor

Hello,

In some cases having the domain of the recipients e-mails on the google_workspace.rules dataset can help decide if an alert triggered by Google is an incident or not.

For example, having a DLP rule that will trigger when it detects some kind of information on e-mails or drives, like Credit card nubmers, if this is being shared between recipients on one of the companies domains it may be less critical than if the recipients are from external domains.

Currently the field related.hosts is populated by the user.domain and google_workspace.organization.domain, with the following processors on the logs-google_workspace.rules-XXX ingest pipeline.

  - append:
      field: related.hosts
      value: '{{{user.domain}}}'
      if: ctx.user?.domain != null
      allow_duplicates: false
      ignore_failure: true
  - append:
      field: related.hosts
      value: '{{{google_workspace.organization.domain}}}'
      if: ctx.google_workspace?.organization?.domain != null
      allow_duplicates: false
      ignore_failure: true

It would be nice to have this field being populate also with the domains from the recipients from the field google_workspace.rules.resource.recipients.

I have a working code in production and can make a PR.

@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine
Copy link

Package google_workspace - 2.3.0 containing this change is available at https://epr.elastic.co/search?package=google_workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants