AI agents for real-time threat analysis