Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
The command bot endpoint seems to be safe from malicious third parties. However, anyone can call the endpoint of the bot if they have access to it.
You can implement bot authentication if you want users of your organization or tenant to have access to it. https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/add-authentication?tabs=dotnet%2Cdotnet-sample
Please refer this and let us know if it helps: https://learn.microsoft.com/en-us/azure/bot-service/dl-network-isolation-concept?view=azure-bot-service-4.0#example-scenario
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.