Anthropic Excessive Chat Deletion

Last updated 4 days ago on 2026-09-21
Created 10 days ago on 2026-09-15

About

Detects an unusually high number of Claude chat deletion events for the same user email within a single calendar day. Mass chat deletion can indicate an attempt to remove conversation history, cover tracks after misuse of Claude, or automated cleanup following data staging or prompt abuse.
Tags
Domain: GenAIPlatform: AnthropicData Source: Anthropic Audit LogsUse Case: Threat DetectionUse Case: UEBARule Type: ES|QLTactic: Defense EvasionLanguage: esql
Severity
medium
Risk Score
47
MITRE ATT&CK™

Defense Evasion (TA0005)(external, opens in a new tab or window)

False Positive Examples
Users or administrators purging old chats during workspace hygiene, retention exercises, or GDPR-related cleanup can exceed the daily threshold legitimately.
License
Elastic License v2(external, opens in a new tab or window)

Definition

Integration Pack
Prebuilt Security Detection Rules
Related Integrations

anthropic(external, opens in a new tab or window)

Query
text code block:
from logs-anthropic.audit-* | where data_stream.dataset == "anthropic.audit" and event.action == "claude_chat_deleted" and event.outcome == "success" and user.email is not null | eval Esql.time_bucket = DATE_TRUNC(1 day, @timestamp) | stats Esql.event_count = count(*), Esql.event_id_values = values(event.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.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, Esql.time_bucket | where Esql.event_count >= 30 | keep user.email, Esql.*

Install detection rules in Elastic Security

Detect Anthropic Excessive Chat Deletion 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).