One expert warned them for months. Then the cyber attack hit.