From 0fb0bb7ae311eee4f02dc2e82fbe82b58bdfe182 Mon Sep 17 00:00:00 2001 From: Jose Vila Date: Mon, 16 May 2016 08:28:00 +0200 Subject: [PATCH] add pyinstaller rule --- malware/pyinstaller.yar | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 malware/pyinstaller.yar 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 +}