Share via

Is the command bot endpoint safe?

Hiroaki Machida 20 Reputation points
2023-05-03T18:23:11.0133333+00:00

Hello,

I have deployed the Teams command bot to App Service following this instruction and added the bot to the channels of my organization.

Build command bot with JavaScript - Teams | Microsoft Learn

Is the command bot endpoint safe from malicious third parties? Could a malicious third party call the endpoint of the bot? How can I lock up the bot so that only Microsoft Team service(?) can call the bot endpoint?

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

0 comments No comments

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 10,496 Reputation points Microsoft External Staff Moderator
    2023-05-04T12:22:02.77+00:00

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.