From fc1455efa7d500ec8709e7d4ca3f7583e36c6ea8 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Mon, 27 Feb 2023 19:10:35 +0100 Subject: [PATCH] Add 5 new secrets --- pkg/scanner/secrets.go | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/pkg/scanner/secrets.go b/pkg/scanner/secrets.go index bc24304..db2b000 100644 --- a/pkg/scanner/secrets.go +++ b/pkg/scanner/secrets.go @@ -337,6 +337,41 @@ func GetSecretRegexes() []Secret { []string{}, "?", }, + { + "Discord Webhook", + "Discord Webhook", + `https\:\/\/discordapp\.com\/api\/webhooks\/[0-9]+/[A-Za-z0-9\-]+`, + []string{}, + "?", + }, + { + "Google Calendar URI", + "Google Calendar URI", + `https\:\/\/(.*)calendar\.google\.com\/calendar\/[0-9a-z\/]+\/embed\?src=[A-Za-z0-9%@&;=\-_\.\/]+`, + []string{}, + "?", + }, + { + "Google OAuth Access Key", + "Google OAuth Access Key", + `ya29\.[0-9A-Za-z\-_]+`, + []string{}, + "?", + }, + { + "Mapbox Token Disclosure", + "Mapbox Token Disclosure", + `(pk|sk)\.eyJ1Ijoi\w+\.[\w-]*`, + []string{}, + "?", + }, + { + "Microsoft Teams Webhook", + "Microsoft Teams Webhook", + `https\:\/\/outlook\.office\.com\/webhook\/[A-Za-z0-9\-@]+\/IncomingWebhook\/[A-Za-z0-9\-]+\/[A-Za-z0-9\-]+`, + []string{}, + "?", + }, } return regexes