Anthropic Service Key Revoked
Description
Detects when a service key is revoked. Unauthorized revocation could indicate an attacker disrupting integrations or covering tracks after using a compromised key. The service_key_id and service_name fields identify which key was revoked.
Query · python
from panther_anthropic_helpers import anthropic_actor_id, anthropic_alert_context
def rule(event):
return event.get("type") == "service_key_revoked"
def title(event):
actor_email = anthropic_actor_id(event)
return f"Anthropic: Service key revoked 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 or incident response
- Check if a service_key_created event occurred near this revocation to determine if this is a key rotation or a standalone revocation
- Check if actor:ip_address is associated with known VPN/proxy services or matches previously seen IP addresses for this actor