def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5007,
            "\\Real-Time Protection\\SubmitSamplesConsent = 0x0"
            in event.deep_get("NewValue", default=""),
        ]
    ):
        return True
    return False
