Persistence (TA0003)(external, opens in a new tab or window)
text code block:from logs-anthropic.audit-* metadata _id, _version, _index | where data_stream.dataset == "anthropic.audit" and event.action == "api_key_created" and event.outcome == "success" and anthropic.audit.scopes is not null and ( mv_contains(anthropic.audit.scopes, "read:compliance_activities") or mv_contains(anthropic.audit.scopes, "read:compliance_org_data") ) | keep _id, _version, _index, @timestamp, event.*, organization.*, user.*, source.*, user_agent.*, anthropic.audit.*, data_stream.*
Install detection rules in Elastic Security
Detect Anthropic Compliance API Key Created 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).