def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4702,
            any(
                [
                    "\\AppData\\Local\\Temp\\" in event.deep_get("TaskContentNew", default=""),
                    "\\AppData\\Roaming\\" in event.deep_get("TaskContentNew", default=""),
                    "\\Users\\Public\\" in event.deep_get("TaskContentNew", default=""),
                    "\\WINDOWS\\Temp\\" in event.deep_get("TaskContentNew", default=""),
                    "C:\\Temp\\" in event.deep_get("TaskContentNew", default=""),
                    "\\Desktop\\" in event.deep_get("TaskContentNew", default=""),
                    "\\Downloads\\" in event.deep_get("TaskContentNew", default=""),
                    "\\Temporary Internet" in event.deep_get("TaskContentNew", default=""),
                    "C:\\ProgramData\\" in event.deep_get("TaskContentNew", default=""),
                    "C:\\Perflogs\\" in event.deep_get("TaskContentNew", default=""),
                ]
            ),
            any(
                [
                    "regsvr32" in event.deep_get("TaskContentNew", default=""),
                    "rundll32" in event.deep_get("TaskContentNew", default=""),
                    "cmd.exe</Command>" in event.deep_get("TaskContentNew", default=""),
                    "cmd</Command>" in event.deep_get("TaskContentNew", default=""),
                    "<Arguments>/c " in event.deep_get("TaskContentNew", default=""),
                    "<Arguments>/k " in event.deep_get("TaskContentNew", default=""),
                    "<Arguments>/r " in event.deep_get("TaskContentNew", default=""),
                    "powershell" in event.deep_get("TaskContentNew", default=""),
                    "pwsh" in event.deep_get("TaskContentNew", default=""),
                    "mshta" in event.deep_get("TaskContentNew", default=""),
                    "wscript" in event.deep_get("TaskContentNew", default=""),
                    "cscript" in event.deep_get("TaskContentNew", default=""),
                    "certutil" in event.deep_get("TaskContentNew", default=""),
                    "bitsadmin" in event.deep_get("TaskContentNew", default=""),
                    "bash.exe" in event.deep_get("TaskContentNew", default=""),
                    "bash " in event.deep_get("TaskContentNew", default=""),
                    "scrcons" in event.deep_get("TaskContentNew", default=""),
                    "wmic " in event.deep_get("TaskContentNew", default=""),
                    "wmic.exe" in event.deep_get("TaskContentNew", default=""),
                    "forfiles" in event.deep_get("TaskContentNew", default=""),
                    "scriptrunner" in event.deep_get("TaskContentNew", default=""),
                    "hh.exe" in event.deep_get("TaskContentNew", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
