Panther critical experimental python
Root Account Access Key Created
Detects creation of programmatic access keys for the AWS root account, which violates critical security best practices. Root account credentials provide unrestricted access to all AWS resources and cannot be scoped with granular permissions. If compromised, these keys grant attackers complete control over the AWS environment including billing and account closure capabilities.
Detection Logic
from panther_aws_helpers import aws_rule_context
def rule(event):
# Only check access key creation events
if event.get("eventName") != "CreateAccessKey":
return False
# Only root can create root access keys
if event.deep_get("userIdentity", "type") != "Root":
return False
# Only alert if the root user is creating an access key for itself
return event.get("requestParameters") is None
def alert_context(event):
return aws_rule_context(event) Field Validations
Loading…
Comments (0)
Loading comments...