def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("TargetObject", default="").endswith(
                        "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\HideFileExt"
                    ),
                    event.deep_get("Details", default="") == "DWORD (0x00000001)",
                ]
            ),
            all(
                [
                    event.deep_get("TargetObject", default="").endswith(
                        "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\Hidden"
                    ),
                    event.deep_get("Details", default="") == "DWORD (0x00000002)",
                ]
            ),
        ]
    ):
        return True
    return False
