def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("driverquery.exe"),
                    event.deep_get("OriginalFileName", default="") == "drvqry.exe",
                ]
            ),
            any(
                [
                    any(
                        [
                            event.deep_get("ParentImage", default="").endswith("\\cscript.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\mshta.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\regsvr32.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\rundll32.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\wscript.exe"),
                        ]
                    ),
                    any(
                        [
                            "\\AppData\\Local\\" in event.deep_get("ParentImage", default=""),
                            "\\Users\\Public\\" in event.deep_get("ParentImage", default=""),
                            "\\Windows\\Temp\\" in event.deep_get("ParentImage", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
