Adaptive application security for the AI era