def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4697,
            any(
                [
                    event.deep_get("ClientProcessId", default="") == 0,
                    event.deep_get("ParentProcessId", default="") == 0,
                ]
            ),
        ]
    ):
        return True
    return False
