def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("OriginalFileName", default="") == "psloglist.exe",
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\psloglist.exe"),
                            event.deep_get("Image", default="").endswith("\\psloglist64.exe"),
                        ]
                    ),
                ]
            ),
            any(
                [
                    " security" in event.deep_get("CommandLine", default=""),
                    " application" in event.deep_get("CommandLine", default=""),
                    " system" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            " -d" in event.deep_get("CommandLine", default=""),
                            " /d" in event.deep_get("CommandLine", default=""),
                            " –d" in event.deep_get("CommandLine", default=""),
                            " —d" in event.deep_get("CommandLine", default=""),
                            " ―d" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " -x" in event.deep_get("CommandLine", default=""),
                            " /x" in event.deep_get("CommandLine", default=""),
                            " –x" in event.deep_get("CommandLine", default=""),
                            " —x" in event.deep_get("CommandLine", default=""),
                            " ―x" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " -s" in event.deep_get("CommandLine", default=""),
                            " /s" in event.deep_get("CommandLine", default=""),
                            " –s" in event.deep_get("CommandLine", default=""),
                            " —s" in event.deep_get("CommandLine", default=""),
                            " ―s" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " -c" in event.deep_get("CommandLine", default=""),
                            " /c" in event.deep_get("CommandLine", default=""),
                            " –c" in event.deep_get("CommandLine", default=""),
                            " —c" in event.deep_get("CommandLine", default=""),
                            " ―c" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " -g" in event.deep_get("CommandLine", default=""),
                            " /g" in event.deep_get("CommandLine", default=""),
                            " –g" in event.deep_get("CommandLine", default=""),
                            " —g" in event.deep_get("CommandLine", default=""),
                            " ―g" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
