def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [2033, 2059],
            not event.deep_get("ModifyingApplication", default="").endswith(
                ":\\Windows\\System32\\svchost.exe"
            ),
            not all(
                [
                    ":\\ProgramData\\Microsoft\\Windows Defender\\Platform\\"
                    in event.deep_get("ModifyingApplication", default=""),
                    "\\MsMpEng.exe" in event.deep_get("ModifyingApplication", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
