def rule(event):
    if all(
        [
            "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments\\"
            in event.deep_get("TargetObject", default=""),
            any(
                [
                    all(
                        [
                            event.deep_get("TargetObject", default="").endswith(
                                "\\HideZoneInfoOnProperties"
                            ),
                            event.deep_get("Details", default="") == "DWORD (0x00000001)",
                        ]
                    ),
                    all(
                        [
                            event.deep_get("TargetObject", default="").endswith(
                                "\\SaveZoneInformation"
                            ),
                            event.deep_get("Details", default="") == "DWORD (0x00000002)",
                        ]
                    ),
                    all(
                        [
                            event.deep_get("TargetObject", default="").endswith(
                                "\\ScanWithAntiVirus"
                            ),
                            event.deep_get("Details", default="") == "DWORD (0x00000001)",
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
