The most direct method is to create an Application Filter rule. By searching for "AnyDesk" in the application list and setting the action to Deny , you can effectively block the software's communication.
Sophos + AnyDesk: How to Allow Remote Access Without Breaking Security sophos anydesk