def rule(event):
    if all(
        [
            any(
                [
                    "echo " in event.deep_get("CommandLine", default=""),
                    "copy " in event.deep_get("CommandLine", default=""),
                    "type " in event.deep_get("CommandLine", default=""),
                    "file createnew" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " C:\\Windows\\System32\\Tasks\\" in event.deep_get("CommandLine", default=""),
                    " C:\\Windows\\SysWow64\\Tasks\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
