def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 42,
            event.deep_get("Provider_Name", default="")
            in [
                "Kerberos-Key-Distribution-Center",
                "Microsoft-Windows-Kerberos-Key-Distribution-Center",
            ],
            event.deep_get("Level", default="") == 2,
        ]
    ):
        return True
    return False
