def rule(event):
    if any(
        [
            all(
                [
                    "powershell.exe mshta.exe http" in event.deep_get("CommandLine", default=""),
                    ".hta" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    'reg query "HKEY_CURRENT_USER\\Software\\Microsoft\\Terminal Server Client\\Default"'
                    in event.deep_get("CommandLine", default=""),
                    "cmd.exe /c taskkill /im cmd.exe" in event.deep_get("CommandLine", default=""),
                    "(New-Object System.Net.WebClient).UploadFile('http"
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
