def rule(event):
    if all(
        [
            event.deep_get("Initiated", default="") == "True",
            event.deep_get("DestinationPort", default="") == 3389,
            event.deep_get("Computer", default="") == "%domain_controller_hostnames%",
            not event.deep_get("Image", default="").endswith("\\Microsoft.Tri.Sensor.exe"),
        ]
    ):
        return True
    return False
