def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5013,
            any(
                [
                    event.deep_get("Value", default="").endswith(
                        "\\Windows Defender\\DisableAntiSpyware"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Windows Defender\\DisableAntiVirus"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Windows Defender\\Scan\\DisableArchiveScanning"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Windows Defender\\Scan\\DisableScanningNetworkFiles"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Real-Time Protection\\DisableRealtimeMonitoring"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Real-Time Protection\\DisableBehaviorMonitoring"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Real-Time Protection\\DisableIOAVProtection"
                    ),
                    event.deep_get("Value", default="").endswith(
                        "\\Real-Time Protection\\DisableScriptScanning"
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
