Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Malware-Misc-RE/2019-11-07-malscript_excel_shellcodeloader_1-vk.yar
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (20 sloc)
872 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rule malscript_excel_shellcodeloader_1 | |
| { | |
| meta: | |
| description = "Detects this DW-userprofile.hta Excel loading shellcode script" | |
| author = "@VK_Intel" | |
| reference = "https://twitter.com/VK_Intel/status/1192510991566868483" | |
| date = "2019-11-07" | |
| hash1 = "44beab3903c096e695a9ca1c2a6ee54ec10f44c3916bbb70fa016494e628039b" | |
| strings: | |
| $str0 = "ExecuteExcel4Macro('CALL(\"Kernel32\",\"CreateThread\",\"JJJJJJJ\",0, 0, '" fullword ascii | |
| $str1 = "ExecuteExcel4Macro('CALL(\"Kernel32\",\"VirtualAlloc\",\"JJJJJ\",0,' " fullword ascii | |
| $str2 = "ExecuteExcel4Macro('CALL(\"Kernel32\",\"WriteProcessMemory\",\"JJJCJJ\",-1, ' + " ascii | |
| $str3 = "new ActiveXObject(\"Excel.Application\")" ascii | |
| $char0 = "CHAR(" ascii | |
| condition: | |
| ( | |
| filesize < 100KB and | |
| ( 3 of ($str*) and #char0 > 100) | |
| ) | |
| } |