text code block:from logs-anthropic.audit-* | where data_stream.dataset == "anthropic.audit" and event.action in ("org_members_exported", "org_users_listed", "group_list_viewed") and user.email is not null | stats Esql.event_action_count_distinct = count_distinct(event.action), Esql.event_action_values = values(event.action), Esql.event_count = count(*), Esql.event_id_values = values(event.id), Esql.source_ip_values = values(source.ip), Esql.user_agent_original_values = values(user_agent.original), Esql.anthropic_audit_actor_type_values = values(anthropic.audit.actor.type), Esql.user_id_values = values(user.id), Esql.timestamp_first_seen = min(@timestamp), Esql.timestamp_last_seen = max(@timestamp) by user.email, organization.id | where Esql.event_action_count_distinct >= 2 | keep user.email, organization.id, Esql.*
Install detection rules in Elastic Security
Detect Anthropic Organization Member and Group Enumeration in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).