mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
feat(github): add entropy to rule (#1489)
This commit is contained in:
1 parent
df126a7473
commit
db782603f7
2 files changed
+33
-7
No files matched your search
@@ -1996,6 +1996,7 @@ stopwords = [
|
||||
id = "github-app-token"
|
||||
description = "Identified a GitHub App Token, which may compromise GitHub application integrations and source code security."
|
||||
regex = '''(?:ghu|ghs)_[0-9a-zA-Z]{36}'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"ghu_","ghs_",
|
||||
]
|
||||
@@ -2003,7 +2004,8 @@ keywords = [
|
||||
[[rules]]
|
||||
id = "github-fine-grained-pat"
|
||||
description = "Found a GitHub Fine-Grained Personal Access Token, risking unauthorized repository access and code manipulation."
|
||||
regex = '''github_pat_[0-9a-zA-Z_]{82}'''
|
||||
regex = '''github_pat_\w{82}'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"github_pat_",
|
||||
]
|
||||
@@ -2012,6 +2014,7 @@ keywords = [
|
||||
id = "github-oauth"
|
||||
description = "Discovered a GitHub OAuth Access Token, posing a risk of compromised GitHub account integrations and data leaks."
|
||||
regex = '''gho_[0-9a-zA-Z]{36}'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"gho_",
|
||||
]
|
||||
@@ -2020,6 +2023,7 @@ keywords = [
|
||||
id = "github-pat"
|
||||
description = "Uncovered a GitHub Personal Access Token, potentially leading to unauthorized repository access and sensitive content exposure."
|
||||
regex = '''ghp_[0-9a-zA-Z]{36}'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"ghp_",
|
||||
]
|
||||
@@ -2028,6 +2032,7 @@ keywords = [
|
||||
id = "github-refresh-token"
|
||||
description = "Detected a GitHub Refresh Token, which could allow prolonged unauthorized access to GitHub services."
|
||||
regex = '''ghr_[0-9a-zA-Z]{36}'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"ghr_",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user