def rule(event):
    if all(
        [
            event.deep_get("QueryName", default="")
            in ["taf.teamviewer.com", "udp.ping.teamviewer.com"],
            not "TeamViewer" in event.deep_get("Image", default=""),
        ]
    ):
        return True
    return False
