Commit b614331c by Marc Rivero López Committed by GitHub

Update APT_Irontiger.yar

Fixed syntax rule
parent e72f6165
...@@ -2,451 +2,532 @@ ...@@ -2,451 +2,532 @@
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 IronTiger_ASPXSpy rule IronTiger_ASPXSpy
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "ASPXSpy detection. It might be used by other fraudsters" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "ASPXSpy detection. It might be used by other fraudsters"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "ASPXSpy" nocase wide ascii
$str2 = "IIS Spy" nocase wide ascii strings:
$str3 = "protected void DGCoW(object sender,EventArgs e)" nocase wide ascii $str1 = "ASPXSpy" nocase wide ascii
condition: $str2 = "IIS Spy" nocase wide ascii
any of ($str*) $str3 = "protected void DGCoW(object sender,EventArgs e)" nocase wide ascii
condition:
any of ($str*)
} }
rule IronTiger_ChangePort_Toolkit_driversinstall : driver rule IronTiger_ChangePort_Toolkit_driversinstall
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - Changeport Toolkit driverinstall" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - Changeport Toolkit driverinstall"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "openmydoor" nocase wide ascii
$str2 = "Install service error" nocase wide ascii strings:
$str3 = "start remove service" nocase wide ascii $str1 = "openmydoor" nocase wide ascii
$str4 = "NdisVersion" nocase wide ascii $str2 = "Install service error" nocase wide ascii
condition: $str3 = "start remove service" nocase wide ascii
uint16(0) == 0x5a4d and (2 of ($str*)) $str4 = "NdisVersion" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (2 of ($str*))
} }
rule IronTiger_ChangePort_Toolkit_ChangePortExe : Toolkit rule IronTiger_ChangePort_Toolkit_ChangePortExe
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - Toolkit ChangePort" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - Toolkit ChangePort"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "Unable to alloc the adapter!" nocase wide ascii
$str2 = "Wait for master fuck" nocase wide ascii strings:
$str3 = "xx.exe <HOST> <PORT>" nocase wide ascii $str1 = "Unable to alloc the adapter!" nocase wide ascii
$str4 = "chkroot2007" nocase wide ascii $str2 = "Wait for master fuck" nocase wide ascii
$str5 = "Door is bind on %s" nocase wide ascii $str3 = "xx.exe <HOST> <PORT>" nocase wide ascii
condition: $str4 = "chkroot2007" nocase wide ascii
uint16(0) == 0x5a4d and (2 of ($str*)) $str5 = "Door is bind on %s" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (2 of ($str*))
} }
rule IronTiger_dllshellexc2010 : Backdoor rule IronTiger_dllshellexc2010
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "dllshellexc2010 Exchange backdoor + remote shell" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "dllshellexc2010 Exchange backdoor + remote shell"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "Microsoft.Exchange.Clients.Auth.dll" nocase ascii wide
$str2 = "Dllshellexc2010" nocase wide ascii strings:
$str3 = "Users\\ljw\\Documents" nocase wide ascii $str1 = "Microsoft.Exchange.Clients.Auth.dll" nocase ascii wide
$bla1 = "please input path" nocase wide ascii $str2 = "Dllshellexc2010" nocase wide ascii
$bla2 = "auth.owa" nocase wide ascii $str3 = "Users\\ljw\\Documents" nocase wide ascii
condition: $bla1 = "please input path" nocase wide ascii
(uint16(0) == 0x5a4d) and ((any of ($str*)) or (all of ($bla*))) $bla2 = "auth.owa" nocase wide ascii
condition:
(uint16(0) == 0x5a4d) and ((any of ($str*)) or (all of ($bla*)))
} }
rule IronTiger_dnstunnel : Tunnel rule IronTiger_dnstunnel
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "This rule detects a dns tunnel tool used in Operation Iron Tiger" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "This rule detects a dns tunnel tool used in Operation Iron Tiger"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "\\DnsTunClient\\" nocase wide ascii
$str2 = "\\t-DNSTunnel\\" nocase wide ascii strings:
$str3 = "xssok.blogspot" nocase wide ascii $str1 = "\\DnsTunClient\\" nocase wide ascii
$str4 = "dnstunclient" nocase wide ascii $str2 = "\\t-DNSTunnel\\" nocase wide ascii
$mistake1 = "because of error, can not analysis" nocase wide ascii $str3 = "xssok.blogspot" nocase wide ascii
$mistake2 = "can not deal witn the error" nocase wide ascii $str4 = "dnstunclient" nocase wide ascii
$mistake3 = "the other retun one RST" nocase wide ascii $mistake1 = "because of error, can not analysis" nocase wide ascii
$mistake4 = "Coversation produce one error" nocase wide ascii $mistake2 = "can not deal witn the error" nocase wide ascii
$mistake5 = "Program try to use the have deleted the buffer" nocase wide ascii $mistake3 = "the other retun one RST" nocase wide ascii
condition: $mistake4 = "Coversation produce one error" nocase wide ascii
(uint16(0) == 0x5a4d) and ((any of ($str*)) or (any of ($mistake*))) $mistake5 = "Program try to use the have deleted the buffer" nocase wide ascii
condition:
(uint16(0) == 0x5a4d) and ((any of ($str*)) or (any of ($mistake*)))
} }
rule IronTiger_EFH3_encoder : Encoder rule IronTiger_EFH3_encoder
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger EFH3 Encoder" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger EFH3 Encoder"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "EFH3 [HEX] [SRCFILE] [DSTFILE]" nocase wide ascii
$str2 = "123.EXE 123.EFH" nocase wide ascii strings:
$str3 = "ENCODER: b[i]: = " nocase wide ascii $str1 = "EFH3 [HEX] [SRCFILE] [DSTFILE]" nocase wide ascii
condition: $str2 = "123.EXE 123.EFH" nocase wide ascii
uint16(0) == 0x5a4d and (any of ($str*)) $str3 = "ENCODER: b[i]: = " nocase wide ascii
condition:
uint16(0) == 0x5a4d and (any of ($str*))
} }
rule IronTiger_GetPassword_x64 rule IronTiger_GetPassword_x64
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - GetPassword x64" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - GetPassword x64"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "(LUID ERROR)" nocase wide ascii
$str2 = "Users\\K8team\\Desktop\\GetPassword" nocase wide ascii strings:
$str3 = "Debug x64\\GetPassword.pdb" nocase wide ascii $str1 = "(LUID ERROR)" nocase wide ascii
$bla1 = "Authentication Package:" nocase wide ascii $str2 = "Users\\K8team\\Desktop\\GetPassword" nocase wide ascii
$bla2 = "Authentication Domain:" nocase wide ascii $str3 = "Debug x64\\GetPassword.pdb" nocase wide ascii
$bla3 = "* Password:" nocase wide ascii $bla1 = "Authentication Package:" nocase wide ascii
$bla4 = "Primary User:" nocase wide ascii $bla2 = "Authentication Domain:" nocase wide ascii
condition: $bla3 = "* Password:" nocase wide ascii
uint16(0) == 0x5a4d and ((any of ($str*)) or (all of ($bla*))) $bla4 = "Primary User:" nocase wide ascii
condition:
uint16(0) == 0x5a4d and ((any of ($str*)) or (all of ($bla*)))
} }
rule IronTiger_GetUserInfo rule IronTiger_GetUserInfo
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - GetUserInfo" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - GetUserInfo"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "getuserinfo username" nocase wide ascii
$str2 = "joe@joeware.net" nocase wide ascii strings:
$str3 = "If . specified for userid," nocase wide ascii $str1 = "getuserinfo username" nocase wide ascii
condition: $str2 = "joe@joeware.net" nocase wide ascii
uint16(0) == 0x5a4d and (any of ($str*)) $str3 = "If . specified for userid," nocase wide ascii
condition:
uint16(0) == 0x5a4d and (any of ($str*))
} }
rule IronTiger_Gh0stRAT_variant rule IronTiger_Gh0stRAT_variant
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "This is a detection for a s.exe variant seen in Op. Iron Tiger" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "This is a detection for a s.exe variant seen in Op. Iron Tiger"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "Game Over Good Luck By Wind" nocase wide ascii
$str2 = "ReleiceName" nocase wide ascii strings:
$str3 = "jingtisanmenxiachuanxiao.vbs" nocase wide ascii $str1 = "Game Over Good Luck By Wind" nocase wide ascii
$str4 = "Winds Update" nocase wide ascii $str2 = "ReleiceName" nocase wide ascii
condition: $str3 = "jingtisanmenxiachuanxiao.vbs" nocase wide ascii
uint16(0) == 0x5a4d and (any of ($str*)) $str4 = "Winds Update" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (any of ($str*))
} }
rule IronTiger_GTalk_Trojan : trojan rule IronTiger_GTalk_Trojan
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - GTalk Trojan" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - GTalk Trojan"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "gtalklite.com" nocase wide ascii
$str2 = "computer=%s&lanip=%s&uid=%s&os=%s&data=%s" nocase wide ascii strings:
$str3 = "D13idmAdm" nocase wide ascii $str1 = "gtalklite.com" nocase wide ascii
$str4 = "Error: PeekNamedPipe failed with %i" nocase wide ascii $str2 = "computer=%s&lanip=%s&uid=%s&os=%s&data=%s" nocase wide ascii
condition: $str3 = "D13idmAdm" nocase wide ascii
uint16(0) == 0x5a4d and (2 of ($str*)) $str4 = "Error: PeekNamedPipe failed with %i" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (2 of ($str*))
} }
rule IronTiger_HTTPBrowser_Dropper : Dropper rule IronTiger_HTTPBrowser_Dropper
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - HTTPBrowser Dropper" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - HTTPBrowser Dropper"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = ".dllUT" nocase wide ascii
$str2 = ".exeUT" nocase wide ascii strings:
$str3 = ".urlUT" nocase wide ascii $str1 = ".dllUT" nocase wide ascii
condition: $str2 = ".exeUT" nocase wide ascii
uint16(0) == 0x5a4d and (2 of ($str*)) $str3 = ".urlUT" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (2 of ($str*))
} }
rule IronTiger_HTTP_SOCKS_Proxy_soexe rule IronTiger_HTTP_SOCKS_Proxy_soexe
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Toolset - HTTP SOCKS Proxy soexe" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Toolset - HTTP SOCKS Proxy soexe"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "listen SOCKET error." nocase wide ascii
$str2 = "WSAAsyncSelect SOCKET error." nocase wide ascii strings:
$str3 = "new SOCKETINFO error!" nocase wide ascii $str1 = "listen SOCKET error." nocase wide ascii
$str4 = "Http/1.1 403 Forbidden" nocase wide ascii $str2 = "WSAAsyncSelect SOCKET error." nocase wide ascii
$str5 = "Create SOCKET error." nocase wide ascii $str3 = "new SOCKETINFO error!" nocase wide ascii
condition: $str4 = "Http/1.1 403 Forbidden" nocase wide ascii
uint16(0) == 0x5a4d and (3 of ($str*)) $str5 = "Create SOCKET error." nocase wide ascii
condition:
uint16(0) == 0x5a4d and (3 of ($str*))
} }
rule IronTiger_NBDDos_Gh0stvariant_dropper : Dropper rule IronTiger_NBDDos_Gh0stvariant_dropper
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - NBDDos Gh0stvariant Dropper" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - NBDDos Gh0stvariant Dropper"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "This service can't be stoped." nocase wide ascii
$str2 = "Provides support for media palyer" nocase wide ascii strings:
$str4 = "CreaetProcess Error" nocase wide ascii $str1 = "This service can't be stoped." nocase wide ascii
$bla1 = "Kill You" nocase wide ascii $str2 = "Provides support for media palyer" nocase wide ascii
$bla2 = "%4.2f GB" nocase wide ascii $str4 = "CreaetProcess Error" nocase wide ascii
condition: $bla1 = "Kill You" nocase wide ascii
uint16(0) == 0x5a4d and ((any of ($str*)) or (all of ($bla*))) $bla2 = "%4.2f GB" nocase wide ascii
condition:
uint16(0) == 0x5a4d and ((any of ($str*)) or (all of ($bla*)))
} }
rule IronTiger_PlugX_DosEmulator rule IronTiger_PlugX_DosEmulator
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - PlugX DosEmulator" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - PlugX DosEmulator"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "Dos Emluator Ver" nocase wide ascii
$str2 = "\\PIPE\\FASTDOS" nocase wide ascii strings:
$str3 = "FastDos.cpp" nocase wide ascii $str1 = "Dos Emluator Ver" nocase wide ascii
$str4 = "fail,error code = %d." nocase wide ascii $str2 = "\\PIPE\\FASTDOS" nocase wide ascii
condition: $str3 = "FastDos.cpp" nocase wide ascii
uint16(0) == 0x5a4d and (any of ($str*)) $str4 = "fail,error code = %d." nocase wide ascii
condition:
uint16(0) == 0x5a4d and (any of ($str*))
} }
rule IronTiger_PlugX_FastProxy rule IronTiger_PlugX_FastProxy
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - PlugX FastProxy" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - PlugX FastProxy"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "SAFEPROXY HTServerTimer Quit!" nocase wide ascii
$str2 = "Useage: %s pid" nocase wide ascii strings:
$str3 = "%s PORT[%d] TO PORT[%d] SUCCESS!" nocase wide ascii $str1 = "SAFEPROXY HTServerTimer Quit!" nocase wide ascii
$str4 = "p0: port for listener" nocase wide ascii $str2 = "Useage: %s pid" nocase wide ascii
$str5 = "\\users\\whg\\desktop\\plug\\" nocase wide ascii $str3 = "%s PORT[%d] TO PORT[%d] SUCCESS!" nocase wide ascii
$str6 = "[+Y] cwnd : %3d, fligth:" nocase wide ascii $str4 = "p0: port for listener" nocase wide ascii
condition: $str5 = "\\users\\whg\\desktop\\plug\\" nocase wide ascii
uint16(0) == 0x5a4d and (any of ($str*)) $str6 = "[+Y] cwnd : %3d, fligth:" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (any of ($str*))
} }
rule IronTiger_PlugX_Server rule IronTiger_PlugX_Server
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - PlugX Server" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - PlugX Server"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "\\UnitFrmManagerKeyLog.pas" nocase wide ascii
$str2 = "\\UnitFrmManagerRegister.pas" nocase wide ascii strings:
$str3 = "Input Name..." nocase wide ascii $str1 = "\\UnitFrmManagerKeyLog.pas" nocase wide ascii
$str4 = "New Value#" nocase wide ascii $str2 = "\\UnitFrmManagerRegister.pas" nocase wide ascii
$str5 = "TThreadRControl.Execute SEH!!!" nocase wide ascii $str3 = "Input Name..." nocase wide ascii
$str6 = "\\UnitFrmRControl.pas" nocase wide ascii $str4 = "New Value#" nocase wide ascii
$str7 = "OnSocket(event is error)!" nocase wide ascii $str5 = "TThreadRControl.Execute SEH!!!" nocase wide ascii
$str8 = "Make 3F Version Ok!!!" nocase wide ascii $str6 = "\\UnitFrmRControl.pas" nocase wide ascii
$str9 = "PELEASE DO NOT CHANGE THE DOCAMENT" nocase wide ascii $str7 = "OnSocket(event is error)!" nocase wide ascii
$str10 = "Press [Ok] Continue Run, Press [Cancel] Exit" nocase wide ascii $str8 = "Make 3F Version Ok!!!" nocase wide ascii
condition: $str9 = "PELEASE DO NOT CHANGE THE DOCAMENT" nocase wide ascii
uint16(0) == 0x5a4d and (2 of ($str*)) $str10 = "Press [Ok] Continue Run, Press [Cancel] Exit" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (2 of ($str*))
} }
rule IronTiger_ReadPWD86 rule IronTiger_ReadPWD86
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - ReadPWD86" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - ReadPWD86"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "Fail To Load LSASRV" nocase wide ascii
$str2 = "Fail To Search LSASS Data" nocase wide ascii strings:
$str3 = "User Principal" nocase wide ascii $str1 = "Fail To Load LSASRV" nocase wide ascii
condition: $str2 = "Fail To Search LSASS Data" nocase wide ascii
uint16(0) == 0x5a4d and (all of ($str*)) $str3 = "User Principal" nocase wide ascii
condition:
uint16(0) == 0x5a4d and (all of ($str*))
} }
rule IronTiger_Ring_Gh0stvariant rule IronTiger_Ring_Gh0stvariant
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Malware - Ring Gh0stvariant" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Malware - Ring Gh0stvariant"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "RING RAT Exception" nocase wide ascii
$str2 = "(can not update server recently)!" nocase wide ascii strings:
$str4 = "CreaetProcess Error" nocase wide ascii $str1 = "RING RAT Exception" nocase wide ascii
$bla1 = "Sucess!" nocase wide ascii $str2 = "(can not update server recently)!" nocase wide ascii
$bla2 = "user canceled!" nocase wide ascii $str4 = "CreaetProcess Error" nocase wide ascii
condition: $bla1 = "Sucess!" nocase wide ascii
uint16(0) == 0x5a4d and ((any of ($str*)) or (all of ($bla*))) $bla2 = "user canceled!" nocase wide ascii
condition:
uint16(0) == 0x5a4d and ((any of ($str*)) or (all of ($bla*)))
} }
rule IronTiger_wmiexec rule IronTiger_wmiexec
{ {
meta:
author = "Cyber Safety Solutions, Trend Micro" meta:
description = "Iron Tiger Tool - wmi.vbs detection" author = "Cyber Safety Solutions, Trend Micro"
reference = "http://goo.gl/T5fSJC" description = "Iron Tiger Tool - wmi.vbs detection"
strings: reference = "http://goo.gl/T5fSJC"
$str1 = "Temp Result File , Change it to where you like" nocase wide ascii
$str2 = "wmiexec" nocase wide ascii strings:
$str3 = "By. Twi1ight" nocase wide ascii $str1 = "Temp Result File , Change it to where you like" nocase wide ascii
$str4 = "[both mode] ,delay TIME to read result" nocase wide ascii $str2 = "wmiexec" nocase wide ascii
$str5 = "such as nc.exe or Trojan" nocase wide ascii $str3 = "By. Twi1ight" nocase wide ascii
$str6 = "+++shell mode+++" nocase wide ascii $str4 = "[both mode] ,delay TIME to read result" nocase wide ascii
$str7 = "win2008 fso has no privilege to delete file" nocase wide ascii $str5 = "such as nc.exe or Trojan" nocase wide ascii
condition: $str6 = "+++shell mode+++" nocase wide ascii
2 of ($str*) $str7 = "win2008 fso has no privilege to delete file" nocase wide ascii
condition:
2 of ($str*)
} }
/* /*
Yara Rule Set Yara Rule Set
Author: Florian Roth Author: Florian Roth
Date: 2015-09-16 Date: 2015-09-16
Identifier: Iron Panda Identifier: Iron Panda
*/ */
/* Rule Set ----------------------------------------------------------------- */ /* Rule Set ----------------------------------------------------------------- */
rule IronPanda_DNSTunClient { rule IronPanda_DNSTunClient
meta: {
description = "Iron Panda malware DnsTunClient - file named.exe"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda malware DnsTunClient - file named.exe"
date = "2015-09-16" author = "Florian Roth"
score = 80 reference = "https://goo.gl/E4qia9"
hash = "a08db49e198068709b7e52f16d00a10d72b4d26562c0d82b4544f8b0fb259431" date = "2015-09-16"
strings: score = 80
$s1 = "dnstunclient -d or -domain <domain>" fullword ascii hash = "a08db49e198068709b7e52f16d00a10d72b4d26562c0d82b4544f8b0fb259431"
$s2 = "dnstunclient -ip <server ip address>" fullword ascii
$s3 = "C:\\Windows\\System32\\cmd.exe /C schtasks /create /tn \"\\Microsoft\\Windows\\PLA\\System\\Microsoft Windows\" /tr " fullword ascii strings:
$s4 = "C:\\Windows\\System32\\cmd.exe /C schtasks /create /tn \"Microsoft Windows\" /tr " fullword ascii $s1 = "dnstunclient -d or -domain <domain>" fullword ascii
$s5 = "taskkill /im conime.exe" fullword ascii $s2 = "dnstunclient -ip <server ip address>" fullword ascii
$s6 = "\\dns control\\t-DNSTunnel\\DnsTunClient\\DnsTunClient.cpp" fullword ascii $s3 = "C:\\Windows\\System32\\cmd.exe /C schtasks /create /tn \"\\Microsoft\\Windows\\PLA\\System\\Microsoft Windows\" /tr " fullword ascii
$s7 = "UDP error:can not bing the port(if there is unclosed the bind process?)" fullword ascii $s4 = "C:\\Windows\\System32\\cmd.exe /C schtasks /create /tn \"Microsoft Windows\" /tr " fullword ascii
$s8 = "use error domain,set domain pls use -d or -domain mark(Current: %s,recv %s)" fullword ascii $s5 = "taskkill /im conime.exe" fullword ascii
$s9 = "error: packet num error.the connection have condurt,pls try later" fullword ascii $s6 = "\\dns control\\t-DNSTunnel\\DnsTunClient\\DnsTunClient.cpp" fullword ascii
$s10 = "Coversation produce one error:%s,coversation fail" fullword ascii $s7 = "UDP error:can not bing the port(if there is unclosed the bind process?)" fullword ascii
$s11 = "try to add many same pipe to select group(or mark is too easy)." fullword ascii $s8 = "use error domain,set domain pls use -d or -domain mark(Current: %s,recv %s)" fullword ascii
condition: $s9 = "error: packet num error.the connection have condurt,pls try later" fullword ascii
( uint16(0) == 0x5a4d and filesize < 400KB and 2 of them ) $s10 = "Coversation produce one error:%s,coversation fail" fullword ascii
or $s11 = "try to add many same pipe to select group(or mark is too easy)." fullword ascii
5 of them
condition:
( uint16(0) == 0x5a4d and filesize < 400KB and 2 of them ) or 5 of them
} }
rule IronPanda_Malware1 { rule IronPanda_Malware1
meta: {
description = "Iron Panda Malware"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda Malware"
date = "2015-09-16" author = "Florian Roth"
hash = "a0cee5822ddf254c254a5a0b7372c9d2b46b088a254a1208cb32f5fe7eca848a" reference = "https://goo.gl/E4qia9"
strings: date = "2015-09-16"
$x1 = "activedsimp.dll" fullword wide hash = "a0cee5822ddf254c254a5a0b7372c9d2b46b088a254a1208cb32f5fe7eca848a"
$s1 = "get_BadLoginAddress" fullword ascii
$s2 = "get_LastFailedLogin" fullword ascii strings:
$s3 = "ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED" fullword ascii $x1 = "activedsimp.dll" fullword wide
$s4 = "get_PasswordExpirationDate" fullword ascii $s1 = "get_BadLoginAddress" fullword ascii
condition: $s2 = "get_LastFailedLogin" fullword ascii
uint16(0) == 0x5a4d and filesize < 300KB and all of them $s3 = "ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED" fullword ascii
$s4 = "get_PasswordExpirationDate" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 300KB and all of them
} }
rule IronPanda_Webshell_JSP { rule IronPanda_Webshell_JSP
meta: {
description = "Iron Panda Malware JSP"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda Malware JSP"
date = "2015-09-16" author = "Florian Roth"
hash = "3be95477e1d9f3877b4355cff3fbcdd3589bb7f6349fd4ba6451e1e9d32b7fa6" reference = "https://goo.gl/E4qia9"
strings: date = "2015-09-16"
$s1 = "Bin_ExecSql(\"exec master..xp_cmdshell'bcp \\\"select safile from \" + db + \"..bin_temp\\\" queryout \\\"\" + Bin_TextBox_SaveP" ascii hash = "3be95477e1d9f3877b4355cff3fbcdd3589bb7f6349fd4ba6451e1e9d32b7fa6"
$s2 = "tc.Text=\"<a href=\\\"javascript:Bin_PostBack('zcg_ClosePM','\"+Bin_ToBase64(de.Key.ToString())+\"')\\\">Close</a>\";" fullword ascii
$s3 = "Bin_ExecSql(\"IF OBJECT_ID('bin_temp')IS NOT NULL DROP TABLE bin_temp\");" fullword ascii strings:
condition: $s1 = "Bin_ExecSql(\"exec master..xp_cmdshell'bcp \\\"select safile from \" + db + \"..bin_temp\\\" queryout \\\"\" + Bin_TextBox_SaveP" ascii
filesize < 330KB and 1 of them $s2 = "tc.Text=\"<a href=\\\"javascript:Bin_PostBack('zcg_ClosePM','\"+Bin_ToBase64(de.Key.ToString())+\"')\\\">Close</a>\";" fullword ascii
$s3 = "Bin_ExecSql(\"IF OBJECT_ID('bin_temp')IS NOT NULL DROP TABLE bin_temp\");" fullword ascii
condition:
filesize < 330KB and 1 of them
} }
rule IronPanda_Malware_Htran { rule IronPanda_Malware_Htran
meta: {
description = "Iron Panda Malware Htran"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda Malware Htran"
date = "2015-09-16" author = "Florian Roth"
hash = "7903f94730a8508e9b272b3b56899b49736740cea5037ea7dbb4e690bcaf00e7" reference = "https://goo.gl/E4qia9"
strings: date = "2015-09-16"
$s1 = "[-] Gethostbyname(%s) error:%s" fullword ascii hash = "7903f94730a8508e9b272b3b56899b49736740cea5037ea7dbb4e690bcaf00e7"
$s2 = "%s -<listen|tran|slave> <option> [-log logfile]" fullword ascii
$s3 = "-slave <ConnectHost> <ConnectPort> <TransmitHost> <TransmitPort>" fullword ascii strings:
$s4 = "[-] ERROR: Must supply logfile name." fullword ascii $s1 = "[-] Gethostbyname(%s) error:%s" fullword ascii
$s5 = "[SERVER]connection to %s:%d error" fullword ascii $s2 = "%s -<listen|tran|slave> <option> [-log logfile]" fullword ascii
$s6 = "[+] Make a Connection to %s:%d...." fullword ascii $s3 = "-slave <ConnectHost> <ConnectPort> <TransmitHost> <TransmitPort>" fullword ascii
$s7 = "[+] Waiting another Client on port:%d...." fullword ascii $s4 = "[-] ERROR: Must supply logfile name." fullword ascii
$s8 = "[+] Accept a Client on port %d from %s" fullword ascii $s5 = "[SERVER]connection to %s:%d error" fullword ascii
$s9 = "[+] Make a Connection to %s:%d ......" fullword ascii $s6 = "[+] Make a Connection to %s:%d...." fullword ascii
$s10 = "cmshared_get_ptr_from_atom" fullword ascii $s7 = "[+] Waiting another Client on port:%d...." fullword ascii
$s11 = "_cmshared_get_ptr_from_atom" fullword ascii $s8 = "[+] Accept a Client on port %d from %s" fullword ascii
$s12 = "[+] OK! I Closed The Two Socket." fullword ascii $s9 = "[+] Make a Connection to %s:%d ......" fullword ascii
$s13 = "[-] TransmitPort invalid." fullword ascii $s10 = "cmshared_get_ptr_from_atom" fullword ascii
$s14 = "[+] Waiting for Client on port:%d ......" fullword ascii $s11 = "_cmshared_get_ptr_from_atom" fullword ascii
condition: $s12 = "[+] OK! I Closed The Two Socket." fullword ascii
( uint16(0) == 0x5a4d and filesize < 125KB and 3 of them ) $s13 = "[-] TransmitPort invalid." fullword ascii
or $s14 = "[+] Waiting for Client on port:%d ......" fullword ascii
5 of them
condition:
( uint16(0) == 0x5a4d and filesize < 125KB and 3 of them ) or 5 of them
} }
rule IronPanda_Malware2 { rule IronPanda_Malware2
meta: {
description = "Iron Panda Malware"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda Malware"
date = "2015-09-16" author = "Florian Roth"
hash = "a89c21dd608c51c4bf0323d640f816e464578510389f9edcf04cd34090decc91" reference = "https://goo.gl/E4qia9"
strings: date = "2015-09-16"
$s0 = "\\setup.exe" fullword ascii hash = "a89c21dd608c51c4bf0323d640f816e464578510389f9edcf04cd34090decc91"
$s1 = "msi.dll.urlUT" fullword ascii
$s2 = "msi.dllUT" fullword ascii strings:
$s3 = "setup.exeUT" fullword ascii $s0 = "\\setup.exe" fullword ascii
$s4 = "/c del /q %s" fullword ascii $s1 = "msi.dll.urlUT" fullword ascii
condition: $s2 = "msi.dllUT" fullword ascii
uint16(0) == 0x5a4d and filesize < 180KB and all of them $s3 = "setup.exeUT" fullword ascii
$s4 = "/c del /q %s" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 180KB and all of them
} }
rule IronPanda_Malware3 { rule IronPanda_Malware3
meta: {
description = "Iron Panda Malware"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda Malware"
date = "2015-09-16" author = "Florian Roth"
hash = "5cd2af844e718570ae7ba9773a9075738c0b3b75c65909437c43201ce596a742" reference = "https://goo.gl/E4qia9"
strings: date = "2015-09-16"
$s0 = "PluginDeflater.exe" fullword wide hash = "5cd2af844e718570ae7ba9773a9075738c0b3b75c65909437c43201ce596a742"
$s1 = ".Deflated" fullword wide
$s2 = "PluginDeflater" fullword ascii strings:
$s3 = "DeflateStream" fullword ascii /* Goodware String - occured 1 times */ $s0 = "PluginDeflater.exe" fullword wide
$s4 = "CompressionMode" fullword ascii /* Goodware String - occured 4 times */ $s1 = ".Deflated" fullword wide
$s5 = "System.IO.Compression" fullword ascii /* Goodware String - occured 6 times */ $s2 = "PluginDeflater" fullword ascii
condition: $s3 = "DeflateStream" fullword ascii /* Goodware String - occured 1 times */
uint16(0) == 0x5a4d and filesize < 10KB and all of them $s4 = "CompressionMode" fullword ascii /* Goodware String - occured 4 times */
$s5 = "System.IO.Compression" fullword ascii /* Goodware String - occured 6 times */
condition:
uint16(0) == 0x5a4d and filesize < 10KB and all of them
} }
rule IronPanda_Malware4 { rule IronPanda_Malware4
meta: {
description = "Iron Panda Malware"
author = "Florian Roth" meta:
reference = "https://goo.gl/E4qia9" description = "Iron Panda Malware"
date = "2015-09-16" author = "Florian Roth"
hash = "0d6da946026154416f49df2283252d01ecfb0c41c27ef3bc79029483adc2240c" reference = "https://goo.gl/E4qia9"
strings: date = "2015-09-16"
$s0 = "TestPlugin.dll" fullword wide hash = "0d6da946026154416f49df2283252d01ecfb0c41c27ef3bc79029483adc2240c"
$s1 = "<a href='http://www.baidu.com'>aasd</a>" fullword wide
$s2 = "Zcg.Test.AspxSpyPlugins" fullword ascii strings:
$s6 = "TestPlugin" fullword ascii $s0 = "TestPlugin.dll" fullword wide
condition: $s1 = "<a href='http://www.baidu.com'>aasd</a>" fullword wide
uint16(0) == 0x5a4d and filesize < 10KB and all of them $s2 = "Zcg.Test.AspxSpyPlugins" fullword ascii
$s6 = "TestPlugin" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 10KB 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