Panther high experimental python

AWS GuardDuty Master Account

Ensure that all GuardDuty logs are sending into a single Master account. This is a best practice for centralizing detection logic and useful data during an investigation.

View Source

Detection Logic

from panther_base_helpers import deep_get

# Set the MASTER_ACCOUNT_ID variable to a string
# of the AWS Master Account receiving GuardDuty logs.
MASTER_ACCOUNT_ID = None


def policy(resource):
    if MASTER_ACCOUNT_ID is None:
        return True

    if resource["Master"] is None:
        return False

    return MASTER_ACCOUNT_ID == deep_get(resource, "Master", "AccountId")

Field Validations

Loading…

Comments (0)

Loading comments...