def rule(event):
    if all(
        [
            any(
                [
                    "\\schtasks.exe" in event.deep_get("Image", default=""),
                    event.deep_get("OriginalFileName", default="") == "schtasks.exe",
                ]
            ),
            any(
                [
                    "wscript" in event.deep_get("CommandLine", default=""),
                    "vbscript" in event.deep_get("CommandLine", default=""),
                    "cscript" in event.deep_get("CommandLine", default=""),
                    "wmic " in event.deep_get("CommandLine", default=""),
                    "wmic.exe" in event.deep_get("CommandLine", default=""),
                    "regsvr32.exe" in event.deep_get("CommandLine", default=""),
                    "powershell" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "once" in event.deep_get("CommandLine", default=""),
            "00:00" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
