LS-TEAMS-001: Microsoft Teams Webhook¶
| Severity | HIGH |
| Blast radius | Channel spam and phishing |
| Rotate at | https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook |
If this leaks¶
Anyone with the URL can post messages into the Teams channel, which is useful for internal phishing.
What to do¶
- Rotate or revoke the credential at https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
https://[a-z0-9-]+\.webhook\.office\.com/webhookb2/[a-f0-9-]{36}@[a-f0-9-]{36}/IncomingWebhook/[a-f0-9]{32}/[a-f0-9-]{36}
Suppress¶
On one line: # leakscan:ignore LS-TEAMS-001. For the whole project:
disable_rules: [LS-TEAMS-001]