def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventID", default="") == 517,
                    event.deep_get("Provider_Name", default="") == "Security",
                ]
            ),
            all(
                [
                    event.deep_get("EventID", default="") == 1102,
                    event.deep_get("Provider_Name", default="") == "Microsoft-Windows-Eventlog",
                ]
            ),
        ]
    ):
        return True
    return False
