def rule(event):
    if all(
        [
            event.deep_get("Provider_Name", default="") == "Service Control Manager",
            event.deep_get("EventID", default="") == 7045,
            "WerFaultSvc" in event.deep_get("ServiceName", default=""),
            event.deep_get("ImagePath", default="").startswith("C:\\Windows\\WinSxS\\"),
            event.deep_get("ImagePath", default="").endswith("\\WerFault.exe"),
        ]
    ):
        return True
    return False
