AI in Security: Enhancing Protection with Advanced Technologies