import re


def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\explorer.exe"),
                    ".lnk" in event.deep_get("ParentCommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            "                 " in event.deep_get("CommandLine", default=""),
                            "\\u0009" in event.deep_get("CommandLine", default=""),
                            "\\u000A" in event.deep_get("CommandLine", default=""),
                            "\\u0011" in event.deep_get("CommandLine", default=""),
                            "\\u0012" in event.deep_get("CommandLine", default=""),
                            "\\u0013" in event.deep_get("CommandLine", default=""),
                            "\\u000B" in event.deep_get("CommandLine", default=""),
                            "\\u000C" in event.deep_get("CommandLine", default=""),
                            "\\u000D" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    re.match(r"\\n\\n\\n\\n\\n\\n", event.deep_get("CommandLine", default="")),
                ]
            ),
        ]
    ):
        return True
    return False
