def rule(event):
    if all(
        [
            event.deep_get("record_type", default="") == "TXT",
            any(
                [
                    "IEX" in event.deep_get("answer", default=""),
                    "Invoke-Expression" in event.deep_get("answer", default=""),
                    "cmd.exe" in event.deep_get("answer", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
