mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 20:24:22 +01:00
feat(rules): Add Perplexity AI API key detection (#1825)
* feat(rules): Add Perplexity AI API key detection * Fix generation * Fix imports * Update cmd/generate/config/rules/perplexity.go Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com> * Update cmd/generate/config/rules/perplexity.go Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com> * Update cmd/generate/config/rules/perplexity.go Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com> * Adjust regex, add imports * Generate config --------- Co-authored-by: vno <vno@serity.io> Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
This commit is contained in:
3 files changed
+35
No files matched your search
@@ -2627,6 +2627,13 @@ regex = '''\b(sha256~[\w-]{43})(?:[^\w-]|\z)'''
|
||||
entropy = 3.5
|
||||
keywords = ["sha256~"]
|
||||
|
||||
[[rules]]
|
||||
id = "perplexity-api-key"
|
||||
description = "Detected a Perplexity API key, which could lead to unauthorized access to Perplexity AI services and data exposure."
|
||||
regex = '''\b(pplx-[a-zA-Z0-9]{48})(?:[\x60'"\s;]|\\[nr]|$|\b)'''
|
||||
entropy = 4
|
||||
keywords = ["pplx-"]
|
||||
|
||||
[[rules]]
|
||||
id = "pkcs12-file"
|
||||
description = "Found a PKCS #12 file, which commonly contain bundled private keys."
|
||||
|
||||
Reference in new issue
Block a user