import re


def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\wscript.exe"),
            re.match(
                r"[a-f0-9]{4,8}\\.(?:[a-z0-9\\-]+\\.){2}[a-z0-9\\-]+",
                event.deep_get("QueryName", default=""),
            ),
        ]
    ):
        return True
    return False
