File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
cmd/generate/config/rules Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ func SlackWebHookUrl() *config.Rule {
272
272
Description : "Discovered a Slack Webhook, which could lead to unauthorized message posting and data leakage in Slack channels." ,
273
273
// If this generates too many false-positives we should define an allowlist (e.g., "xxxx", "00000").
274
274
Regex : regexp .MustCompile (
275
- `(?:https?://)?hooks.slack.com/(?:services|workflows)/[A-Za-z0-9+/]{43,46 }` ),
275
+ `(?:https?://)?hooks.slack.com/(?:services|workflows|triggers )/[A-Za-z0-9+/]{43,56 }` ),
276
276
Keywords : []string {
277
277
"hooks.slack.com" ,
278
278
},
@@ -290,6 +290,7 @@ func SlackWebHookUrl() *config.Rule {
290
290
"https://hooks.slack.com/workflows/" + secrets .NewSecret (utils .AlphaNumeric ("46" )),
291
291
"https://hooks.slack.com/workflows/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" , // gitleaks:allow
292
292
"http://hooks.slack.com/workflows/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" , // gitleaks:allow
293
+ "https://hooks.slack.com/triggers/" + secrets .NewSecret (utils .AlphaNumeric ("56" )),
293
294
}
294
295
return utils .Validate (r , tps , nil )
295
296
}
Original file line number Diff line number Diff line change @@ -2947,7 +2947,7 @@ keywords = [
2947
2947
[[rules ]]
2948
2948
id = " slack-webhook-url"
2949
2949
description = " Discovered a Slack Webhook, which could lead to unauthorized message posting and data leakage in Slack channels."
2950
- regex = ''' (?:https?://)?hooks.slack.com/(?:services|workflows)/[A-Za-z0-9+/]{43,46 }'''
2950
+ regex = ''' (?:https?://)?hooks.slack.com/(?:services|workflows|triggers )/[A-Za-z0-9+/]{43,56 }'''
2951
2951
keywords = [" hooks.slack.com" ]
2952
2952
2953
2953
[[rules ]]
You can’t perform that action at this time.
0 commit comments