Should be illegal in the same way that getting a lawyer to communicate threats is illegal. I'm surprised it's legal to pay ransoms at all.