Advancements in artificial intelligence could help bad actors influence the discourse in the midterm elections, former former North Carolina cybersecurity official warns.