Hello
I am Prakash and I will be glad to assist you today with your question.
If your device is not managed by your organization, real-time protection can be disabled using one of the following options:
From the user interface. Open Microsoft Defender for Endpoint on macOS and navigate to Manage settings.
Or using below command
mdatp config real-time-protection --value disabled
https://learn.microsoft.com/microsoft-365/security/defender-endpoint/mac-support-perf?view=o365-worldwide
In case of additional questions, reach out back to us, and we will be happy to help and try our best to resolve your issue.
Best Regards,
Prakash
Give back to the Community. Help the next person who has this issue by indicating if this reply solved your problem. Click Yes or No below.