Skip to content

Commit 4ce7e3b

Browse files
authored
feat(config): add 5 Nigerian fintech & betting secret rules by @LloydCoder
Appends high-signal rules to default config for detecting leaked credentials from major Nigerian platforms: • Paystack secret keys • Flutterwave/Rave keys • Remita merchant + hash • Interswitch MAC keys • SportyBet/BetKing tokens Same patterns shipped in: - Nuclei: projectdiscovery/nuclei-templates#14253 - TruffleHog: trufflesecurity/trufflehog#4588 - Semgrep: semgrep/semgrep-rules#3719 Author: @LloydCoder (Tinlance) 🇳🇬 Tested with `gitleaks detect --config .` — clean, no FPs on sample repos.
1 parent 6eaad03 commit 4ce7e3b

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed

config/gitleaks.toml

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3207,3 +3207,145 @@ description = "Detected a Zendesk Secret Key, risking unauthorized access to cus
32073207
regex = '''(?i)[\w.-]{0,50}?(?:zendesk)(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
32083208
keywords = ["zendesk"]
32093209

3210+
[[rules]]
3211+
id = "lloydcoder-paystack-secret-key"
3212+
description = "Paystack Secret Key (Live or Test) - Nigerian Fintech"
3213+
regex = '''sk_(live|test)_[0-9a-zA-Z]{50,}'''
3214+
secretGroup = 1
3215+
keywords = [
3216+
"paystack",
3217+
"secret_key",
3218+
"sk_live",
3219+
"sk_test",
3220+
]
3221+
path = [
3222+
"*.toml",
3223+
"*.yaml",
3224+
"*.yml",
3225+
"*.json",
3226+
"*.js",
3227+
"*.ts",
3228+
"*.py",
3229+
"*.go",
3230+
"*.env",
3231+
]
3232+
tags = [
3233+
"secret",
3234+
"paystack",
3235+
"fintech",
3236+
"nigeria",
3237+
]
3238+
3239+
[[rules]]
3240+
id = "lloydcoder-flutterwave-secret-key"
3241+
description = "Flutterwave (Rave) Secret Key - Nigerian Fintech"
3242+
regex = '''FLWSECK[_-]?[a-zA-Z0-9]{30,}'''
3243+
secretGroup = 1
3244+
keywords = [
3245+
"flutterwave",
3246+
"rave",
3247+
"flwseck",
3248+
]
3249+
path = [
3250+
"*.toml",
3251+
"*.yaml",
3252+
"*.yml",
3253+
"*.json",
3254+
"*.js",
3255+
"*.ts",
3256+
"*.py",
3257+
"*.go",
3258+
"*.env",
3259+
]
3260+
tags = [
3261+
"secret",
3262+
"flutterwave",
3263+
"fintech",
3264+
"nigeria",
3265+
]
3266+
3267+
[[rules]]
3268+
id = "lloydcoder-remita-credentials"
3269+
description = "Remita Merchant ID & API Key/Hash - Nigerian Billing"
3270+
regex = '''\b\d{10,15}\|[a-zA-Z0-9]{40,}\b'''
3271+
secretGroup = 1
3272+
keywords = [
3273+
"remita",
3274+
"merchantId",
3275+
"apiKey",
3276+
"publicKey",
3277+
]
3278+
path = [
3279+
"*.toml",
3280+
"*.yaml",
3281+
"*.yml",
3282+
"*.json",
3283+
"*.js",
3284+
"*.ts",
3285+
"*.py",
3286+
"*.go",
3287+
"*.env",
3288+
]
3289+
tags = [
3290+
"credentials",
3291+
"remita",
3292+
"fintech",
3293+
"nigeria",
3294+
]
3295+
3296+
[[rules]]
3297+
id = "lloydcoder-interswitch-mackey"
3298+
description = "Interswitch Webpay MAC Key - Nigerian Payments"
3299+
regex = '''macKey["']?\s*[:=]\s*["']?[0-9A-Fa-f]{64}["']?'''
3300+
secretGroup = 1
3301+
keywords = [
3302+
"interswitch",
3303+
"webpay",
3304+
"macKey",
3305+
]
3306+
path = [
3307+
"*.toml",
3308+
"*.yaml",
3309+
"*.yml",
3310+
"*.json",
3311+
"*.js",
3312+
"*.ts",
3313+
"*.py",
3314+
"*.go",
3315+
"*.env",
3316+
]
3317+
tags = [
3318+
"secret",
3319+
"interswitch",
3320+
"fintech",
3321+
"nigeria",
3322+
]
3323+
3324+
[[rules]]
3325+
id = "lloydcoder-sportybet-token"
3326+
description = "SportyBet/BetKing Admin or API Token - Nigerian Betting"
3327+
regex = '''eyJ[A-Za-z0-9-_]{100,}'''
3328+
secretGroup = 1
3329+
keywords = [
3330+
"sportybet",
3331+
"betking",
3332+
"bet9ja",
3333+
"admin",
3334+
"api_token",
3335+
]
3336+
path = [
3337+
"*.toml",
3338+
"*.yaml",
3339+
"*.yml",
3340+
"*.json",
3341+
"*.js",
3342+
"*.ts",
3343+
"*.py",
3344+
"*.go",
3345+
"*.env",
3346+
]
3347+
tags = [
3348+
"token",
3349+
"betting",
3350+
"nigeria",
3351+
]

0 commit comments

Comments
 (0)