def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventID", default="") == 4742,
                    "GC/" in event.deep_get("ServicePrincipalNames", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("EventID", default="") == 5136,
                    event.deep_get("AttributeLDAPDisplayName", default="")
                    == "servicePrincipalName",
                    event.deep_get("AttributeValue", default="").startswith("GC/"),
                ]
            ),
        ]
    ):
        return True
    return False
