Skip to content

Commit

Permalink
chg: [password_leak] add the rule from PasteHunter to find password_leak
Browse files Browse the repository at this point in the history
TODO: compare with the built-in credentials module in AIL
  • Loading branch information
adulau committed Jul 12, 2024
1 parent 3ccbec3 commit 09c09d4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rules/password/password_leak.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
These rules attempt to find password leaks / dumps
*/

rule password_list
{
meta:
author = "@KevTheHermit and @Plazmaz"
info = "Part of PasteHunter"
reference = "https://github.com/kevthehermit/PasteHunter"

strings:
// Email validation---------------------------------------------------V
// Optional quotes -----------------------------------------------------v
// Seperator char (:|,) ------------------------------------------------------v
// Continue until word boundary or space ----------------------------------------------v
$data_format = /\b[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)*\.[a-zA-Z-]+[\w-]["|']?(:|\|)[^\b\s]+\b/
condition:
#data_format > 10
}

0 comments on commit 09c09d4

Please sign in to comment.