diff --git a/malware/pyinstaller.yar b/malware/pyinstaller.yar new file mode 100644 index 0000000..2569182 --- /dev/null +++ b/malware/pyinstaller.yar @@ -0,0 +1,17 @@ +/* + This Yara ruleset is under the GNU-GPLv2 license (http://www.gnu.org/licenses/gpl-2.0.html) and open to any user or organization, as long as you use it under this license. +*/ + +import "pe" + +rule PE_File_pyinstaller +{ + meta: + author = "Didier Stevens (https://DidierStevens.com)" + description = "Detect PE file produced by pyinstaller" + reference = "https://isc.sans.edu/diary/21057" + strings: + $a = "pyi-windows-manifest-filename" + condition: + pe.number_of_resources > 0 and $a +}