def rule(event):
    if all(
        [
            event.deep_get("TargetObject", default="").endswith(
                "\\Control\\Terminal Server\\WinStations\\RDP-Tcp\\PortNumber"
            ),
            not event.deep_get("Details", default="") == "DWORD (0x00000d3d)",
        ]
    ):
        return True
    return False
