mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
feat: facebook secret, access token, and page access token rules (#1372)
* Add Facebook secret, access token, and page access token rules * comment
This commit is contained in:
1 parent
979f213b93
commit
4b543280a1
3 files changed
+62
-5
No files matched your search
+14
-1
@@ -370,8 +370,21 @@ keywords = [
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "facebook"
|
||||
id = "facebook-access-token"
|
||||
description = "Discovered a Facebook Access Token, posing a risk of unauthorized access to Facebook accounts and personal data exposure."
|
||||
regex = '''(?i)\b(\d{15,16}\|[0-9a-z\-_]{27})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
|
||||
[[rules]]
|
||||
id = "facebook-page-access-token"
|
||||
description = "Discovered a Facebook Page Access Token, posing a risk of unauthorized access to Facebook accounts and personal data exposure."
|
||||
regex = '''(?i)\b(EAA[MC][a-z0-9]{20,})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = [
|
||||
"eaam","eaac",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "facebook-secret"
|
||||
description = "Discovered a Facebook Application secret, posing a risk of unauthorized access to Facebook accounts and personal data exposure."
|
||||
regex = '''(?i)(?:facebook)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-f0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = [
|
||||
"facebook",
|
||||
|
||||
Reference in new issue
Block a user