def rule(event):
    if all(
        [
            "powershell" in event.deep_get("Data", default=""),
            "nslookup" in event.deep_get("Data", default=""),
            "[1]" in event.deep_get("Data", default=""),
            any(
                [
                    "-q=txt http" in event.deep_get("Data", default=""),
                    "-querytype=txt http" in event.deep_get("Data", default=""),
                    "-type=txt http" in event.deep_get("Data", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
