def rule(event):
    if all(
        [
            event.deep_get("Initiated", default="") == "true",
            event.deep_get("Image", default="").endswith("\\wordpad.exe"),
            not event.deep_get("DestinationPort", default="")
            in [80, 139, 443, 445, 465, 587, 993, 995],
        ]
    ):
        return True
    return False
