You don’t get to negotiate with terrorists, and you shouldn’t get to pay ransoms for your subpar security.
Paying ransom is bad, but it is bad for the commons and relieves one from a short-term pain point. Just like pollution, the cost will be paid from someone else later.