def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\schtasks.exe"),
                    event.deep_get("OriginalFileName", default="") == "schtasks.exe",
                ]
            ),
            any(
                [
                    " -create " in event.deep_get("CommandLine", default=""),
                    " /create " in event.deep_get("CommandLine", default=""),
                    " –create " in event.deep_get("CommandLine", default=""),
                    " —create " in event.deep_get("CommandLine", default=""),
                    " ―create " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " audiodg" in event.deep_get("CommandLine", default=""),
                    " conhost" in event.deep_get("CommandLine", default=""),
                    " dwm.exe" in event.deep_get("CommandLine", default=""),
                    " explorer" in event.deep_get("CommandLine", default=""),
                    " lsass" in event.deep_get("CommandLine", default=""),
                    " lsm" in event.deep_get("CommandLine", default=""),
                    " mmc" in event.deep_get("CommandLine", default=""),
                    " msiexec" in event.deep_get("CommandLine", default=""),
                    " regsvr32" in event.deep_get("CommandLine", default=""),
                    " rundll32" in event.deep_get("CommandLine", default=""),
                    " services" in event.deep_get("CommandLine", default=""),
                    " spoolsv" in event.deep_get("CommandLine", default=""),
                    " svchost" in event.deep_get("CommandLine", default=""),
                    " taskeng" in event.deep_get("CommandLine", default=""),
                    " taskhost" in event.deep_get("CommandLine", default=""),
                    " wininit" in event.deep_get("CommandLine", default=""),
                    " winlogon" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
