/* Yara Rule Set Author: Florian Roth Date: 2017-05-04 Identifier: Snake / Turla Reference: https://goo.gl/QaOh4V */ /* Rule Set ----------------------------------------------------------------- */ rule SnakeTurla_Malware_May17_1 { meta: description = "Detects Snake / Turla Sample" license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE" author = "Florian Roth (Nextron Systems)" reference = "https://goo.gl/QaOh4V" date = "2017-05-04" modified = "2023-01-06" hash1 = "5b7792a16c6b7978fca389882c6aeeb2c792352076bf6a064e7b8b90eace8060" id = "ddbbd602-b7f0-5e14-be0f-0c84bb22ddeb" strings: $s1 = "/Users/vlad/Desktop/install/install/" ascii condition: ( uint16(0) == 0xfacf and filesize < 200KB and all of them ) } rule SnakeTurla_Malware_May17_2 { meta: description = "Detects Snake / Turla Sample" license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE" author = "Florian Roth (Nextron Systems)" reference = "https://goo.gl/QaOh4V" date = "2017-05-04" hash1 = "b8ee4556dc09b28826359b98343a4e00680971a6f8c6602747bd5d723d26eaea" id = "b3e94016-591c-5e39-b5e7-328e0761e535" strings: $s1 = "b_openssl: oops - number of mutexes is 0" fullword ascii $s2 = "networksetup -get%sproxy Ethernet" fullword ascii $s3 = "012A04DECBC441e49C527B2798F54CA7LOG_NAMED_PIPE_NAME" fullword ascii condition: ( uint16(0) == 0xfacf and filesize < 6000KB and all of them ) } rule SnakeTurla_Malware_May17_4 { meta: description = "Detects Snake / Turla Sample" license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE" author = "Florian Roth (Nextron Systems)" reference = "https://goo.gl/QaOh4V" date = "2017-05-04" hash1 = "d5ea79632a1a67abbf9fb1c2813b899c90a5fb9442966ed4f530e92715087ee2" id = "797dedd6-a13e-529f-bae4-4043294672c4" strings: $s1 = "Install Adobe Flash Player.app/com.adobe.updatePK" fullword ascii condition: ( uint16(0) == 0x4b50 and filesize < 5000KB and all of them ) } rule SnakeTurla_Installd_SH { meta: description = "Detects Snake / Turla Sample" license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE" author = "Florian Roth (Nextron Systems)" reference = "https://goo.gl/QaOh4V" date = "2017-05-04" id = "65a97c0d-5c69-5e58-9a18-10e5684bc218" strings: $s1 = "PIDS=`ps cax | grep installdp" ascii $s2 = "${SCRIPT_DIR}/installdp ${FILE}" ascii condition: ( uint16(0) == 0x2123 and filesize < 20KB and all of them ) } rule SnakeTurla_Install_SH { meta: description = "Detects Snake / Turla Sample" license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE" author = "Florian Roth (Nextron Systems)" reference = "https://goo.gl/QaOh4V" date = "2017-05-04" id = "68775c54-46f8-5d44-ba63-6726d2bb8016" strings: $s1 = "${TARGET_PATH}/installd.sh" ascii $s2 = "$TARGET_PATH2/com.adobe.update.plist" ascii condition: ( uint16(0) == 0x2123 and filesize < 20KB and all of them ) }