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