AI-infused security and compliance for endpoint resilience