def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\Werfault.exe"),
                    event.deep_get("OriginalFileName", default="") == "WerFault.exe",
                ]
            ),
            any(
                [
                    "AUTHORI" in event.deep_get("ParentUser", default=""),
                    "AUTORI" in event.deep_get("ParentUser", default=""),
                ]
            ),
            any(
                [
                    "AUTHORI" in event.deep_get("User", default=""),
                    "AUTORI" in event.deep_get("User", default=""),
                ]
            ),
            " -u -p " in event.deep_get("CommandLine", default=""),
            " -ip " in event.deep_get("CommandLine", default=""),
            " -s " in event.deep_get("CommandLine", default=""),
            not event.deep_get("ParentImage", default="") == "C:\\Windows\\System32\\lsass.exe",
        ]
    ):
        return True
    return False
