Anthropic Role Granted
Description
Tracks all role grants in the Anthropic organization. Currently used to build visibility into the role taxonomy as the log source matures. Once sufficient data is collected on org-level vs project-level role patterns, this rule can be refined to alert at higher severity for elevated roles.
Query · python
from panther_anthropic_helpers import anthropic_actor_id, anthropic_alert_context
def rule(event):
return event.get("type") == "role_assignment_granted"
def title(event):
actor_email = anthropic_actor_id(event)
role = event.get("role", "<UNKNOWN_ROLE>")
target_id = event.get("target_id", "<UNKNOWN_TARGET>")
return f"Anthropic: Role [{role}] granted to [{target_id}] 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 project creation or an isolated privilege grant
- Check if target_id has been granted other roles in the past 7 days to identify potential privilege accumulation
- Check if actor:ip_address is associated with known VPN/proxy services or matches previously seen IP addresses for this actor