def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4769,
            event.deep_get("Status", default="") == "0x0",
            event.deep_get("TicketEncryptionType", default="") == "0x17",
            not any(
                [
                    any(
                        [
                            event.deep_get("ServiceName", default="").endswith("krbtgt"),
                            event.deep_get("ServiceName", default="").endswith("$"),
                        ]
                    ),
                    "$@" in event.deep_get("TargetUserName", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
