Anthropic Admin API Key Deleted
Description
Detects when an admin API key is deleted. Unauthorized deletion could indicate an attacker revoking legitimate credentials to disrupt operations or covering tracks after using a compromised key.
Query · python
from panther_anthropic_helpers import anthropic_actor_id, anthropic_alert_context
def rule(event):
return event.get("type") == "admin_api_key_deleted"
def title(event):
actor_email = anthropic_actor_id(event)
return f"Anthropic: Admin API key deleted by [{actor_email}]"
def dedup(event):
return anthropic_actor_id(event)
def alert_context(event):
return anthropic_alert_context(event)
Analyst notes
- Find all Anthropic.Activity events by actor:email_address in the 6 hours before and after the alert to determine if this is part of routine key rotation
- Check if an admin_api_key_created event occurred near this deletion to determine if this is a key rotation or a standalone deletion
- Check if actor:ip_address is associated with known VPN/proxy services or matches previously seen IP addresses for this actor