Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rules
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
rules
Commits
058ef81b
Commit
058ef81b
authored
Jan 24, 2017
by
Marc Rivero López
Committed by
GitHub
Jan 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update APT_Winnti.yar
parent
ea3674fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
145 additions
and
127 deletions
+145
-127
APT_Winnti.yar
malware/APT_Winnti.yar
+145
-127
No files found.
malware/APT_Winnti.yar
View file @
058ef81b
...
@@ -9,144 +9,162 @@
...
@@ -9,144 +9,162 @@
Identifier: Winnti Malware
Identifier: Winnti Malware
*/
*/
rule Winnti_signing_cert {
rule Winnti_signing_cert
meta:
{
description = "Detects a signing certificate used by the Winnti APT group"
author = "Florian Roth"
meta:
reference = "https://securelist.com/analysis/publications/72275/i-am-hdroot-part-1/"
description = "Detects a signing certificate used by the Winnti APT group"
date = "2015-10-10"
author = "Florian Roth"
score = 75
reference = "https://securelist.com/analysis/publications/72275/i-am-hdroot-part-1/"
hash1 = "a9a8dc4ae77b1282f0c8bdebd2643458fc1ceb3145db4e30120dd81676ff9b61"
date = "2015-10-10"
hash2 = "9001572983d5b1f99787291edaadbb65eb2701722f52470e89db2c59def24672"
score = 75
strings:
hash1 = "a9a8dc4ae77b1282f0c8bdebd2643458fc1ceb3145db4e30120dd81676ff9b61"
$s1 = "Guangzhou YuanLuo Technology Co." ascii
hash2 = "9001572983d5b1f99787291edaadbb65eb2701722f52470e89db2c59def24672"
$s2 = "Guangzhou YuanLuo Technology Co.,Ltd" ascii
$s3 = "$Asahi Kasei Microdevices Corporation0" fullword ascii
strings:
condition:
$s1 = "Guangzhou YuanLuo Technology Co." ascii
uint16(0) == 0x5a4d and filesize < 700KB and 1 of them
$s2 = "Guangzhou YuanLuo Technology Co.,Ltd" ascii
$s3 = "$Asahi Kasei Microdevices Corporation0" fullword ascii
condition:
uint16(0) == 0x5a4d and filesize < 700KB and 1 of them
}
}
rule Winnti_malware_Nsiproxy {
rule Winnti_malware_Nsiproxy
meta:
{
description = "Detects a Winnti rootkit"
author = "Florian Roth"
meta:
date = "2015-10-10"
description = "Detects a Winnti rootkit"
score = 75
author = "Florian Roth"
hash1 = "9001572983d5b1f99787291edaadbb65eb2701722f52470e89db2c59def24672"
date = "2015-10-10"
hash2 = "cf1e006694b33f27d7c748bab35d0b0031a22d193622d47409b6725b395bffb0"
score = 75
hash3 = "326e2cabddb641777d489a9e7a39d52c0dc2dcb1fde1762554ea162792056b6e"
hash1 = "9001572983d5b1f99787291edaadbb65eb2701722f52470e89db2c59def24672"
hash4 = "aff7c7478fe33c57954b6fec2095efe8f9edf5cdb48a680de9439ba62a77945f"
hash2 = "cf1e006694b33f27d7c748bab35d0b0031a22d193622d47409b6725b395bffb0"
hash5 = "ba7ccd027fd2c826bbe8f2145d5131eff906150bd98fe25a10fbee2c984df1b8"
hash3 = "326e2cabddb641777d489a9e7a39d52c0dc2dcb1fde1762554ea162792056b6e"
strings:
hash4 = "aff7c7478fe33c57954b6fec2095efe8f9edf5cdb48a680de9439ba62a77945f"
$x1 = "\\Driver\\nsiproxy" fullword wide
hash5 = "ba7ccd027fd2c826bbe8f2145d5131eff906150bd98fe25a10fbee2c984df1b8"
$a1 = "\\Device\\StreamPortal" fullword wide
strings:
$a2 = "\\Device\\PNTFILTER" fullword wide
$x1 = "\\Driver\\nsiproxy" fullword wide
$a1 = "\\Device\\StreamPortal" fullword wide
$s1 = "Cookie: SN=" fullword ascii
$a2 = "\\Device\\PNTFILTER" fullword wide
$s2 = "\\BaseNamedObjects\\_transmition_synchronization_" fullword wide
$s1 = "Cookie: SN=" fullword ascii
$s3 = "Winqual.sys" fullword wide
$s2 = "\\BaseNamedObjects\\_transmition_synchronization_" fullword wide
$s4 = "\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}" fullword wide
$s3 = "Winqual.sys" fullword wide
$s5 = "http://www.wasabii.com.tw 0" fullword ascii
$s4 = "\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}" fullword wide
condition:
$s5 = "http://www.wasabii.com.tw 0" fullword ascii
uint16(0) == 0x5a4d and $x1 and 1 of ($a*) and 2 of ($s*)
condition:
uint16(0) == 0x5a4d and $x1 and 1 of ($a*) and 2 of ($s*)
}
}
rule Winnti_malware_UpdateDLL
{
rule Winnti_malware_UpdateDLL
meta:
{
description = "Detects a Winnti malware - Update.dll"
author = "Florian Roth"
meta:
reference = "VTI research
"
description = "Detects a Winnti malware - Update.dll
"
date = "2015-10-10
"
author = "Florian Roth
"
score = 75
reference = "VTI research"
hash1 = "1b449121300b0188ff9f6a8c399fb818d0cf53fd36cf012e6908a2665a27f016
"
date = "2015-10-10
"
hash2 = "50174311e524b97ea5cb4f3ea571dd477d1f0eee06cd3ed73af39a15f3e6484a"
score = 75
hash3 = "6cdb65dbfb2c236b6d149fd9836cb484d0608ea082cf5bd88edde31ad11a0d58
"
hash1 = "1b449121300b0188ff9f6a8c399fb818d0cf53fd36cf012e6908a2665a27f016
"
hash4
= "50174311e524b97ea5cb4f3ea571dd477d1f0eee06cd3ed73af39a15f3e6484a"
hash2
= "50174311e524b97ea5cb4f3ea571dd477d1f0eee06cd3ed73af39a15f3e6484a"
strings:
hash3 = "6cdb65dbfb2c236b6d149fd9836cb484d0608ea082cf5bd88edde31ad11a0d58"
$c1 = "'Wymajtec$Tima Stempijg Sarviges GA -$G2" fullword ascii
hash4 = "50174311e524b97ea5cb4f3ea571dd477d1f0eee06cd3ed73af39a15f3e6484a"
$c2 = "AHDNEAFE1.sys" fullword ascii
$c3 = "SOTEFEHJ3.sys" fullword ascii
strings:
$c4 = "MainSYS64.sys
" fullword ascii
$c1 = "'Wymajtec$Tima Stempijg Sarviges GA -$G2
" fullword ascii
$c2 = "AHDNEAFE1.sys" fullword ascii
$s1 = "\\Registry\\User\\%s\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" fullword wide
$c3 = "SOTEFEHJ3.sys" fullword ascii
$s2 = "Update.dll
" fullword ascii
$c4 = "MainSYS64.sys
" fullword ascii
$s3 = "\\\\.\\pipe\\usbpcex%d
" fullword wide
$s1 = "\\Registry\\User\\%s\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings
" fullword wide
$s4 = "\\\\.\\pipe\\usbpcg%d" fullword wide
$s2 = "Update.dll" fullword ascii
$s5 = "\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\WMI
" fullword wide
$s3 = "\\\\.\\pipe\\usbpcex%d
" fullword wide
$s6 = "\\??
\\pipe\\usbpcg%d" fullword wide
$s4 = "\\\\.
\\pipe\\usbpcg%d" fullword wide
$s7 = "\\??\\pipe\\usbpcex%d
" fullword wide
$s5 = "\\Registry\\Machine\\SYSTEM\\CurrentControlSet\\Control\\WMI
" fullword wide
$s8 = "HOST: %s" fullword ascii
$s6 = "\\??\\pipe\\usbpcg%d" fullword wide
$s9 = "$$$--Hello" fullword ascii
$s7 = "\\??\\pipe\\usbpcex%d" fullword wide
condition:
$s8 = "HOST: %s" fullword ascii
uint16(0) == 0x5a4d and filesize < 1000KB and
$s9 = "$$$--Hello" fullword ascii
(
( 1 of ($c*) and 3 of ($s*) ) or all of ($s*)
condition:
)
uint16(0) == 0x5a4d and filesize < 1000KB and ( ( 1 of ($c*) and 3 of ($s*) ) or all of ($s*)
)
}
}
rule Winnti_malware_FWPK {
meta:
rule Winnti_malware_FWPK
description = "Detects a Winnti malware - FWPKCLNT.SYS"
{
author = "Florian Roth"
reference = "VTI research"
meta:
date = "2015-10-10"
description = "Detects a Winnti malware - FWPKCLNT.SYS"
score = 75
author = "Florian Roth"
hash1 = "1098518786c84b0d31f215122275582bdcd1666653ebc25d50a142b4f5dabf2c"
reference = "VTI research"
hash2 = "9a684ffad0e1c6a22db1bef2399f839d8eff53d7024fb014b9a5f714d11febd7"
date = "2015-10-10"
hash3 = "a836397817071c35e24e94b2be3c2fa4ffa2eb1675d3db3b4456122ff4a71368"
score = 75
strings:
hash1 = "1098518786c84b0d31f215122275582bdcd1666653ebc25d50a142b4f5dabf2c"
$s0 = "\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\" fullword wide
hash2 = "9a684ffad0e1c6a22db1bef2399f839d8eff53d7024fb014b9a5f714d11febd7"
$s1 = "%x:%d->%x:%d, Flag %s%s%s%s%s, seq %u, ackseq %u, datalen %u" fullword ascii
hash3 = "a836397817071c35e24e94b2be3c2fa4ffa2eb1675d3db3b4456122ff4a71368"
$s2 = "FWPKCLNT.SYS" fullword ascii
$s3 = "Port Layer" fullword wide
strings:
$s4 = "%x->%x, icmp type %d, code %d" fullword ascii
$s0 = "\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\" fullword wide
$s5 = "\\BaseNamedObjects\\{93144EB0-8E3E-4591-B307-8EEBFE7DB28E}" fullword wide
$s1 = "%x:%d->%x:%d, Flag %s%s%s%s%s, seq %u, ackseq %u, datalen %u" fullword ascii
$s6 = "\\Ndi\\Interfaces" fullword wide
$s2 = "FWPKCLNT.SYS" fullword ascii
$s7 = "\\Device\\{93144EB0-8E3E-4591-B307-8EEBFE7DB28F}" fullword wide
$s3 = "Port Layer" fullword wide
$s8 = "Bad packet" fullword ascii
$s4 = "%x->%x, icmp type %d, code %d" fullword ascii
$s9 = "\\BaseNamedObjects\\EKV0000000000" fullword wide
$s5 = "\\BaseNamedObjects\\{93144EB0-8E3E-4591-B307-8EEBFE7DB28E}" fullword wide
$s10 = "%x->%x" fullword ascii
$s6 = "\\Ndi\\Interfaces" fullword wide
$s11 = "IPInjectPkt" fullword ascii /* Goodware String - occured 6 times */
$s7 = "\\Device\\{93144EB0-8E3E-4591-B307-8EEBFE7DB28F}" fullword wide
condition:
$s8 = "Bad packet" fullword ascii
uint16(0) == 0x5a4d and filesize < 642KB and all of them
$s9 = "\\BaseNamedObjects\\EKV0000000000" fullword wide
$s10 = "%x->%x" fullword ascii
$s11 = "IPInjectPkt" fullword ascii /* Goodware String - occured 6 times */
condition:
uint16(0) == 0x5a4d and filesize < 642KB and all of them
}
}
rule Winnti_malware_StreamPortal_Gen {
rule Winnti_malware_StreamPortal_Gen
meta:
{
description = "Detects a Winnti malware - Streamportal"
author = "Florian Roth"
meta:
reference = "VTI research"
description = "Detects a Winnti malware - Streamportal"
date = "2015-10-10"
author = "Florian Roth"
score = 75
reference = "VTI research"
hash1 = "326e2cabddb641777d489a9e7a39d52c0dc2dcb1fde1762554ea162792056b6e"
date = "2015-10-10"
hash2 = "9001572983d5b1f99787291edaadbb65eb2701722f52470e89db2c59def24672"
score = 75
hash3 = "aff7c7478fe33c57954b6fec2095efe8f9edf5cdb48a680de9439ba62a77945f"
hash1 = "326e2cabddb641777d489a9e7a39d52c0dc2dcb1fde1762554ea162792056b6e"
strings:
hash2 = "9001572983d5b1f99787291edaadbb65eb2701722f52470e89db2c59def24672"
$s0 = "Proxies destination address/port for TCP" fullword wide
hash3 = "aff7c7478fe33c57954b6fec2095efe8f9edf5cdb48a680de9439ba62a77945f"
$s3 = "\\Device\\StreamPortal" fullword wide
$s4 = "Transport-Data Proxy Sub-Layer" fullword wide
strings:
$s5 = "Cookie: SN=" fullword ascii
$s0 = "Proxies destination address/port for TCP" fullword wide
$s6 = "\\BaseNamedObjects\\_transmition_synchronization_" fullword wide
$s3 = "\\Device\\StreamPortal" fullword wide
$s17 = "NTOSKRNL.EXE" fullword wide /* Goodware String - occured 4 times */
$s4 = "Transport-Data Proxy Sub-Layer" fullword wide
$s19 = "FwpsReferenceNetBufferList0" fullword ascii /* Goodware String - occured 5 times */
$s5 = "Cookie: SN=" fullword ascii
condition:
$s6 = "\\BaseNamedObjects\\_transmition_synchronization_" fullword wide
uint16(0) == 0x5a4d and filesize < 275KB and all of them
$s17 = "NTOSKRNL.EXE" fullword wide /* Goodware String - occured 4 times */
$s19 = "FwpsReferenceNetBufferList0" fullword ascii /* Goodware String - occured 5 times */
condition:
uint16(0) == 0x5a4d and filesize < 275KB and all of them
}
}
rule WinntiPharma : Backdoor
rule WinntiPharma
{
{
meta:
meta:
author = "Jose Ramon Palanco"
author = "Jose Ramon Palanco"
copyright = "Drainware, Inc."
copyright = "Drainware, Inc."
date = "2015-06-23"
date = "2015-06-23"
description = "Backdoor Win64 Winnti Pharma"
description = "Backdoor Win64 Winnti Pharma"
ref = "https://securelist.com/blog/research/70991/games-are-over/"
ref = "https://securelist.com/blog/research/70991/games-are-over/"
strings:
strings:
$s0 = "Cookie: SN="
$s0 = "Cookie: SN="
$s1 = "{3ec05b4a-ea88-1378-3389-66706ba27600}"
$s1 = "{3ec05b4a-ea88-1378-3389-66706ba27600}"
$s2 = "{4D36E972-E325-11CE-BFC1-08002BE10318}"
$s2 = "{4D36E972-E325-11CE-BFC1-08002BE10318}"
$s3 = "master secret"
$s3 = "master secret"
$s4 = "MyEngineNetEvent"
$s4 = "MyEngineNetEvent"
condition:
condition:
all of ($s*)
all of ($s*)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment