def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith("C:\\Windows\\WinSxS\\"),
            event.deep_get("TargetFilename", default="").endswith("\\WerFault.exe"),
            not any(
                [
                    event.deep_get("Image", default="").startswith("C:\\Windows\\System32\\"),
                    event.deep_get("Image", default="").startswith("C:\\Windows\\SysWOW64\\"),
                    event.deep_get("Image", default="").startswith("C:\\Windows\\WinSxS\\"),
                ]
            ),
        ]
    ):
        return True
    return False
