def rule(event):
    if all(
        [
            "[System.Net.HttpWebRequest]" in event.deep_get("ScriptBlockText", default=""),
            "System.Net.Sockets.TcpListener" in event.deep_get("ScriptBlockText", default=""),
            "AcceptTcpClient" in event.deep_get("ScriptBlockText", default=""),
        ]
    ):
        return True
    return False
