From 7c882d84715c6293624a0f5bbc3ed9218fcb2606 Mon Sep 17 00:00:00 2001 From: za Date: Thu, 18 Jan 2024 10:13:57 +0700 Subject: [PATCH] Added ed25519 private key pattern on regexs.json for secret finder functionality as this algorithm is getting more popular and being suggested (eg: by github) https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key --- pacu/core/secretfinder/regexs.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pacu/core/secretfinder/regexs.json b/pacu/core/secretfinder/regexs.json index 7ffec95a..5f2845e3 100644 --- a/pacu/core/secretfinder/regexs.json +++ b/pacu/core/secretfinder/regexs.json @@ -23,8 +23,9 @@ "RSA private key": "-----BEGIN RSA PRIVATE KEY-----", "SSH (DSA) private key": "-----BEGIN DSA PRIVATE KEY-----", "SSH (EC) private key": "-----BEGIN EC PRIVATE KEY-----", + "SSH (ed25519) private key": "-----BEGIN OPENSSH PRIVATE KEY-----" "PGP private key block": "-----BEGIN PGP PRIVATE KEY BLOCK-----", "Twilio API Key": "SK[0-9a-fA-F]{32}", "Twitter Access Token": "[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*[1-9][0-9]+-[0-9a-zA-Z]{40}", "Twitter OAuth": "[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*['|\"][0-9a-zA-Z]{35,44}['|\"]" -} \ No newline at end of file +}