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=""),
            not any(
                [
                    ":\\Program Files (x86)\\" in event.deep_get("Image", default=""),
                    ":\\Program Files\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\explorer.exe" in event.deep_get("Image", default=""),
                    ":\\Windows\\system32\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\SysWOW64\\" in event.deep_get("Image", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
