def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5007,
            any(
                [
                    "\\Windows Defender\\DisableAntiSpyware "
                    in event.deep_get("NewValue", default=""),
                    "\\Windows Defender\\Scan\\DisableRemovableDriveScanning "
                    in event.deep_get("NewValue", default=""),
                    "\\Windows Defender\\Scan\\DisableScanningMappedNetworkDrivesForFullScan "
                    in event.deep_get("NewValue", default=""),
                    "\\Windows Defender\\SpyNet\\DisableBlockAtFirstSeen "
                    in event.deep_get("NewValue", default=""),
                    "\\Real-Time Protection\\SpyNetReporting "
                    in event.deep_get("NewValue", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
