Skip to content

Commit

Permalink
Merge pull request Yara-Rules#426 from KatsuragiCSL/master
Browse files Browse the repository at this point in the history
Added rule for executables created by pyinstaller on OSX
  • Loading branch information
Xumeiquer authored Apr 12, 2022
2 parents 61e2fc3 + 338389f commit 73fe852
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.yar
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ include "./malware/MALW_PubSab.yar"
include "./malware/MALW_PurpleWave.yar"
include "./malware/MALW_PyPI.yar"
include "./malware/MALW_Pyinstaller.yar"
include "./malware/MALW_Pyinstaller_OSX.yar"
include "./malware/MALW_Quarian.yar"
include "./malware/MALW_Rebirth_Vulcan_ELF.yar"
include "./malware/MALW_Regsubdat.yar"
Expand Down
15 changes: 15 additions & 0 deletions malware/MALW_Pyinstaller_OSX.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
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.
*/

rule MachO_File_pyinstaller
{
meta:
author = "KatsuragiCSL (https://katsuragicsl.github.io)"
description = "Detect Mach-O file produced by pyinstaller"
strings:
$a = "pyi-runtime-tmpdir"
$b = "pyi-bootloader-ignore-signals"
condition:
any of them
}
1 change: 1 addition & 0 deletions malware_index.yar
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ include "./malware/MALW_PubSab.yar"
include "./malware/MALW_PurpleWave.yar"
include "./malware/MALW_PyPI.yar"
include "./malware/MALW_Pyinstaller.yar"
include "./malware/MALW_Pyinstaller_OSX.yar"
include "./malware/MALW_Quarian.yar"
include "./malware/MALW_Rebirth_Vulcan_ELF.yar"
include "./malware/MALW_Regsubdat.yar"
Expand Down

0 comments on commit 73fe852

Please sign in to comment.