def rule(event):
    if any(
        [
            all(
                [
                    "tasklist /fi " in event.deep_get("CommandLine", default=""),
                    "Imagename eq lsass.exe" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "cmd.exe /c " in event.deep_get("CommandLine", default=""),
                            "cmd.exe /r " in event.deep_get("CommandLine", default=""),
                            "cmd.exe /k " in event.deep_get("CommandLine", default=""),
                            "cmd /c " in event.deep_get("CommandLine", default=""),
                            "cmd /r " in event.deep_get("CommandLine", default=""),
                            "cmd /k " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            "AUTHORI" in event.deep_get("User", default=""),
                            "AUTORI" in event.deep_get("User", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    "do rundll32.exe C:\\windows\\System32\\comsvcs.dll, MiniDump"
                    in event.deep_get("CommandLine", default=""),
                    "\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                    " full" in event.deep_get("CommandLine", default=""),
                    "%%B" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "tasklist /v /fo csv" in event.deep_get("CommandLine", default=""),
                    'findstr /i "lsass"' in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
