def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\mshta.exe"),
                    event.deep_get("OriginalFileName", default="") == "mshta.exe",
                ]
            ),
            any(
                [
                    ".7z" in event.deep_get("CommandLine", default=""),
                    ".avi" in event.deep_get("CommandLine", default=""),
                    ".bat" in event.deep_get("CommandLine", default=""),
                    ".bmp" in event.deep_get("CommandLine", default=""),
                    ".conf" in event.deep_get("CommandLine", default=""),
                    ".csv" in event.deep_get("CommandLine", default=""),
                    ".dll" in event.deep_get("CommandLine", default=""),
                    ".doc" in event.deep_get("CommandLine", default=""),
                    ".gif" in event.deep_get("CommandLine", default=""),
                    ".gz" in event.deep_get("CommandLine", default=""),
                    ".ini" in event.deep_get("CommandLine", default=""),
                    ".jpe" in event.deep_get("CommandLine", default=""),
                    ".jpg" in event.deep_get("CommandLine", default=""),
                    ".json" in event.deep_get("CommandLine", default=""),
                    ".lnk" in event.deep_get("CommandLine", default=""),
                    ".log" in event.deep_get("CommandLine", default=""),
                    ".mkv" in event.deep_get("CommandLine", default=""),
                    ".mp3" in event.deep_get("CommandLine", default=""),
                    ".mp4" in event.deep_get("CommandLine", default=""),
                    ".pdf" in event.deep_get("CommandLine", default=""),
                    ".png" in event.deep_get("CommandLine", default=""),
                    ".ppt" in event.deep_get("CommandLine", default=""),
                    ".rar" in event.deep_get("CommandLine", default=""),
                    ".rtf" in event.deep_get("CommandLine", default=""),
                    ".svg" in event.deep_get("CommandLine", default=""),
                    ".tar" in event.deep_get("CommandLine", default=""),
                    ".tmp" in event.deep_get("CommandLine", default=""),
                    ".txt" in event.deep_get("CommandLine", default=""),
                    ".xls" in event.deep_get("CommandLine", default=""),
                    ".xml" in event.deep_get("CommandLine", default=""),
                    ".yaml" in event.deep_get("CommandLine", default=""),
                    ".yml" in event.deep_get("CommandLine", default=""),
                    ".zip" in event.deep_get("CommandLine", default=""),
                    "vbscript" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
