From f525586df7ed6f2f3281a5e1c86108930a397526 Mon Sep 17 00:00:00 2001 From: "DESKTOP-ETB9RNB\\Kajohn" Date: Mon, 10 Nov 2025 13:19:56 +0700 Subject: [PATCH] =?UTF-8?q?Update=20Gitleaks=20=E0=B8=A3=E0=B8=B8=E0=B9=88?= =?UTF-8?q?=E0=B8=99=E0=B9=83=E0=B8=AB=E0=B8=A1=E0=B9=88=20(v8+)=20?= =?UTF-8?q?=E0=B9=84=E0=B8=A1=E0=B9=88=E0=B8=A3=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20TOML=20format=20=E0=B9=81=E0=B8=9A?= =?UTF-8?q?=E0=B8=9A=E0=B9=80=E0=B8=81=E0=B9=88=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/gitleaks.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/gitleaks.toml b/configs/gitleaks.toml index 1183b6b..8099ccb 100644 --- a/configs/gitleaks.toml +++ b/configs/gitleaks.toml @@ -1,17 +1,20 @@ [[rules]] +id = "jdbc-credentials" description = "JDBC connection string with credentials" regex = '''jdbc:[^"]*user=.*&password=.*|jdbc:[^"']*:[^"']*@[^"']*''' tags = ["credentials","db","jdbc"] severity = "high" [[rules]] +id = "db-password-assignment" description = "Generic DB password assignment" regex = '''(?i)(db|database|jdbc|connection).*(password|passwd)\s*[:=]\s*['"][^'"]+['"]''' tags = ["credentials"] severity = "high" [[rules]] +id = "hardcoded-password" description = "Hardcoded Password" regex = '''(?i)(password|passwd|pwd)\s*[:=]\s*['"][^'"]+['"]''' tags = ["password", "security"] -severity = "high" \ No newline at end of file +severity = "high"