def rule(event):
    if all(
        [
            event.deep_get("FileName", default="").startswith("\\"),
            "\\sysvol\\" in event.deep_get("FileName", default=""),
            "\\Policies\\" in event.deep_get("FileName", default=""),
            any(
                [
                    event.deep_get("FileName", default="").endswith("audit.csv"),
                    event.deep_get("FileName", default="").endswith("Files.xml"),
                    event.deep_get("FileName", default="").endswith("GptTmpl.inf"),
                    event.deep_get("FileName", default="").endswith("groups.xml"),
                    event.deep_get("FileName", default="").endswith("Registry.pol"),
                    event.deep_get("FileName", default="").endswith("Registry.xml"),
                    event.deep_get("FileName", default="").endswith("scheduledtasks.xml"),
                    event.deep_get("FileName", default="").endswith("scripts.ini"),
                    event.deep_get("FileName", default="").endswith("services.xml"),
                ]
            ),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files (x86)\\"
                            ),
                            event.deep_get("Image", default="").startswith("C:\\Program Files\\"),
                            event.deep_get("Image", default="").startswith(
                                "C:\\Windows\\system32\\"
                            ),
                            event.deep_get("Image", default="").startswith(
                                "C:\\Windows\\SysWOW64\\"
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="") == "C:\\Windows\\explorer.exe",
                ]
            ),
        ]
    ):
        return True
    return False
