def rule(event):
    if all(
        [
            "?search=%00{." in event.deep_get("cs-uri-query", default=""),
            any(
                [
                    "save|" in event.deep_get("cs-uri-query", default=""),
                    "powershell" in event.deep_get("cs-uri-query", default=""),
                    "cmd.exe" in event.deep_get("cs-uri-query", default=""),
                    "cmd /c" in event.deep_get("cs-uri-query", default=""),
                    "cmd /r" in event.deep_get("cs-uri-query", default=""),
                    "cmd /k" in event.deep_get("cs-uri-query", default=""),
                    "cscript" in event.deep_get("cs-uri-query", default=""),
                    "wscript" in event.deep_get("cs-uri-query", default=""),
                    "python" in event.deep_get("cs-uri-query", default=""),
                    "C:\\Users\\Public\\" in event.deep_get("cs-uri-query", default=""),
                    "%comspec%" in event.deep_get("cs-uri-query", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
