Turning to automation can keep agencies one step ahead of cyberattacks