Commit 40504207 by Marc Rivero López Committed by GitHub

Update APT_Cloudduke.yar

Fixed rule style
parent 48d063df
...@@ -2,60 +2,66 @@ ...@@ -2,60 +2,66 @@
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. 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 CloudDuke_Malware : APT CloudDuke {
meta: rule CloudDuke_Malware
description = "Detects CloudDuke Malware" {
author = "Florian Roth"
reference = "https://www.f-secure.com/weblog/archives/00002822.html" meta:
date = "2015-07-22" description = "Detects CloudDuke Malware"
score = 60 author = "Florian Roth"
hash1 = "97d8725e39d263ed21856477ed09738755134b5c0d0b9ae86ebb1cdd4cdc18b7" reference = "https://www.f-secure.com/weblog/archives/00002822.html"
hash2 = "88a40d5b679bccf9641009514b3d18b09e68b609ffaf414574a6eca6536e8b8f" date = "2015-07-22"
hash3 = "1d4ac97d43fab1d464017abb5d57a6b4601f99eaa93b01443427ef25ae5127f7" score = 60
hash4 = "97d8725e39d263ed21856477ed09738755134b5c0d0b9ae86ebb1cdd4cdc18b7" hash1 = "97d8725e39d263ed21856477ed09738755134b5c0d0b9ae86ebb1cdd4cdc18b7"
hash5 = "1d4ac97d43fab1d464017abb5d57a6b4601f99eaa93b01443427ef25ae5127f7" hash2 = "88a40d5b679bccf9641009514b3d18b09e68b609ffaf414574a6eca6536e8b8f"
hash6 = "88a40d5b679bccf9641009514b3d18b09e68b609ffaf414574a6eca6536e8b8f" hash3 = "1d4ac97d43fab1d464017abb5d57a6b4601f99eaa93b01443427ef25ae5127f7"
hash7 = "ed7abf93963395ce9c9cba83a864acb4ed5b6e57fd9a6153f0248b8ccc4fdb46" hash4 = "97d8725e39d263ed21856477ed09738755134b5c0d0b9ae86ebb1cdd4cdc18b7"
hash8 = "97d8725e39d263ed21856477ed09738755134b5c0d0b9ae86ebb1cdd4cdc18b7" hash5 = "1d4ac97d43fab1d464017abb5d57a6b4601f99eaa93b01443427ef25ae5127f7"
hash9 = "ed7abf93963395ce9c9cba83a864acb4ed5b6e57fd9a6153f0248b8ccc4fdb46" hash6 = "88a40d5b679bccf9641009514b3d18b09e68b609ffaf414574a6eca6536e8b8f"
hash10 = "ee5eb9d57c3611e91a27bb1fc2d0aaa6bbfa6c69ab16e65e7123c7c49d46f145" hash7 = "ed7abf93963395ce9c9cba83a864acb4ed5b6e57fd9a6153f0248b8ccc4fdb46"
hash11 = "a713982d04d2048a575912a5fc37c93091619becd5b21e96f049890435940004" hash8 = "97d8725e39d263ed21856477ed09738755134b5c0d0b9ae86ebb1cdd4cdc18b7"
hash12 = "56ac764b81eb216ebed5a5ad38e703805ba3e1ca7d63501ba60a1fb52c7ebb6e" hash9 = "ed7abf93963395ce9c9cba83a864acb4ed5b6e57fd9a6153f0248b8ccc4fdb46"
hash13 = "ee5eb9d57c3611e91a27bb1fc2d0aaa6bbfa6c69ab16e65e7123c7c49d46f145" hash10 = "ee5eb9d57c3611e91a27bb1fc2d0aaa6bbfa6c69ab16e65e7123c7c49d46f145"
hash14 = "a713982d04d2048a575912a5fc37c93091619becd5b21e96f049890435940004" hash11 = "a713982d04d2048a575912a5fc37c93091619becd5b21e96f049890435940004"
hash15 = "56ac764b81eb216ebed5a5ad38e703805ba3e1ca7d63501ba60a1fb52c7ebb6e" hash12 = "56ac764b81eb216ebed5a5ad38e703805ba3e1ca7d63501ba60a1fb52c7ebb6e"
strings: hash13 = "ee5eb9d57c3611e91a27bb1fc2d0aaa6bbfa6c69ab16e65e7123c7c49d46f145"
$s1 = "ProcDataWrap" fullword ascii hash14 = "a713982d04d2048a575912a5fc37c93091619becd5b21e96f049890435940004"
$s2 = "imagehlp.dll" fullword ascii hash15 = "56ac764b81eb216ebed5a5ad38e703805ba3e1ca7d63501ba60a1fb52c7ebb6e"
$s3 = "dnlibsh" fullword ascii
$s4 = "%ws_out%ws" fullword wide strings:
$s5 = "Akernel32.dll" fullword wide $s1 = "ProcDataWrap" fullword ascii
$s2 = "imagehlp.dll" fullword ascii
$op0 = { 0f b6 80 68 0e 41 00 0b c8 c1 e1 08 0f b6 c2 8b } /* Opcode */ $s3 = "dnlibsh" fullword ascii
$op1 = { 8b ce e8 f8 01 00 00 85 c0 74 41 83 7d f8 00 0f } /* Opcode */ $s4 = "%ws_out%ws" fullword wide
$op2 = { e8 2f a2 ff ff 83 20 00 83 c8 ff 5f 5e 5d c3 55 } /* Opcode */ $s5 = "Akernel32.dll" fullword wide
condition: $op0 = { 0f b6 80 68 0e 41 00 0b c8 c1 e1 08 0f b6 c2 8b } /* Opcode */
uint16(0) == 0x5a4d and filesize < 720KB and 4 of ($s*) and 1 of ($op*) $op1 = { 8b ce e8 f8 01 00 00 85 c0 74 41 83 7d f8 00 0f } /* Opcode */
$op2 = { e8 2f a2 ff ff 83 20 00 83 c8 ff 5f 5e 5d c3 55 } /* Opcode */
condition:
uint16(0) == 0x5a4d and filesize < 720KB and 4 of ($s*) and 1 of ($op*)
} }
/* Super Rules ------------------------------------------------------------- */ rule SFXRAR_Acrotray
{
rule SFXRAR_Acrotray : APT CloudDuke {
meta: meta:
description = "Most likely a malicious file acrotray in SFX RAR / CloudDuke APT 5442.1.exe, 5442.2.exe" description = "Most likely a malicious file acrotray in SFX RAR / CloudDuke APT 5442.1.exe, 5442.2.exe"
author = "Florian Roth" author = "Florian Roth"
reference = "https://www.f-secure.com/weblog/archives/00002822.html" reference = "https://www.f-secure.com/weblog/archives/00002822.html"
date = "2015-07-22" date = "2015-07-22"
super_rule = 1 super_rule = 1
score = 70 score = 70
hash1 = "51e713c7247f978f5836133dd0b8f9fb229e6594763adda59951556e1df5ee57" hash1 = "51e713c7247f978f5836133dd0b8f9fb229e6594763adda59951556e1df5ee57"
hash2 = "5d695ff02202808805da942e484caa7c1dc68e6d9c3d77dc383cfa0617e61e48" hash2 = "5d695ff02202808805da942e484caa7c1dc68e6d9c3d77dc383cfa0617e61e48"
hash3 = "56531cc133e7a760b238aadc5b7a622cd11c835a3e6b78079d825d417fb02198" hash3 = "56531cc133e7a760b238aadc5b7a622cd11c835a3e6b78079d825d417fb02198"
strings:
$s1 = "winrarsfxmappingfile.tmp" fullword wide /* PEStudio Blacklist: strings */ strings:
$s2 = "GETPASSWORD1" fullword wide /* PEStudio Blacklist: strings */ $s1 = "winrarsfxmappingfile.tmp" fullword wide /* PEStudio Blacklist: strings */
$s3 = "acrotray.exe" fullword ascii $s2 = "GETPASSWORD1" fullword wide /* PEStudio Blacklist: strings */
$s4 = "CryptUnprotectMemory failed" fullword wide /* PEStudio Blacklist: strings */ $s3 = "acrotray.exe" fullword ascii
condition: $s4 = "CryptUnprotectMemory failed" fullword wide /* PEStudio Blacklist: strings */
uint16(0) == 0x5a4d and filesize < 2449KB and all of them
condition:
uint16(0) == 0x5a4d and filesize < 2449KB and all of them
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment