def rule(event):
    if all(
        [
            event.deep_get("Provider_Name", default="") == "Application Popup",
            event.deep_get("EventID", default="") == 26,
            event.deep_get("Caption", default="")
            in ["sysmon64.exe - Application Error", "sysmon.exe - Application Error"],
        ]
    ):
        return True
    return False
