alternat0r

Hotpatch, Platynum YARA Rules

Apr 28th, 2016
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 11.75 KB | None | 0 0
  1. /*
  2.     Yara rules for Platynum/Hotpatch malware.
  3.    
  4.     Reference:
  5.         http://download.microsoft.com/download/2/2/5/225BFE3E-E1DE-4F5B-A77B-71200928D209/Platinum%20feature%20article%20-%20Targeted%20attacks%20in%20South%20and%20Southeast%20Asia%20April%202016.pdf
  6. */
  7. rule Trojan_Win32_PlaSrv : Platinum
  8. {
  9.     meta:
  10.         author = "Microsoft"
  11.         description = "Hotpatching Injector"
  12.         original_sample_sha1 = "ff7f949da665ba8ce9fb01da357b51415634eaad"
  13.         unpacked_sample_sha1 = "dff2fee984ba9f5a8f5d97582c83fca4fa1fe131"
  14.         activity_group = "Platinum"
  15.         version = "1.0"
  16.         last_modified = "2016-04-12"
  17.     strings:
  18.         $Section_name = ".hotp1"
  19.         $offset_x59 = {C7 80 64 01 00 00 00 00 01 00}
  20.     condition:
  21.         $Section_name and $offset_x59
  22. }
  23. rule Trojan_Win32_Platual : Platinum
  24. {
  25.     meta:
  26.         author = "Microsoft"
  27.         description = "Installer component"
  28.         original_sample_sha1 = "e0ac2ae221328313a7eee33e9be0924c46e2beb9"
  29.         unpacked_sample_sha1 = "ccaf36c2d02c3c5ca24eeeb7b1eae7742a23a86a"
  30.         activity_group = "Platinum"
  31.         version = "1.0"
  32.         last_modified = "2016-04-12"
  33.     strings:
  34.         $class_name = "AVCObfuscation"
  35.         $scrambled_dir = {A8 8B B8 E3 B1 D7 FE 85 51 32 3E C0 F1 B7 73 99}
  36.  
  37.     condition:
  38.         $class_name and $scrambled_dir
  39. }
  40.  
  41. rule Trojan_Win32_Plaplex : Platinum
  42. {
  43.     meta:
  44.         author = "Microsoft"
  45.         description = "Variant of the JPin backdoor"
  46.         original_sample_sha1 = "ca3bda30a3cdc15afb78e54fa1bbb9300d268d66"
  47.         unpacked_sample_sha1 = "2fe3c80e98bbb0cf5a0c4da286cd48ec78130a24"
  48.         activity_group = "Platinum"
  49.         version = "1.0"
  50.         last_modified = "2016-04-12"
  51.     strings:
  52.         $class_name1 = "AVCObfuscation"
  53.         $class_name2 = "AVCSetiriControl"
  54.  
  55.     condition:
  56.         $class_name1 and $class_name2
  57. }
  58.  
  59. rule Trojan_Win32_Dipsind_B : Platinum
  60. {
  61.     meta:
  62.         author = "Microsoft"
  63.         description = "Dipsind Family"
  64.         sample_sha1 = "09e0dfbb5543c708c0dd6a89fd22bbb96dc4ca1c"
  65.         activity_group = "Platinum"
  66.         version = "1.0"
  67.         last_modified = "2016-04-12"
  68.     strings:
  69.         $frg1 = { 8D 90 04 01 00 00 33 C0 F2 AE F7 D1 2B F9 8B C1 8B F7 8B FA C1 E9 02 F3 A5 8B C8 83 E1 03 F3 A4 8B 4D EC 8B 15 ?? ?? ?? ?? 89 91 ?? 07 00 00 }
  70.         $frg2 = { 68 A1 86 01 00 C1 E9 02 F3 AB 8B CA 83 E1 03 F3 AA }
  71.         $frg3 = { C0 E8 07 D0 E1 0A C1 8A C8 32 D0 C0 E9 07 D0 E0 0A C8 32 CA 80 F1 63 }
  72.  
  73.     condition:
  74.         $frg1 and $frg2 and $frg3
  75. }
  76.  
  77. rule Trojan_Win32_PlaKeylog_B : Platinum
  78. {
  79.     meta:
  80.         author = "Microsoft"
  81.         description = "Keylogger component"
  82.         original_sample_sha1 = "0096a3e0c97b85ca75164f48230ae530c94a2b77"
  83.         unpacked_sample_sha1 = "6a1412daaa9bdc553689537df0a004d44f8a45fd"
  84.         activity_group = "Platinum"
  85.         version = "1.0"
  86.         last_modified = "2016-04-12"
  87.     strings:
  88.         $hook = {C6 06 FF 46 C6 06 25}
  89.         $dasm_engine = {80 C9 10 88 0E 8A CA 80 E1 07 43 88 56 03 80 F9 05}
  90.  
  91.     condition:
  92.         $hook and $dasm_engine
  93. }
  94.  
  95. rule Trojan_Win32_Adupib : Platinum
  96. {
  97.     meta:
  98.         author = "Microsoft"
  99.         description = "Adupib SSL Backdoor"
  100.         original_sample_sha1 = "d3ad0933e1b114b14c2b3a2c59d7f8a95ea0bcbd"
  101.         unpacked_sample_sha1 = "a80051d5ae124fd9e5cc03e699dd91c2b373978b"
  102.         activity_group = "Platinum"
  103.         version = "1.0"
  104.         last_modified = "2016-04-12"
  105.        
  106.     strings:
  107.         $str1 = "POLL_RATE"
  108.         $str2 = "OP_TIME(end hour)"
  109.         $str3 = "%d:TCP:*:Enabled"
  110.         $str4 = "%s[PwFF_cfg%d]"
  111.         $str5 = "Fake_GetDlgItemTextW: ***value***="
  112.     condition:
  113.         $str1 and $str2 and $str3 and $str4 and $str5
  114. }
  115.  
  116. rule Trojan_Win32_PlaLsaLog : Platinum
  117. {
  118.     meta:
  119.         author = "Microsoft"
  120.         description = "Loader / possible incomplete LSA Password Filter"
  121.         original_sample_sha1 = "fa087986697e4117c394c9a58cb9f316b2d9f7d8"
  122.         unpacked_sample_sha1 = "29cb81dbe491143b2f8b67beaeae6557d8944ab4"
  123.         activity_group = "Platinum"
  124.         version = "1.0"
  125.         last_modified = "2016-04-12"
  126.    
  127.     strings:
  128.         $str1 = { 8A 1C 01 32 DA 88 1C 01 8B 74 24 0C 41 3B CE 7C EF 5B 5F C6 04 01 00 5E 81 C4 04 01 00 00 C3 }
  129.         $str2 = "PasswordChangeNotify"
  130.  
  131.     condition:
  132.         $str1 and $str2
  133. }
  134.  
  135. rule Trojan_Win32_Plagon : Platinum
  136. {
  137.     meta:
  138.         author = "Microsoft"
  139.         description = "Dipsind variant"
  140.         original_sample_sha1 = "48b89f61d58b57dba6a0ca857bce97bab636af65"
  141.         unpacked_sample_sha1 = "6dccf88d89ad7b8611b1bc2e9fb8baea41bdb65a"
  142.         activity_group = "Platinum"
  143.         version = "1.0"
  144.         last_modified = "2016-04-12"
  145.  
  146.     strings:
  147.         $str1 = "VPLRXZHTU"
  148.         $str2 = { 64 6F 67 32 6A 7E 6C }
  149.         $str3 = "Dqpqftk(Wou\"Isztk)"
  150.         $str4 = "StartThreadAtWinLogon"
  151.  
  152.     condition:
  153.         $str1 and $str2 and $str3 and $str4
  154. }
  155.  
  156. rule Trojan_Win32_Plakelog : Platinum
  157. {
  158.     meta:
  159.         author = "Microsoft"
  160.         description = "Raw-input based keylogger"
  161.         original_sample_sha1 = "3907a9e41df805f912f821a47031164b6636bd04"
  162.         unpacked_sample_sha1 = "960feeb15a0939ec0b53dcb6815adbf7ac1e7bb2"
  163.         activity_group = "Platinum"
  164.         version = "1.0"
  165.         last_modified = "2016-04-12"
  166.  
  167.     strings:
  168.         $str1 = "<0x02>" wide
  169.         $str2 = "[CTR-BRK]" wide
  170.         $str3 = "[/WIN]" wide
  171.         $str4 = { 8A 16 8A 18 32 DA 46 88 18 8B 15 08 E6 42 00 40 41 3B CA 72 EB 5E 5B }
  172.  
  173.     condition:
  174.         $str1 and $str2 and $str3 and $str4
  175. }
  176.  
  177. rule Trojan_Win32_Plainst : Platinum
  178. {
  179.     meta:
  180.         author = "Microsoft"
  181.         description = "Installer component"
  182.         original_sample_sha1 = "99c08d31af211a0e17f92dd312ec7ca2b9469ecb"
  183.         unpacked_sample_sha1 = "dcb6cf7cf7c8fdfc89656a042f81136bda354ba6"
  184.         activity_group = "Platinum"
  185.         version = "1.0"
  186.         last_modified = "2016-04-12"
  187.     strings:
  188.         $str1 = { 66 8B 14 4D 18 50 01 10 8B 45 08 66 33 14 70 46 66 89 54 77 FE 66 83 7C 77 FE 00 75 B7 8B 4D FC 89 41 08 8D 04 36 89 41 0C 89 79 04 }
  189.         $str2 = { 4b D3 91 49 A1 80 91 42 83 B6 33 28 36 6B 90 97 }
  190.     condition:
  191.         $str1 and $str2
  192. }
  193.  
  194. rule Trojan_Win32_Plagicom : Platinum
  195. {
  196.     meta:
  197.         author = "Microsoft"
  198.         description = "Installer component"
  199.         original_sample_sha1 = "99dcb148b053f4cef6df5fa1ec5d33971a58bd1e"
  200.         unpacked_sample_sha1 = "c1c950bc6a2ad67488e675da4dfc8916831239a7"
  201.         activity_group = "Platinum"
  202.         version = "1.0"
  203.         last_modified = "2016-04-12"
  204.     strings:
  205.         $str1 = { C6 44 24 ?? 68 C6 44 24 ?? 4D C6 44 24 ?? 53 C6 44 24 ?? 56 C6 44 24 ?? 00 }
  206.         $str2 = "OUEMM/EMM"
  207.         $str3 = { 85 C9 7E 08 FE 0C 10 40 3B C1 7C F8 C3 }
  208.  
  209.     condition:
  210.         $str1 and $str2 and $str3
  211. }
  212.  
  213. rule Trojan_Win32_Plaklog : Platinum
  214. {
  215.     meta:
  216.         author = "Microsoft"
  217.         description = "Hook-based keylogger"
  218.         original_sample_sha1 = "831a5a29d47ab85ee3216d4e75f18d93641a9819"
  219.         unpacked_sample_sha1 = "e18750207ddbd939975466a0e01bd84e75327dda"
  220.         activity_group = "Platinum"
  221.         version = "1.0"
  222.         last_modified = "2016-04-12"
  223.  
  224.     strings:
  225.         $str1 = "++[%s^^unknown^^%s]++"
  226.         $str2 = "vtfs43/emm"
  227.         $str3 = { 33 C9 39 4C 24 08 7E 10 8B 44 24 04 03 C1 80 00 08 41 3B 4C 24 08 7C F0 C3 }
  228.  
  229.     condition:
  230.         $str1 and $str2 and $str3
  231. }
  232.  
  233. rule Trojan_Win32_Plapiio : Platinum
  234. {
  235.     meta:
  236.         author = "Microsoft"
  237.         description = "JPin backdoor"
  238.         original_sample_sha1 = "3119de80088c52bd8097394092847cd984606c88"
  239.         unpacked_sample_sha1 = "3acb8fe2a5eb3478b4553907a571b6614eb5455c"
  240.         activity_group = "Platinum"
  241.         version = "1.0"
  242.         last_modified = "2016-04-12"
  243.    
  244.     strings:
  245.         $str1 = "ServiceMain"
  246.         $str2 = "Startup"
  247.         $str3 = { C6 45 ?? 68 C6 45 ?? 4D C6 45 ?? 53 C6 45 ?? 56 C6 45 ?? 6D C6 45 ?? 6D }
  248.  
  249.     condition:
  250.         $str1 and $str2 and $str3
  251. }
  252.  
  253. rule Trojan_Win32_Plabit : Platinum
  254. {
  255.     meta:
  256.         author = "Microsoft"
  257.         description = "Installer component"
  258.         sample_sha1 = "6d1169775a552230302131f9385135d385efd166"
  259.         activity_group = "Platinum"
  260.         version = "1.0"
  261.         last_modified = "2016-04-12"
  262.    
  263.     strings:
  264.         $str1 = { 4b D3 91 49 A1 80 91 42 83 B6 33 28 36 6B 90 97 }
  265.         $str2 = "GetInstanceW"
  266.         $str3 = { 8B D0 83 E2 1F 8A 14 0A 30 14 30 40 3B 44 24 04 72 EE }
  267.  
  268.     condition:
  269.         $str1 and $str2 and $str3
  270. }
  271.  
  272. rule Trojan_Win32_Placisc2 : Platinum
  273. {
  274.     meta:
  275.         author = "Microsoft"
  276.         description = "Dipsind variant"
  277.         original_sample_sha1 = "bf944eb70a382bd77ee5b47548ea9a4969de0527"
  278.         unpacked_sample_sha1 = "d807648ddecc4572c7b04405f496d25700e0be6e"
  279.         activity_group = "Platinum"
  280.         version = "1.0"
  281.         last_modified = "2016-04-12"
  282.        
  283.     strings:
  284.         $str1 = { 76 16 8B D0 83 E2 07 8A 4C 14 24 8A 14 18 32 D1 88 14 18 40 3B C7 72 EA }
  285.         $str2 = "VPLRXZHTU"
  286.         $str3 = "%d) Command:%s"
  287.         $str4 = { 0D 0A 2D 2D 2D 2D 2D 09 2D 2D 2D 2D 2D 2D 0D 0A }
  288.  
  289.     condition:
  290.         $str1 and $str2 and $str3 and $str4
  291. }
  292.  
  293. rule Trojan_Win32_Placisc3 : Platinum
  294. {
  295.     meta:
  296.         author = "Microsoft"
  297.         description = "Dipsind variant"
  298.         original_sample_sha1 = "1b542dd0dacfcd4200879221709f5fa9683cdcda"
  299.         unpacked_sample_sha1 = "bbd4992ee3f3a3267732151636359cf94fb4575d"
  300.         activity_group = "Platinum"
  301.         version = "1.0"
  302.         last_modified = "2016-04-12"
  303.    
  304.     strings:
  305.         $str1 = {BA 6E 00 00 00 66 89 95 ?? ?? FF FF B8 73 00 00 00 66 89 85 ?? ?? FF FF B9 64 00 00 00 66 89 8D ?? ?? FF FF BA 65 00 00 00 66 89 95 ?? ?? FF FF B8 6C 00 00 00}
  306.         $str2 = "VPLRXZHTU"
  307.         $str3 = {8B 44 24 ?? 8A 04 01 41 32 C2 3B CF 7C F2 88 03}
  308.  
  309.     condition:
  310.         $str1 and $str2 and $str3
  311. }
  312.  
  313. rule Trojan_Win32_Placisc4 : Platinum
  314. {
  315.     meta:
  316.         author = "Microsoft"
  317.         description = "Installer for Dipsind variant"
  318.         original_sample_sha1 = "3d17828632e8ff1560f6094703ece5433bc69586"
  319.         unpacked_sample_sha1 = "2abb8e1e9cac24be474e4955c63108ff86d1a034"
  320.         activity_group = "Platinum"
  321.         version = "1.0"
  322.         last_modified = "2016-04-12"
  323.    
  324.     strings:
  325.         $str1 = { 8D 71 01 8B C6 99 BB 0A 00 00 00 F7 FB 0F BE D2 0F BE 04 39 2B C2 88 04 39 84 C0 74 0A }
  326.         $str2 = { 6A 04 68 00 20 00 00 68 00 00 40 00 6A 00 FF D5 }
  327.         $str3 = { C6 44 24 ?? 64 C6 44 24 ?? 6F C6 44 24 ?? 67 C6 44 24 ?? 32 C6 44 24 ?? 6A }
  328.  
  329.     condition:
  330.         $str1 and $str2 and $str3
  331. }
  332.  
  333. rule Trojan_Win32_Plakpers : Platinum
  334. {
  335.     meta:
  336.         author = "Microsoft"
  337.         description = "Injector / loader component"
  338.         original_sample_sha1 = "fa083d744d278c6f4865f095cfd2feabee558056"
  339.         unpacked_sample_sha1 = "3a678b5c9c46b5b87bfcb18306ed50fadfc6372e"
  340.         activity_group = "Platinum"
  341.         version = "1.0"
  342.         last_modified = "2016-04-12"
  343.     strings: $str1 = "MyFileMappingObject"
  344.         $str2 = "[%.3u] %s %s %s [%s:" wide
  345.         $str3 = "%s\\{%s}\\%s" wide
  346.  
  347.     condition:
  348.         $str1 and $str2 and $str3
  349. }
  350.  
  351. rule Trojan_Win32_Plainst2 : Platinum
  352. {
  353.     meta:
  354.         author = "Microsoft"
  355.         description = "Zc tool"
  356.         original_sample_sha1 = "3f2ce812c38ff5ac3d813394291a5867e2cddcf2"
  357.         unpacked_sample_sha1 = "88ff852b1b8077ad5a19cc438afb2402462fbd1a"
  358.         activity_group = "Platinum"
  359.         version = "1.0"
  360.         last_modified = "2016-04-12"
  361.    
  362.     strings:
  363.         $str1 = "Connected [%s:%d]..."
  364.         $str2 = "reuse possible: %c"
  365.         $str3 = "] => %d%%\x0a"
  366.  
  367.     condition:
  368.         $str1 and $str2 and $str3
  369. }
  370.  
  371. rule Trojan_Win32_Plakpeer : Platinum
  372. {
  373.     meta:
  374.         author = "Microsoft"
  375.         description = "Zc tool v2"
  376.         original_sample_sha1 = "2155c20483528377b5e3fde004bb604198463d29"
  377.         unpacked_sample_sha1 = "dc991ef598825daabd9e70bac92c79154363bab2"
  378.         activity_group = "Platinum"
  379.         version = "1.0"
  380.         last_modified = "2016-04-12"
  381.     strings:
  382.         $str1 = "@@E0020(%d)" wide
  383.         $str2 = /exit.{0,3}@exit.{0,3}new.{0,3}query.{0,3}rcz.{0,3}scz/ wide
  384.         $str3 = "---###---" wide
  385.         $str4 = "---@@@---" wide
  386.     condition:
  387.         $str1 and $str2 and $str3 and $str4
  388. }
Advertisement
Add Comment
Please, Sign In to add comment