The costs from cyberattacks — from business interruption to ransomware payments and legal settlements — pose an increasing threat to company creditworthiness due to loss of customers, theft of intellectual property or a break in revenue flows, Moody’s Ratings said.