AI is accelerating the discovery of security flaws, making it more urgent—and more difficult—to patch systems safely. These five steps can help.