Exfiltration (TA0010)(external, opens in a new tab or window)
text code block:from logs-anthropic.audit-* | where data_stream.dataset == "anthropic.audit" and event.action == "claude_file_uploaded" and event.outcome == "success" and user.email is not null and source.ip is not null | stats Esql.event_count = count(*), Esql.event_id_values = values(event.id), Esql.file_name_values = values(file.name), Esql.anthropic_audit_claude_file_id_values = values(anthropic.audit.claude_file_id), Esql.anthropic_audit_claude_chat_id_values = values(anthropic.audit.claude_chat_id), Esql.anthropic_audit_claude_project_id_values = values(anthropic.audit.claude_project_id), Esql.user_agent_original_values = values(user_agent.original), Esql.anthropic_audit_actor_type_values = values(anthropic.audit.actor.type), Esql.timestamp_first_seen = min(@timestamp), Esql.timestamp_last_seen = max(@timestamp) by user.email, source.ip | where Esql.event_count >= 100 | keep user.email, source.ip, Esql.*
Install detection rules in Elastic Security
Detect Anthropic High File Upload Activity 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).