Anthropic Service Key Created
Description
Detects when a new service key is created. Service keys provide programmatic access and their creation should be verified as authorized. The service_key_id, service_name, key_name, and scopes fields identify the key and its permissions.
Query · python
from panther_anthropic_helpers import anthropic_actor_id, anthropic_alert_context
def rule(event):
return event.get("type") == "service_key_created"
def title(event):
actor_email = anthropic_actor_id(event)
return f"Anthropic: Service key created 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 service account setup
- Check if actor:email_address has created service keys in the past 90 days to determine if this is a first-time action
- Check if actor:ip_address is associated with known VPN/proxy services or matches previously seen IP addresses for this actor