Malicious actors are making more use of AI in attacks, even as governments look to boost AI investments