Anthropic Compliance API Key Created

Last updated 4 days ago on 2026-09-21
Created 13 days ago on 2026-09-12

About

Compliance-scoped API keys read organization audit activity and compliance data. Once an attacker has administrative access, creating one gives them programmatic read of chats, files, and membership without an interactive session. This is separate from admin API key creation, which covers organization administration rather than compliance read scopes.
Tags
Domain: GenAIPlatform: AnthropicData Source: Anthropic Audit LogsUse Case: Identity and Access AuditUse Case: Threat DetectionRule Type: ES|QLTactic: PersistenceLanguage: esql
Severity
high
Risk Score
73
MITRE ATT&CK™

Persistence (TA0003)(external, opens in a new tab or window)

False Positive Examples
Platform and security teams create compliance-scoped API keys when onboarding the Anthropic Fleet integration or setting up SIEM ingestion. Verify the actor and confirm the key is in the approved credentials inventory.
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-* 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).