From f4d37a2c0d9892bdffb4c61093a06767e4a33504 Mon Sep 17 00:00:00 2001 From: Andrzej Amghar Date: Thu, 16 Dec 2021 14:48:18 +0100 Subject: [PATCH] fix regexp for aws_key and slack_webhook (#754) --- config/gitleaks.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/gitleaks.toml b/config/gitleaks.toml index dae3c26f..8662dfc6 100644 --- a/config/gitleaks.toml +++ b/config/gitleaks.toml @@ -37,7 +37,7 @@ regex = '''glpat-[0-9a-zA-Z\-]{20}''' [[rules]] id = "aws-access-token" description = "AWS" -regex = '''AKIA[0-9A-Z]{16}''' +regex = '''(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}''' # Cryptographic keys [[rules]] @@ -140,7 +140,7 @@ secretGroup = 3 [[rules]] id = "slack-web-hook" description = "Slack Webhook" -regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}''' +regex = '''https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8,12}/[a-zA-Z0-9_]{24}''' [[rules]] id = "twilio-api-key"