elastic / detection-rules

https://www.elastic.co/guide/en/security/current/detection-engine-overview.html
Other
1.92k stars 492 forks source link

[New Rule] Multiple successive Google Workspace groups joined or requested to join in short succession #4129

Open brokensound77 opened 6 days ago

brokensound77 commented 6 days ago

Description

Identifies multiple successive Google Workspace groups joined or requested to join in short succession, which could indicate attempts to Discover, Collection, or Exfiltration.

Target Ruleset

google_workspace

Target Rule Type

ES|QL

Tested ECS Version

No response

Query

from logs-google_workspace*
| mv_expand event.type
| where event.type == "group" and to_lower(event.action) in ("join", "request_to_join")
| stats total_requests = count(*) by source.user.name
| where total_requests > 5
| sort total_requests desc

This could also be a threshold rule

New fields required in ECS/data sources for this rule?

No response

Related issues or PRs

No response

References

No response

Redacted Example Data

No response